# CVE-2026-99815: fs/ntfs3: validate EA entry layout against ef->size in ntfs_read_ea

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 22% of CVEs (2026-12-01)
- Published: 2026-11-30T07:52:18.440Z
- Modified: 2026-11-30T08:18:02.257Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

fs/ntfs3: validate EA entry layout against ef->size in ntfs_read_ea

In ntfs_read_ea(), the ef->size branch only checks that the declared
entry size fits the remaining buffer; unlike the zero-size branch it
never verifies that the entry's own name and value fit inside ef->size.
A crafted image can thus present an in-bounds ef->size with an arbitrary
elength, which find_ea()/ntfs_get_ea() later use as the memcpy length,
reading past the allocation and leaking adjacent heap memory:

  BUG: KASAN: slab-out-of-bounds in ntfs_get_ea (fs/ntfs3/xattr.c:302)
  Read of size 65535 at addr ffff888010770b0f by task exploit/142
   ...
   __asan_memcpy (mm/kasan/shadow.c:105)
   ntfs_get_ea (fs/ntfs3/xattr.c:302)
   ntfs_getxattr (fs/ntfs3/xattr.c:848)
   __vfs_getxattr (fs/xattr.c:446)
   vfs_getxattr (fs/xattr.c:479)
   do_getxattr (fs/xattr.c:808)
   filename_getxattr (fs/xattr.c:837)
   path_getxattrat (fs/xattr.c:876)
   do_syscall_64 (arch/x86/entry/syscall_64.c:94)
  ...
  The buggy address is located 15 bytes inside of
   allocated 20-byte region, cache kmalloc-32

Validate the name/value layout in the ef->size branch too, bounding it
against ef->size, as the zero-size branch validates it against the
buffer.

[almaz.alexandrovich@paragon-software.com: remove duplicate check of need > ea_size]

(As written by CVE List.)

## Affected

- Linux Linux: from be71b5cba2e6485e8959da7a9f9a44461a1bb074 before 9d878b65f8de50bcd350577274ee2269ec966e06; from be71b5cba2e6485e8959da7a9f9a44461a1bb074 before 53d58a880c6054761d753c7556c298c8898dddf8; from be71b5cba2e6485e8959da7a9f9a44461a1bb074 before bfb7f7493c172742ab16fe54b3b042160ee5501a; from be71b5cba2e6485e8959da7a9f9a44461a1bb074 before a43bdd6efbe733c9d5072d045294247a4b1e4d6e; from be71b5cba2e6485e8959da7a9f9a44461a1bb074 before bdd318f6aa4150b252c86dd378fa43d9a51107ff; from be71b5cba2e6485e8959da7a9f9a44461a1bb074 before 5a2cdad7cf53fcae9bb9641b578ec10d3c0dae16; from be71b5cba2e6485e8959da7a9f9a44461a1bb074 before 01e56820ef52d14a5560fb7c0c6f2f75ef6f9393; 5.15 (not affected: before 5.15; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.119 up to 6.12.*; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/9d878b65f8de50bcd350577274ee2269ec966e06>
- <https://git.kernel.org/stable/c/53d58a880c6054761d753c7556c298c8898dddf8>
- <https://git.kernel.org/stable/c/bfb7f7493c172742ab16fe54b3b042160ee5501a>
- <https://git.kernel.org/stable/c/a43bdd6efbe733c9d5072d045294247a4b1e4d6e>
- <https://git.kernel.org/stable/c/bdd318f6aa4150b252c86dd378fa43d9a51107ff>
- <https://git.kernel.org/stable/c/5a2cdad7cf53fcae9bb9641b578ec10d3c0dae16>
- <https://git.kernel.org/stable/c/01e56820ef52d14a5560fb7c0c6f2f75ef6f9393>

## Sources

- CVE List: [CVE-2026-99815](https://www.cve.org/CVERecord?id=CVE-2026-99815), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-99815](https://nvd.nist.gov/vuln/detail/CVE-2026-99815), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-99815 · Whole record: https://cve.day/CVE-2026-99815.json · Rebuilt by cve.day 2026-11-30T08:32:36.323Z
