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-97439 Overview
CVE-2026-97439 is a NULL pointer dereference in the Linux kernel fs/ntfs3 filesystem driver. The flaw occurs when a crafted NTFS image toggles the system.ntfs_attrib extended attribute and then overwrites system.dos_attrib on the same file. The write path reaches generic_perform_write() with a NULL write_begin callback from ntfs_aops_cmpr, triggering a kernel oops. The vulnerability has been resolved in upstream Linux kernel commits.
Critical Impact
Local attackers who can mount a crafted NTFS image can trigger a kernel NULL pointer dereference, resulting in denial of service against the host system.
Affected Products
- Linux kernel fs/ntfs3 filesystem driver
- Kernel builds with CONFIG_NTFS3_FS enabled that mount untrusted NTFS volumes
- Downstream distributions shipping affected kernel versions prior to the fix commits
Discovery Timeline
- 2026-09-24 - CVE-2026-97439 published to the National Vulnerability Database
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-97439
Vulnerability Analysis
The ntfs3 driver exposes two overlapping extended attributes that both influence file attribute state. Writing to system.ntfs_attrib updates ATTR_DATA flags via ni_new_attr_flags() and switches i_mapping->a_ops to ntfs_aops_cmpr when FILE_ATTRIBUTE_COMPRESSED is set. A subsequent write to system.dos_attrib overwrites ni->std_fa with a one-byte DOS attribute value. That overwrite clears the compression bit without updating ATTR_DATA or the mapping operations.
Buffered writes then use is_compressed(ni) to select __generic_file_write_iter(). Because ni->std_fa no longer reports compression but the address-space operations still point to ntfs_aops_cmpr, generic_perform_write() invokes a NULL write_begin callback. The kernel traps with a supervisor instruction fetch at address 0x0.
Root Cause
The root cause is inconsistent state between ni->std_fa, the ATTR_DATA flags, and the mapping operations installed on the inode. The system.dos_attrib handler treated the attribute value as a full replacement rather than a low-byte DOS attribute update, discarding non-DOS attribute bits that must stay synchronized with the address-space operations.
Attack Vector
Exploitation requires local access and the ability to mount or interact with a corrupted NTFS image through the ntfs3 driver. An attacker toggles system.ntfs_attrib to install compressed address-space operations, then writes a crafted single-byte value to system.dos_attrib. A subsequent write() syscall on the same file dereferences the NULL write_begin pointer and crashes the kernel.
No verified public exploit code is available. See the upstream fix commits for the exact patch: Kernel Git Commit 2de91ae, Kernel Git Commit 407ee19, and Kernel Git Commit b1c1101.
Detection Methods for CVE-2026-97439
Indicators of Compromise
- Kernel oops entries referencing generic_perform_write+0x409, ntfs_file_write_iter, and a NULL RIP: 0010:0x0 instruction pointer
- dmesg output showing BUG: kernel NULL pointer dereference, address: 0000000000000000 during NTFS write operations
- Unexpected mount events for NTFS volumes from removable media or user-supplied images on multi-user systems
Detection Strategies
- Monitor syslog and journald for kernel panic signatures tied to fs/ntfs3/file.c call stacks
- Audit setxattr syscalls targeting system.ntfs_attrib and system.dos_attrib on the same inode in short succession
- Flag userspace processes mounting NTFS images from non-administrative paths such as user home directories or /tmp
Monitoring Recommendations
- Enable kernel crash dump collection (kdump) to capture full stack traces for post-incident analysis
- Alert on repeated host reboots or kernel oops events clustered on systems that handle removable storage
- Correlate NTFS mount activity with subsequent crash telemetry across the fleet
How to Mitigate CVE-2026-97439
Immediate Actions Required
- Apply distribution kernel updates that incorporate the upstream fs/ntfs3 fix commits as soon as vendors publish them
- Restrict mounting of untrusted NTFS images by non-privileged users through polkit and udisks2 policy changes
- Audit systems that accept removable NTFS media and enforce administrative mount approval
Patch Information
The fix treats system.dos_attrib as a low-byte DOS attribute update and preserves existing non-DOS attribute bits in ni->std_fa. This keeps compressed and sparse state consistent with ATTR_DATA and the mapping operations. Upstream patches are available at Kernel Git Commit 2de91ae, Kernel Git Commit 407ee19, and Kernel Git Commit b1c1101.
Workarounds
- Blacklist the ntfs3 kernel module on systems that do not require NTFS read-write support
- Mount NTFS volumes read-only to prevent the vulnerable setxattr and write code paths from executing
- Disable automatic mounting of removable media in desktop environments until patches are deployed
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

