CVE-2026-99819 in Linux
Summary
by MITRE • 11/30/2026
In the Linux kernel, the following vulnerability has been resolved:
ntfs3: fix out-of-bounds read in ntfs_read_mft()
ntfs_read_mft() walks the attributes of an MFT record and, for each FILE_NAME attribute, compares the resident on-disk name with the name being looked up. The only size check before the compare is rsize >= SIZEOF_ATTRIBUTE_FILENAME, which covers the fixed header up to and including name_len, but not the variable-length name that follows it.
name_len comes straight from disk and is not validated against the resident data_size. A crafted image can set name_len large while keeping data_size at the header size, so ntfs_cmp_names_cpu() reads name_len le16 characters past the end of the MFT record buffer:
BUG: KASAN: slab-out-of-bounds in ntfs_cmp_names_cpu (fs/ntfs3/upcase.c:84) Read of size 2 at addr ffff888031879c00 by task a.out ntfs_cmp_names_cpu (fs/ntfs3/upcase.c:84) ntfs_iget5 (fs/ntfs3/inode.c:209) dir_search_u (fs/ntfs3/dir.c:265) ntfs_lookup (fs/ntfs3/namei.c:85) __lookup_slow (fs/namei.c:1915) lookup_slow (fs/namei.c:1932) path_lookupat (fs/namei.c:2278) vfs_statx (fs/stat.c) vfs_fstatat (fs/stat.c) __do_sys_newfstatat (fs/stat.c)
Allocated by task: mi_init (fs/ntfs3/record.c) ntfs_iget5 (fs/ntfs3/inode.c) dir_search_u (fs/ntfs3/dir.c) ntfs_lookup (fs/ntfs3/namei.c)
Check that the name fits in the resident data before using it.
If you want to get best quality of vulnerability data, you may have to visit VulDB.
Analysis
by VulDB Data Team • 11/30/2026
The Linux kernel's NTFS3 filesystem driver contains a critical out-of-bounds read vulnerability within the ntfs_read_mft function, which is responsible for parsing Master File Table records to locate specific files by their names. This flaw arises from an insufficient validation of attribute data sizes during the comparison process between resident on-disk file names and lookup requests. Specifically, while the code performs a basic size check ensuring that the remaining record size is at least equal to the fixed header length including the name_len field, it fails to verify whether the variable-length filename string itself fits within the allocated buffer defined by data_size. This oversight allows an attacker with access to a crafted NTFS image or block device to exploit this logic error by setting the name_len value significantly larger than the actual resident data size while keeping the header intact.
When such a malformed record is processed, the ntfs_cmp_names_cpu function proceeds to read up to name_len characters from memory beyond the boundaries of the MFT record buffer. This results in a slab-out-of-bounds read as detected by Kernel Address Sanitizer during testing. The vulnerability affects system calls that involve file lookups and status checks, such as vfs_statx and __do_sys_newfstatat, because these operations trigger directory searches that invoke ntfs_lookup. Consequently, any user-space application performing standard filesystem queries on a mounted NTFS volume containing this maliciously crafted record can trigger the out-of-bounds access. Although primarily classified as an information leak due to reading uninitialized or adjacent memory contents rather than arbitrary code execution, such reads can potentially expose sensitive kernel data structures or cause instability depending on what lies in the adjacent slab cache regions.
From a classification perspective, this vulnerability aligns with CWE-125 Out-of-bounds Read and falls under MITRE ATT&CK technique T1083 File and Directory Discovery when leveraged for reconnaissance purposes within a compromised environment where an attacker can mount or manipulate filesystem images. The root cause is identified as improper input validation of untrusted data originating from disk, specifically failing to constrain the variable-length portion of an attribute against its declared size limit. This represents a classic case of trusting metadata without verifying payload boundaries, which is particularly dangerous in kernel-space drivers that handle raw storage formats directly.
To mitigate this risk, users should ensure their Linux kernels are updated with patches addressing ntfs3 buffer validation logic. The fix involves adding explicit checks to verify that the name_len value does not exceed the remaining resident data size before attempting any string comparisons. Administrators managing NTFS volumes should also exercise caution when mounting images from untrusted sources until patching is complete, as crafting such malicious records requires only write access to a filesystem image prior to mounting it on an affected system. Regular security audits of kernel drivers handling external storage formats are recommended to prevent similar boundary validation errors in other subsystems.