<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://db.gcve.eu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-12-05T12:29:56.417708+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@gcve.eu</email>
  </author>
  <link href="https://db.gcve.eu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://db.gcve.eu/vuln/cve-2026-142870</id>
    <title>CVE-2026-142870 — fs/ntfs3: validate the EA value length in ntfs_read_ea()</title>
    <updated>2026-12-05T12:29:56.420808+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Linux</p>
<p>In the Linux kernel, the following vulnerability has been resolved:</p>
<p>fs/ntfs3: validate the EA value length in ntfs_read_ea()</p>
<p>ntfs_read_ea() checks the $EA list for consistency, but it only
recomputes the packed size of an entry when the entry's own size field is
zero:</p>
<p>for (off = 0; off &lt; size; off += ea_size) {
		const struct EA_FULL *ef = Add2Ptr(ea_p, off);
		u32 bytes = size - off;
		...
		if (ef-&gt;size) {
			ea_size = le32_to_cpu(ef-&gt;size);
			if (ea_size &gt; bytes)
				goto out1;
			continue;              /* &lt;- elength never checked */
		}
		...
		ea_size = ALIGN(struct_size(ef, name,
					    1 + ef-&gt;name_len +
						    le16_to_cpu(ef-&gt;elength)),
				4);
		if (ea_size &gt; bytes)
			goto out1;
	}</p>
<p>ef-&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-&gt;size when it is set, so
it agrees and hands the entry back.</p>
<p>ntfs_get_ea() copies elength bytes with no further bound of its own:</p>
<p>len = le16_to_cpu(ea-&gt;elength);
	...
	if (len &gt; size) {              /* size is the *caller's* buffer */
		err = -ERANGE;
		...
	}
	memcpy(buffer, ea-&gt;name + ea-&gt;name_len + 1, len);</p>
<p>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).</p>
<p>Compute the packed size unconditionally and require…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/cve-2026-142870"/>
  </entry>
</feed>
