CVE-2026-99997
Last modified
CVE-2026-99997 is a vulnerability of currently unknown severity. In the Linux kernel, the following vulnerability has been resolved: ntfs: do not map a vcn as a hole when its runlist lookup failed ntfs_attr_vcn_to_rl() retries ntfs_map_runlist_nolock() for any lcn up to LCN_RL_NOT_MAPPED, which includes LCN_ENOENT, but turns a failed retry into an error only for LCN_RL_NOT_MAPPED. For LCN_ENOENT the error is dropped and the read path maps the range as a hole. An LCN_ENOENT below allocated_size comes from a base extent with a highest_vcn of 0, which ntfs_mapping_pairs_decompress() takes to map the whole attribute, so the runlist ends after its last mapping pair.
Description
In the Linux kernel, the following vulnerability has been resolved: ntfs: do not map a vcn as a hole when its runlist lookup failed ntfs_attr_vcn_to_rl() retries ntfs_map_runlist_nolock() for any lcn up to LCN_RL_NOT_MAPPED, which includes LCN_ENOENT, but turns a failed retry into an error only for LCN_RL_NOT_MAPPED. For LCN_ENOENT the error is dropped and the read path maps the range as a hole. An LCN_ENOENT below allocated_size comes from a base extent with a highest_vcn of 0, which ntfs_mapping_pairs_decompress() 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 check_mft_mirror() finds the zeroed record 2. Fail the lookup whenever the retry leaves @vcn unmapped below allocated_size, -ENOENT included. At or beyond allocated_size the end of the runlist is still returned as it is. A failed expansion in ntfs_non_resident_attr_expand() or ntfs_attrlist_repack() truncates the runlist under the runlist lock but restores allocated_size only after dropping it. A lookup in between would now fail, so restore allocated_size before dropping the lock in both, under size_lock, which ntfs_attr_vcn_to_rl() 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
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= 495e90fa334828d4119061e2726af51d0a0fb4ed, < ce91fe5137a448d6ed0debb7493ff5a32d3bd5eb; >= 495e90fa334828d4119061e2726af51d0a0fb4ed, < e727ea7fc4e36b3d14b7bb304e82918aa6e2024a |
| Linux | Linux | 7.1 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-99997?
How severe is CVE-2026-99997?
How do I fix CVE-2026-99997?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-99991In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99992In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99993In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99994In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99995In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99996In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-99999In the Linux kernel, the following vulnerability has been re…9.3
Are you affected by CVE-2026-99997?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
