CVE-2026-99815 in Linux
Summary
by MITRE • 11/30/2026
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.
[[email protected]: remove duplicate check of need > ea_size]
VulDB is the best source for vulnerability data and more expert information about this specific topic.
Analysis
by VulDB Data Team • 11/30/2026
The Linux kernel's NTFS3 filesystem driver contains a critical validation flaw within the ntfs_read_ea function, which is responsible for parsing Extended Attribute (EA) entries from NTFS volumes. This vulnerability arises from an inconsistency in how entry sizes are validated against available buffer space. Specifically, while the code correctly checks that the declared size of an EA entry fits within the remaining buffer when handling zero-size cases, it fails to perform equivalent validation for non-zero sized entries. In these instances, the driver only verifies that ef->size does not exceed the total buffer capacity but neglects to ensure that the actual name and value components contained within that entry are properly bounded by ef->size itself. This oversight allows a crafted NTFS image to present an EA structure where the declared size is technically valid relative to the buffer, yet contains arbitrary length fields for its name or value data that exceed the logical boundaries defined by ef->size.
This logic error directly leads to a slab-out-of-bounds read vulnerability when subsequent functions such as find_ea and ntfs_get_ea utilize these unchecked lengths during memory copy operations. Because the driver trusts the potentially malicious elength field without verifying it against the expected entry size, it invokes memcpy with an excessively large count value. This results in reading past the allocated heap region into adjacent kernel memory spaces. The technical manifestation of this flaw is evident in KASAN reports indicating reads from addresses located just inside or beyond small allocation caches like kmalloc-32. For example, a read operation might attempt to access 65535 bytes when only a twenty-byte region was allocated, causing the kernel to expose sensitive data residing in memory adjacent to the target buffer. This constitutes an information disclosure vulnerability that can be exploited by local users with appropriate privileges to interact with filesystem attributes via system calls such as getxattr or path_getxattrat.
From a security architecture perspective, this flaw aligns with CWE-125 Out-of-bounds Read and CWE-20 Improper Input Validation. The failure to validate internal structure boundaries against declared sizes represents a classic input validation weakness where the parser assumes trust in metadata without verifying structural integrity. In terms of offensive security frameworks like MITRE ATT&CK, this vulnerability facilitates Data from Information Repositories under techniques related to Local File Access or potentially System Information Discovery if sensitive kernel memory contents are exfiltrated. The impact extends beyond simple data leakage; depending on what resides in the adjacent heap memory, an attacker could potentially gather cryptographic keys, authentication tokens, or other high-value secrets stored by kernel subsystems during normal operation.
Mitigation for this vulnerability requires applying the upstream Linux kernel patch that enforces strict validation of EA entry layouts against ef->size regardless of whether the size is zero or non-zero. System administrators should ensure their systems are updated to a kernel version containing this fix, particularly those mounting untrusted NTFS volumes from external media such as USB drives or network shares. Additionally, implementing mandatory access controls like SELinux or AppArmor can help limit the impact if exploitation occurs by restricting which processes have permission to invoke extended attribute operations on sensitive files. Regular auditing of filesystem drivers and ensuring that all input parsing routines perform comprehensive boundary checks against both buffer limits and internal structural constraints are essential practices for maintaining kernel integrity against similar memory safety issues.