Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-98136 Overview
CVE-2026-98136 is an out-of-bounds read vulnerability in the Linux kernel's NTFS filesystem driver. The flaw resides in ntfs_attr_find_in_attrdef(), which walks the in-memory $AttrDef table without validating that each 160-byte entry fits entirely within the allocated buffer. A crafted NTFS volume with a truncated $AttrDef data size (for example, 120 bytes) triggers reads past the allocation when a file is created. KASAN reports a slab-out-of-bounds read reached through ntfs_attr_size_bounds_check() and ntfs_attr_can_be_non_resident().
Critical Impact
A malicious or malformed NTFS volume can trigger kernel out-of-bounds reads, leading to information disclosure or kernel memory corruption during routine filesystem operations.
Affected Products
- Linux kernel versions containing the NTFS filesystem driver prior to the fix commits
- Distributions shipping the mainline NTFS driver with the vulnerable ntfs_attr_find_in_attrdef() loop guard
- Systems that mount untrusted NTFS volumes using the in-kernel NTFS driver
Discovery Timeline
- 2026-09-25 - CVE-2026-98136 published to NVD
- 2026-09-30 - Last updated in NVD database
Technical Details for CVE-2026-98136
Vulnerability Analysis
The vulnerability is an out-of-bounds read [CWE-125] in the Linux kernel's NTFS driver. The function ntfs_attr_find_in_attrdef() iterates over the $AttrDef table that was loaded from disk by load_and_init_attrdef(). The loop bounds only confirm that the start of each entry sits within vol->attrdef_size, not that the full struct attr_def fits.
Each struct attr_def occupies 160 bytes. The loop guard reads ad->type at offset 128, and subsequent body statements access later fields. When vol->attrdef is allocated with kvzalloc(i_size) and i_size is smaller than one entry, iteration dereferences memory outside the allocation.
File creation reaches the vulnerable code path through ntfs_attr_add(), which calls ntfs_attr_can_be_non_resident() and then ntfs_attr_size_bounds_check(). KASAN captures the condition as a slab-out-of-bounds read of 4 bytes at the first iteration.
Root Cause
The root cause is incomplete bounds checking in the loop condition. load_and_init_attrdef() only validates that 0 < i_size <= 0x7fffffff, so any non-zero on-disk size is accepted. The iteration logic trusts this value without requiring it to be a multiple of, or at minimum equal to, the size of a single attr_def structure.
Attack Vector
An attacker who can present a crafted NTFS volume to a target system can trigger the out-of-bounds read. Realistic vectors include removable USB media, disk images mounted by automated services, or forensic workflows that mount attacker-supplied volumes. Exploitation requires that the volume be mounted and that a filesystem operation reach ntfs_attr_add().
The fix requires the full entry to lie within attrdef_size in the loop guard and rejects mounts whose $AttrDef is too small to hold even one attr_def entry. See Kernel Git Commit 3e2ae47 and Kernel Git Commit c8504fc1 for the upstream patches.
Detection Methods for CVE-2026-98136
Indicators of Compromise
- KASAN reports containing slab-out-of-bounds in ntfs_attr_find_in_attrdef in kernel logs
- Kernel oops or warning traces referencing ntfs_attr_size_bounds_check, ntfs_attr_can_be_non_resident, or ntfs_attr_add call stacks
- Mount events for NTFS volumes with abnormally small $AttrDef metadata originating from removable or untrusted media
Detection Strategies
- Monitor dmesg and journald for NTFS driver warnings and KASAN splats on hosts that mount external media
- Audit mount activity on servers and workstations to identify unexpected NTFS volume mounts, especially from USB or image files
- Inventory running kernel versions across the fleet and flag hosts that have not received the patched NTFS driver
Monitoring Recommendations
- Forward kernel ring buffer messages to a centralized log pipeline and alert on ntfs_attr_find_in_attrdef strings
- Track mount syscalls for filesystem type ntfs using auditd or eBPF-based telemetry
- Correlate removable media insertion events with subsequent kernel errors to surface probe attempts
How to Mitigate CVE-2026-98136
Immediate Actions Required
- Apply the upstream Linux kernel patches referenced in commits 3e2ae47b8ebc and c8504fc1245f or update to a distribution kernel that includes them
- Restrict automatic mounting of NTFS volumes from untrusted sources, including USB devices and user-supplied disk images
- Audit systems that routinely process external NTFS media, such as forensic workstations and file ingestion servers, and prioritize them for patching
Patch Information
The fix tightens the loop guard in ntfs_attr_find_in_attrdef() to require the entire struct attr_def entry to lie within vol->attrdef_size. It also rejects mounts when the on-disk $AttrDef is too small to hold a single entry. Patches are available via Kernel Git Commit 3e2ae47 and Kernel Git Commit c8504fc1.
Workarounds
- Disable the in-kernel NTFS driver on systems that do not require it by blacklisting the ntfs3 or ntfs module
- Use udev rules or policy controls to block automatic mounting of removable NTFS media on multi-user systems
- Mount untrusted NTFS images in isolated virtual machines rather than directly on production hosts
# Blacklist the NTFS kernel module until a patched kernel is deployed
echo 'blacklist ntfs3' | sudo tee /etc/modprobe.d/blacklist-ntfs3.conf
echo 'blacklist ntfs' | sudo tee -a /etc/modprobe.d/blacklist-ntfs3.conf
sudo update-initramfs -u
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

