CVE-2026-100003

ntfs: do not map an unmappable runlist fragment as a hole

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

ntfs: do not map an unmappable runlist fragment as a hole

When the extent mft record holding part of a file's runlist cannot be
read, ntfs_attr_vcn_to_rl() ignores the failed ntfs_map_runlist_nolock()
retry and returns with *lcn == LCN_RL_NOT_MAPPED. The iomap read path
only rejects lcn < LCN_ENOENT, so it maps the range as a hole and read()
returns zeros with no error. The first read already does this:
ntfs_attr_map_whole_runlist() keeps the fragments it could read,
readahead drops its error, and the next lookup finds the unmapped tail.

On a file whose runlist is split between its base record (vcn 0-214) and
one extent record (vcn 215-1499), breaking only the extent record's FILE
magic makes the kernel log "Failed to map extent mft record", yet read()
returns 1285 clusters of zeros for vcn 215-1499. A damaged attribute
list entry, which makes the retry fail with -ENOENT, gives the same
zeros.

Return -ENOMEM if the retry ran out of memory and -EIO otherwise. Both
callers already handle an ERR_PTR; other negative lcns, including
LCN_ENOENT, are returned as before, and so is LCN_RL_NOT_MAPPED at or
beyond allocated_size, where nothing is mapped: the runlist ends there
with LCN_RL_NOT_MAPPED when only the last extent is mapped, as after a
write into it, and with clusters smaller than a page every read of a
file's last folio looks up such vcns.

Reads of vcn 215-1499 now fail with -EIO. An intact volume exercised
with buffered, mmap and O_DIRECT I/O, fallocate, truncate, sparse and
compressed files behaves as before.

Analysis

AI-generated

Technical impact

The Linux NTFS driver incorrectly treats a failure to map an unmappable runlist fragment as a hole, returning zero‑filled data with no error. This logic flaw causes read operations to silently provide empty data for part of a file, which can hide corruption or incomplete data from applications. The weakness is an improperly implemented security check (CWE-682) and an improper type conversion (CWE-704). Consequently, users may receive corrupted data and may not be aware that the data was unreadable.

Affected Systems

All Linux kernel installations that include NTFS support prior to the commit that remedies the mapping logic are potentially affected. The advisory does not specify exact kernel versions, but any build that still contains the legacy ntfs.c code and has not integrated the referenced changes in commits 2b451a6 or 7721a5e is at risk. Operations on NTFS partitions—including read, mmap, O_DIRECT, fallocate, truncate, sparse or compressed file handling—could trigger the defect.

Risk and Exploitability

The flaw requires local access to a device with an NTFS partition and the ability to read files from it; it does not enable privilege escalation or remote code execution. No EPSS score is reported and the vulnerability is not listed in CISA's KEV catalog, indicating the absence of known active exploitation. Nevertheless, because the bug can silently return zero data, it poses a reliability threat to applications that depend on accurate file I/O.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that incorporates the commit fixing the NTFS read error (see commit 2b451a6 or 7721a5e).
  • If an immediate kernel upgrade is not possible, manually apply the patch changes from the referenced commits to the kernel source, rebuild the kernel, and install the updated module.
  • After applying the fix, run integrity checks or read sample files from NTFS volumes to confirm that previously affected regions now return correct data.

Generated by OpenCVE AI on November 30, 2026 at 16:29 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-682
CWE-704
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ntfs: do not map an unmappable runlist fragment as a hole When the extent mft record holding part of a file's runlist cannot be read, ntfs_attr_vcn_to_rl() ignores the failed ntfs_map_runlist_nolock() retry and returns with *lcn == LCN_RL_NOT_MAPPED. The iomap read path only rejects lcn < LCN_ENOENT, so it maps the range as a hole and read() returns zeros with no error. The first read already does this: ntfs_attr_map_whole_runlist() keeps the fragments it could read, readahead drops its error, and the next lookup finds the unmapped tail. On a file whose runlist is split between its base record (vcn 0-214) and one extent record (vcn 215-1499), breaking only the extent record's FILE magic makes the kernel log "Failed to map extent mft record", yet read() returns 1285 clusters of zeros for vcn 215-1499. A damaged attribute list entry, which makes the retry fail with -ENOENT, gives the same zeros. Return -ENOMEM if the retry ran out of memory and -EIO otherwise. Both callers already handle an ERR_PTR; other negative lcns, including LCN_ENOENT, are returned as before, and so is LCN_RL_NOT_MAPPED at or beyond allocated_size, where nothing is mapped: the runlist ends there with LCN_RL_NOT_MAPPED when only the last extent is mapped, as after a write into it, and with clusters smaller than a page every read of a file's last folio looks up such vcns. Reads of vcn 215-1499 now fail with -EIO. An intact volume exercised with buffered, mmap and O_DIRECT I/O, fallocate, truncate, sparse and compressed files behaves as before.
Title ntfs: do not map an unmappable runlist fragment as a hole
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-682

    Incorrect Calculation

  • CWE-704

    Incorrect Type Conversion or Cast

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:22 PM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Nov 30, 2026, 2:17 PM
Modified
Nov 30, 2026, 2:17 PM