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

CVE-2026-97437: Linux Kernel NTFS3 Buffer Overflow Flaw

CVE-2026-97437 is a buffer overflow in the Linux kernel NTFS3 driver that enables out-of-bounds reads through crafted filesystem images. This article covers technical details, affected versions, and mitigation steps.

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

CVE-2026-97437 is an out-of-bounds read vulnerability in the Linux kernel's ntfs3 filesystem driver. The flaw resides in the ntfs_dir_emit() and hdr_find_e() functions, where an incorrect bounds check fails to account for the UTF-16LE 2-byte-per-character encoding and the 66-byte ATTR_FILE_NAME header. A crafted NTFS image containing an index entry with a small e->size but a large fname->name_len bypasses the check, causing ntfs_utf16_to_nls() to read past the entry boundary.

Critical Impact

A local attacker who mounts a malicious NTFS image can trigger kernel memory disclosure or a denial-of-service condition through out-of-bounds reads in the directory enumeration path.

Affected Products

  • Linux kernel versions containing the ntfs3 filesystem driver
  • Distributions shipping vulnerable ntfs3 kernel modules
  • Systems that permit mounting of untrusted NTFS filesystems

Discovery Timeline

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

Technical Details for CVE-2026-97437

Vulnerability Analysis

The ntfs3 driver parses NTFS directory index entries during readdir operations. The function ntfs_dir_emit() validates entry boundaries before passing data to the UTF-16 to NLS conversion routine. The validation incorrectly treats fname->name_len, which is a character count, as if it were a byte count.

The original check computes name_len + 16 > e_size. The correct computation must be 16 + 66 + name_len * 2 > e_size to account for the ATTR_FILE_NAME header and the two bytes required per UTF-16LE character. The helper fname_full_size() already implements this calculation in ntfs.h and is used by cmp_fnames(), namei.c, and fslog.c, but was never applied in the readdir path.

The secondary issue in hdr_find_e() lacks validation that the declared key_size fits within the available entry data. Comparison functions therefore read past entry boundaries during index lookups. The vulnerability falls under [CWE-125] Out-of-Bounds Read.

Root Cause

The root cause is an arithmetic error in the bounds check that conflates character count with byte count and omits the attribute header size. A specially crafted NTFS entry with a small declared e->size and a large name_len passes the flawed check and causes the UTF-16 conversion routine to walk off the end of the allocated buffer.

Attack Vector

Exploitation requires local access and the ability to mount a crafted NTFS image. On systems where unprivileged users can mount removable media or user-supplied disk images, an attacker triggers the out-of-bounds read by enumerating a directory on the malicious filesystem. The result is kernel memory disclosure or a kernel oops, depending on adjacent memory layout.

No verified public exploit code is available. Refer to the upstream patches referenced below for the complete technical correction.

Detection Methods for CVE-2026-97437

Indicators of Compromise

  • Kernel log entries referencing ntfs3, ntfs_dir_emit, or ntfs_utf16_to_nls warnings or oops traces
  • KASAN reports flagging out-of-bounds reads inside the ntfs3 module
  • Unexpected mount operations of NTFS images from /tmp, /home, or removable media paths

Detection Strategies

  • Monitor dmesg and /var/log/kern.log for ntfs3 subsystem faults correlating with mount events
  • Audit mount syscalls targeting ntfs3 with filesystem images located in user-writable directories
  • Enable KASAN on test kernels to surface out-of-bounds accesses during NTFS parsing

Monitoring Recommendations

  • Collect auditd records for mount, umount, and loop device creation to correlate with kernel faults
  • Centralize kernel logs in a SIEM and alert on ntfs3 oops or warning signatures
  • Track running kernel versions against the fixed commits 6a8149a, aa1bdbb, and ed6da1a

How to Mitigate CVE-2026-97437

Immediate Actions Required

  • Apply the upstream kernel patches referenced in the stable tree commits as soon as distribution builds are available
  • Restrict mounting of untrusted NTFS filesystems to privileged users only
  • Disable automatic mounting of removable media on multi-user and server systems

Patch Information

The fix replaces the incorrect bounds arithmetic with fname_full_size() in the readdir path and adds a key_size validation in hdr_find_e(). Review the upstream commits: Kernel Git Commit 6a8149a, Kernel Git Commit aa1bdbb, and Kernel Git Commit ed6da1a.

Workarounds

  • Unload the ntfs3 kernel module where NTFS support is not required using modprobe -r ntfs3
  • Blacklist ntfs3 in /etc/modprobe.d/ on systems that never process NTFS volumes
  • Enforce noexec, nosuid, and nodev mount options and limit CAP_SYS_ADMIN to trusted administrators
bash
# Blacklist the ntfs3 module to prevent loading
echo "blacklist ntfs3" | sudo tee /etc/modprobe.d/blacklist-ntfs3.conf
sudo modprobe -r ntfs3

# Verify the module is not loaded
lsmod | grep ntfs3

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.