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

CVE-2026-98138: Linux Kernel NTFS Privilege Escalation Flaw

CVE-2026-98138 is a privilege escalation vulnerability in the Linux kernel NTFS driver that incorrectly marks error volumes as clean. This article covers the technical details, affected versions, and mitigation strategies.

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

CVE-2026-98138 is a Linux kernel vulnerability in the NTFS filesystem driver. The flaw affects how ntfs_sync_fs() manages the on-disk volume dirty bit. The function clears the dirty bit unconditionally during a sync, even when volume errors have already been recorded. As a result, a subsequent mount sees the volume as clean and skips recovery, leaving filesystem inconsistencies unrepaired. The issue was reproduced on a volume where $MFTMirr did not match $MFT, which sets the error flag while the volume remains mounted read-write. After a write and sync, the on-disk flags read 0x0000 instead of the expected 0x0001.

Critical Impact

Filesystem corruption on NTFS volumes can go undetected and unrepaired, because errored volumes are silently marked clean after any sync() call.

Affected Products

  • Linux kernel NTFS filesystem driver (ntfs3)
  • Distributions shipping the affected kernel versions prior to the referenced stable commits
  • Systems mounting NTFS volumes read-write with the in-tree NTFS driver

Discovery Timeline

  • 2026-09-25 - CVE-2026-98138 published to NVD
  • 2026-09-30 - Last updated in NVD database

Technical Details for CVE-2026-98138

Vulnerability Analysis

The Linux kernel NTFS driver tracks volume state through an in-memory error flag (NVolErrors(vol)) and an on-disk dirty bit stored in the volume flags. When filesystem inconsistencies are detected during normal operation, the driver sets the error flag and marks the volume dirty so that a later mount triggers recovery.

Two exit paths respect this contract. The ntfs_put_super() unmount handler and the remount-read-only path both clear the dirty bit only when no errors have been recorded. The ntfs_sync_fs() handler, invoked for every sync() or fsync() that reaches the superblock, does not perform this check. It clears the dirty bit unconditionally.

The divergence means that any userspace sync() call on a volume that has recorded a filesystem error overwrites the dirty state. On the next mount, the NTFS driver sees a clean volume, skips the recovery path, and continues using a filesystem whose metadata is known to be inconsistent. This is a file system vulnerability classified under improper state handling.

Root Cause

The root cause is an inconsistency between code paths that manage the same on-disk flag. ntfs_sync_fs() lacks the NVolErrors(vol) guard present in ntfs_put_super() and the remount path. The fix adds the same guard so that sync_fs skips clearing the dirty bit whenever volume errors are recorded.

Attack Vector

Exploitation requires an existing filesystem error condition on a mounted NTFS volume, followed by any process issuing sync(). The vulnerability does not grant code execution or privilege escalation. The impact is loss of filesystem integrity assurance: metadata corruption persists silently across reboots and may propagate into user data. The reproducer uses a volume with mismatched $MFT and $MFTMirr, writes to it, calls sync(), and observes volume flags transition from 0x0001 to 0x0000.

See the upstream commits for the technical fix: Kernel Git Commit Log and Kernel Git Commit Change.

Detection Methods for CVE-2026-98138

Indicators of Compromise

  • On-disk NTFS volume flags reading 0x0000 after a sync on a volume that previously reported errors in kernel logs.
  • Kernel log entries referencing $MFT and $MFTMirr mismatches, followed by continued read-write operation.
  • NTFS recovery not executing on mount despite prior reports of inconsistencies in dmesg.

Detection Strategies

  • Audit running kernel versions against the fixed stable commits referenced in the upstream advisory.
  • Correlate NTFS error messages in dmesg with subsequent sync activity and on-disk flag state read via ntfsinfo or equivalent tooling.
  • Flag systems that mount NTFS volumes read-write and run periodic sync daemons without applying the kernel update.

Monitoring Recommendations

  • Collect kernel ring buffer logs centrally and alert on NTFS error strings emitted by the ntfs3 driver.
  • Monitor filesystem health through offline ntfsfix or chkdsk runs during maintenance windows to catch inconsistencies the driver silently masks.
  • Track kernel package versions across the fleet to identify hosts still exposed.

How to Mitigate CVE-2026-98138

Immediate Actions Required

  • Apply the upstream kernel patches referenced in the stable commits 0e4c839905418d55bafe571a92533a1d1ac7b0a8 and ca1f9933eff777a604eb664d0f9ae433b8664cbf.
  • Update to the distribution kernel release that incorporates the fix once vendors publish backports.
  • Run offline NTFS consistency checks on any volume that reported errors prior to patching.

Patch Information

The fix adds an NVolErrors(vol) check to ntfs_sync_fs() so the function skips clearing the dirty bit when volume errors have been recorded. The change aligns sync_fs behavior with ntfs_put_super() and the remount-read-only path. Reference the upstream commits: Kernel Git Commit Log and Kernel Git Commit Change.

Workarounds

  • Mount NTFS volumes read-only where write access is not required, which prevents the dirty bit from being toggled by sync_fs.
  • Unmount NTFS volumes cleanly and run ntfsfix or Windows chkdsk before remounting when kernel logs report errors.
  • Avoid relying on in-driver recovery as a durability guarantee until the patched kernel is deployed.
bash
# Verify running kernel and check for NTFS errors before applying the fix
uname -r
dmesg | grep -iE 'ntfs|\$MFT'

# Mount NTFS read-only as a temporary workaround
mount -o remount,ro /mnt/ntfs_volume

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.