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

CVE-2026-98137: Linux Kernel NTFS Privilege Escalation

CVE-2026-98137 is a privilege escalation vulnerability in the Linux kernel NTFS filesystem that can expose stale disk data through failed zero-range operations. This article covers technical details, affected versions, 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-98137 Overview

CVE-2026-98137 is a Linux kernel vulnerability in the NTFS filesystem implementation. The flaw resides in the ntfs_attr_fallocate() function, which incorrectly validates the return value of ntfs_dio_zero_range(). Because the zeroing failure check never triggers, a failed direct I/O zeroing operation is silently ignored. The allocation loop continues, newly allocated clusters are folded into initialized_size, and a subsequent write can succeed while leaving stale on-disk data exposed to the file.

Critical Impact

A failed zeroing operation during NTFS fallocate can leave previously allocated disk blocks unzeroed, exposing stale on-disk contents through subsequent reads of the file.

Affected Products

  • Linux kernel (NTFS filesystem driver)
  • Distributions shipping affected kernel versions prior to the fix in commits 56392b0d5290 and 607a9478833d
  • Systems mounting NTFS volumes with direct I/O write workloads

Discovery Timeline

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

Technical Details for CVE-2026-98137

Vulnerability Analysis

The vulnerability stems from a return-value handling defect in the NTFS fallocate path. ntfs_dio_zero_range() is documented to return either 0 on success or a negative errno propagated from blkdev_issue_zeroout(). It never returns a positive value. The zeroing failure check in ntfs_attr_fallocate() was written to detect positive return values, so failures were effectively unreachable.

When blkdev_issue_zeroout() fails, the fallocate loop continues as though the operation succeeded. Newly allocated clusters are folded into the file's initialized_size field, and the file is treated as fully initialized. A subsequent write or read then operates on blocks that still contain whatever data previously resided on those disk sectors.

This can result in information disclosure of data from freed or recycled disk blocks. On multi-tenant systems or storage reused across trust boundaries, the condition can expose sensitive content that was never meant to be visible to the file's owner.

Root Cause

The root cause is an incorrect error-check predicate. ntfs_attr_fallocate() tests for a nonzero positive return instead of treating any nonzero value as an error. Because ntfs_dio_zero_range() only returns 0 or a negative value, the failure path was dead code.

Attack Vector

Triggering the condition requires a failure during blkdev_issue_zeroout(), typically caused by underlying block device errors or storage layer failures during an NTFS fallocate operation. An attacker with write access to an NTFS volume could potentially use fallocate followed by a read to retrieve stale on-disk data when zeroing fails. See the upstream commits for technical details: Linux Kernel Commit 56392b0 and Linux Kernel Commit 607a947.

Detection Methods for CVE-2026-98137

Indicators of Compromise

  • Kernel log entries indicating blkdev_issue_zeroout() failures or block device I/O errors on NTFS-mounted volumes
  • Unexpected file contents following fallocate operations on NTFS, particularly non-null bytes in regions expected to be zero
  • Audit records showing fallocate system calls against NTFS files immediately preceded by storage subsystem errors

Detection Strategies

  • Monitor kernel ring buffer and /var/log/messages for NTFS driver warnings and block-layer errors correlated with fallocate activity
  • Compare running kernel version against the fixed commits 56392b0d5290 and 607a9478833d to identify unpatched hosts
  • Review file integrity monitoring data for anomalous content changes in files recently extended with fallocate() on NTFS mounts

Monitoring Recommendations

  • Enable auditd rules covering the fallocate syscall for processes writing to NTFS volumes
  • Track storage subsystem health metrics so transient block device failures are visible to the SOC
  • Centralize kernel logs for long-term correlation between hardware I/O errors and filesystem anomalies

How to Mitigate CVE-2026-98137

Immediate Actions Required

  • Inventory Linux systems that mount NTFS volumes and identify kernels missing commits 56392b0d5290ff2b05fc673bc07803b8ae4cfd1b and 607a9478833db656e7ceac8e9e382fa4acfde545
  • Apply vendor kernel updates that include the fix as soon as they are released by your distribution
  • Prioritize systems where NTFS volumes hold sensitive data or are shared across trust boundaries

Patch Information

The fix changes ntfs_attr_fallocate() to treat any nonzero return from ntfs_dio_zero_range() as an error and abort the allocation. The upstream fixes are available in Linux Kernel Commit 56392b0 and Linux Kernel Commit 607a947. Rebuild or install distribution kernels that include these commits.

Workarounds

  • Avoid mounting untrusted NTFS volumes on affected kernels where write workloads use fallocate()
  • Mount NTFS filesystems read-only where write capability is not required
  • Monitor and remediate block device errors promptly to reduce the likelihood of zeroing failures occurring in the first place

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.