Skip to main content
Vulnerability Database/CVE-2026-97438

CVE-2026-97438: Linux Kernel NTFS3 Buffer Overflow Vulnerability

CVE-2026-97438 is a buffer overflow flaw in Linux kernel NTFS3 that allows malformed directory index entries to trigger out-of-bounds reads. This post covers technical details, affected versions, impact, and mitigation.

Published:

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-97438 Overview

CVE-2026-97438 is an out-of-bounds read vulnerability in the Linux kernel's fs/ntfs3 filesystem driver. The flaw resides in the NTFS directory index entry validation logic. A malformed NTFS directory index entry can advertise a key_size larger than the bytes actually present in its NTFS_DE payload. When directory lookup invokes cmp_fnames(), the comparison reads past the end of the kmalloc'ed index buffer. The vulnerability was identified through syzkaller fuzzing and produces a KASAN slab-out-of-bounds report in fname_full_size at fs/ntfs3/ntfs.h:590. Exploitation requires local access and user interaction, typically by mounting a crafted NTFS filesystem image.

Critical Impact

A local attacker can trigger an out-of-bounds read in kernel memory by mounting a malformed NTFS filesystem, leading to kernel information disclosure or denial of service.

Affected Products

  • Linux kernel versions containing the ntfs3 filesystem driver
  • Distributions shipping kernels with ntfs3 enabled prior to the patch commits
  • Systems configured to auto-mount removable NTFS media

Discovery Timeline

  • 2026-09-24 - CVE-2026-97438 published to NVD
  • 2026-09-25 - Last updated in NVD database

Technical Details for CVE-2026-97438

Vulnerability Analysis

The ntfs3 driver maintains directory contents as B-tree indexes composed of NTFS_DE (directory entry) structures. Each entry contains a key_size field that declares the length of its filename key. The driver's lookup path calls cmp_fnames() to compare a search key against entries returned by hdr_find_e() and indx_find().

The pre-patch validators only inspected INDEX_HDR-level geometry. They did not walk each NTFS_DE to verify entry alignment, subnode layout, or that key_size fit inside the entry payload. The validators also permitted the terminating sentinel entry to carry a non-zero key_size. When lookup reached a malformed entry, fname_full_size() dereferenced bytes beyond the allocated index buffer. KASAN flags this as a 1-byte read at an address past the kmalloc allocation performed by indx_read().

The trigger path begins at __x64_sys_lsetxattr, descends through filename_lookup(), and reaches ntfs_lookup() which drives the index search. Any syscall that resolves a path on an attacker-controlled NTFS volume can reach this code.

Root Cause

The root cause is missing input validation of per-entry fields within the NTFS index header. The validators trusted entry-level metadata without bounds-checking key_size against the entry's declared length or the remaining buffer. This is an Out-of-Bounds Read ([CWE-125]) stemming from Improper Input Validation ([CWE-20]).

Attack Vector

Exploitation requires local access and user interaction. An attacker crafts a malicious NTFS filesystem image containing a directory index with an inflated key_size field or a non-zero sentinel entry. When the victim mounts the image, whether through manual mount, automount, or removable-media handlers, any path lookup that traverses the malformed directory triggers the out-of-bounds read. The read occurs in kernel context and can leak adjacent slab contents or crash the kernel.

No verified public exploit code is available. See the upstream commits for the technical fix: Kernel Git Commit 0257e3e, Kernel Git Commit 98d6e5d, and Kernel Git Commit a8f4fb6.

Detection Methods for CVE-2026-97438

Indicators of Compromise

  • Kernel log entries containing KASAN: slab-out-of-bounds in fname_full_size or cmp_fnames on debug kernels
  • Unexpected kernel oops or panic traces originating from fs/ntfs3/index.c call paths
  • Mount events for NTFS volumes from untrusted removable media or user-supplied disk images

Detection Strategies

  • Audit mount syscalls for NTFS filesystem types originating from non-administrative users or automount daemons
  • Monitor dmesg output and /var/log/kern.log for ntfs3-related stack traces, especially in ntfs_lookup, indx_find, and hdr_find_e
  • Correlate loop device creation (losetup) with subsequent NTFS mounts to detect disk-image-based exploitation attempts

Monitoring Recommendations

  • Enable kernel audit rules for mount and umount syscalls with filesystem type ntfs3
  • Forward kernel ring-buffer events to a centralized log platform for correlation and retention
  • Alert on repeated kernel BUG or oops reports from the same user session within short time windows

How to Mitigate CVE-2026-97438

Immediate Actions Required

  • Apply the upstream Linux kernel patches referenced in the stable commits and rebuild or update kernel packages from your distribution
  • Disable the ntfs3 kernel module on systems that do not require NTFS read-write support using modprobe -r ntfs3 and a blacklist entry
  • Restrict mounting of removable media and disk images to trusted administrators via udev and polkit policies

Patch Information

The fix walks every NTFS_DE entry in the ntfs3 index-header validators and rejects entries with invalid layout, mismatched subnode state, oversized key_size, or non-zero sentinel keys before lookup or log replay can consume them. The upstream commits are Kernel Git Commit 0257e3e, Kernel Git Commit 98d6e5d, and Kernel Git Commit a8f4fb6. Consult your distribution's security tracker for backported package versions.

Workarounds

  • Blacklist the ntfs3 module where NTFS access is not required, forcing fallback to read-only ntfs or no NTFS support at all
  • Disable automatic mounting of removable storage in desktop session managers until the kernel is patched
  • Enforce noexec, nosuid, and nodev mount options on all user-mountable filesystems to limit secondary exploitation
bash
# Blacklist the ntfs3 module until patched kernel is deployed
echo "blacklist ntfs3" | sudo tee /etc/modprobe.d/blacklist-ntfs3.conf
sudo modprobe -r ntfs3
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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.