<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://db.gcve.eu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Sat, 05 Dec 2026 12:29:55 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-142870 — fs/ntfs3: validate the EA value length in ntfs_read_ea()</title>
      <link>https://db.gcve.eu/vuln/cve-2026-142870</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;fs/ntfs3: validate the EA value length in ntfs_read_ea()&lt;/p&gt;
&lt;p&gt;ntfs_read_ea() checks the $EA list for consistency, but it only
recomputes the packed size of an entry when the entry&amp;#39;s own size field is
zero:&lt;/p&gt;
&lt;p&gt;for (off = 0; off &amp;lt; size; off += ea_size) {
		const struct EA_FULL *ef = Add2Ptr(ea_p, off);
		u32 bytes = size - off;
		...
		if (ef-&amp;gt;size) {
			ea_size = le32_to_cpu(ef-&amp;gt;size);
			if (ea_size &amp;gt; bytes)
				goto out1;
			continue;              /* &amp;lt;- elength never checked */
		}
		...
		ea_size = ALIGN(struct_size(ef, name,
					    1 + ef-&amp;gt;name_len +
						    le16_to_cpu(ef-&amp;gt;elength)),
				4);
		if (ea_size &amp;gt; bytes)
			goto out1;
	}&lt;/p&gt;
&lt;p&gt;ef-&amp;gt;size is non-zero for every entry except the last one, and it is what
ntfs3 itself writes (ntfs_set_ea() stores exactly that aligned packed
size), so in practice elength is not validated at all.  find_ea() then
uses unpacked_ea_size(), which also prefers ea-&amp;gt;size when it is set, so
it agrees and hands the entry back.&lt;/p&gt;
&lt;p&gt;ntfs_get_ea() copies elength bytes with no further bound of its own:&lt;/p&gt;
&lt;p&gt;len = le16_to_cpu(ea-&amp;gt;elength);
	...
	if (len &amp;gt; size) {              /* size is the *caller&amp;#39;s* buffer */
		err = -ERANGE;
		...
	}
	memcpy(buffer, ea-&amp;gt;name + ea-&amp;gt;name_len + 1, len);&lt;/p&gt;
&lt;p&gt;so a caller that supplies a large enough buffer receives up to 64 KiB of
whatever follows the small $EA allocation -- straight to userspace via
getxattr(2).&lt;/p&gt;
&lt;p&gt;Compute the packed size unconditionally and require…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;fs/ntfs3: validate the EA value length in ntfs_read_ea()&lt;/p&gt;
&lt;p&gt;ntfs_read_ea() checks the $EA list for consistency, but it only
recomputes the packed size of an entry when the entry&amp;#39;s own size field is
zero:&lt;/p&gt;
&lt;p&gt;for (off = 0; off &amp;lt; size; off += ea_size) {
		const struct EA_FULL *ef = Add2Ptr(ea_p, off);
		u32 bytes = size - off;
		...
		if (ef-&amp;gt;size) {
			ea_size = le32_to_cpu(ef-&amp;gt;size);
			if (ea_size &amp;gt; bytes)
				goto out1;
			continue;              /* &amp;lt;- elength never checked */
		}
		...
		ea_size = ALIGN(struct_size(ef, name,
					    1 + ef-&amp;gt;name_len +
						    le16_to_cpu(ef-&amp;gt;elength)),
				4);
		if (ea_size &amp;gt; bytes)
			goto out1;
	}&lt;/p&gt;
&lt;p&gt;ef-&amp;gt;size is non-zero for every entry except the last one, and it is what
ntfs3 itself writes (ntfs_set_ea() stores exactly that aligned packed
size), so in practice elength is not validated at all.  find_ea() then
uses unpacked_ea_size(), which also prefers ea-&amp;gt;size when it is set, so
it agrees and hands the entry back.&lt;/p&gt;
&lt;p&gt;ntfs_get_ea() copies elength bytes with no further bound of its own:&lt;/p&gt;
&lt;p&gt;len = le16_to_cpu(ea-&amp;gt;elength);
	...
	if (len &amp;gt; size) {              /* size is the *caller&amp;#39;s* buffer */
		err = -ERANGE;
		...
	}
	memcpy(buffer, ea-&amp;gt;name + ea-&amp;gt;name_len + 1, len);&lt;/p&gt;
&lt;p&gt;so a caller that supplies a large enough buffer receives up to 64 KiB of
whatever follows the small $EA allocation -- straight to userspace via
getxattr(2).&lt;/p&gt;
&lt;p&gt;Compute the packed size unconditionally and require…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-142870</guid>
    </item>
  </channel>
</rss>
