CVE-2026-99997: ntfs: do not map a vcn as a hole when its runlist lookup failed

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

ntfs: do not map a vcn as a hole when its runlist lookup failed

ntfsattrvcntorl() retries ntfsmaprunlistnolock() for any lcn up to LCNRLNOTMAPPED, which includes LCNENOENT, but turns a failed retry into an error only for LCNRLNOTMAPPED. For LCNENOENT the error is dropped and the read path maps the range as a hole.

An LCNENOENT below allocatedsize comes from a base extent with a highestvcn of 0, which ntfsmappingpairsdecompress() takes to map the whole attribute, so the runlist ends after its last mapping pair. If the pairs end early, the retry finds the same extent and fails with -ENOENT. On a crafted volume with 4 KiB clusters, a 64-cluster file whose mapping pairs stop after 16 clusters reads 48 clusters of zeros, with no error.

The same layout gets a crafted $MFT past the check from "ntfs: fail the mount when $MFT needs its own extent records". With 512-byte clusters and $MFT's mapping pairs ending at vcn 4, an unpatched kernel hangs on the folio lock reading records 0-3. With the check alone, the -EIO is dropped, records 2 and 3 read as zeros and the mount carries on until checkmftmirror() finds the zeroed record 2.

Fail the lookup whenever the retry leaves @vcn unmapped below allocatedsize, -ENOENT included. At or beyond allocatedsize the end of the runlist is still returned as it is.

A failed expansion in ntfsnonresidentattrexpand() or ntfsattrlistrepack() truncates the runlist under the runlist lock but restores allocatedsize only after dropping it. A lookup in between would now fail, so restore allocatedsize before dropping the lock in both, under sizelock, which ntfsattrvcntorl() takes to read it.

The crafted file now fails from vcn 16 on with -EIO, and the crafted volume fails to mount with the check's message.

Affected Software

4 affected componentsFixes available
Linux Linux kernel
linux/kernel>=7.1.0<7.3.4
7.3.4
debian/linux<7.3.4-1
7.3.4-1
debian/linux
7.3.4-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.4
  2. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 7.3.4-1

Event History

Nov 30, 2026
CVE Published
via MITRE·01:19 PM
Data Sourced
via MITRE·01:19 PM
Description
Data Sourced
via OSV·01:19 PM
DescriptionAffected Software
Data Sourced
via NVD·02:20 PM
Description

Frequently Asked Questions

1

What systems are realistically exposed to this issue?

Linux systems that read or mount attacker-crafted NTFS volumes are exposed. The affected behavior is in the NTFS read and mount paths when runlist mapping pairs end before the declared allocated range.

2

What does an attacker need to exploit it?

An attacker needs to provide a crafted NTFS volume with truncated mapping pairs. The described examples use a file whose mappings stop after 16 of 64 clusters, or a crafted $MFT whose mappings end early.

3

What can happen on an unpatched kernel?

File data beyond the truncated mappings can be returned as zero-filled data without an error. A crafted $MFT layout can also cause an unpatched kernel to hang while reading MFT records; in the described 512-byte-cluster case, later records may instead be read as zeros and allow mounting to continue.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203