CVE-2026-72199 PUBLISHED

ntfs: validate resident index root values on lookup

Assigner: Linux
Reserved: 09.08.2026 Published: 15.08.2026 Updated: 17.08.2026

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

ntfs: validate resident index root values on lookup

Resident $INDEX_ROOT values carry index header fields that callers consume after lookup. Some callers already validate parts of the layout before walking entries, but those checks are scattered and do not cover all root header invariants, such as entries_offset alignment and lower bound, index_length, and allocated_size consistency.

The resident root resize paths now keep these header fields consistent while the value size changes: ntfs_ir_truncate() lowers index.allocated_size before shrinking the resident value, and ntfs_ir_reparent() grows the resident value before publishing a larger root header. Lookup-time validation can therefore cover these invariants without tripping over the driver's own resize paths.

Add $INDEX_ROOT to the minimum resident value size table and validate the resident index header fields before returning the attribute from lookup. Require 8-byte aligned index header fields, a sane entries_offset, an index_length within allocated_size, allocated_size within the resident value, and enough entry space for at least an index entry header.

The shared validator already rejects non-resident records for resident-only attribute types, including $INDEX_ROOT.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS Score: 9.8

AV:N - Legacy NTFS registers ntfs_export_ops; remote NFS/ksmbd LOOKUP/READDIR on exported mounts and local VFS open/stat all reach ntfs_attr_lookup(AT_INDEX_ROOT) and index walks in dir.c/index.c that consume entries_offset/index_length without full header validation. AC:L - Attacker fully controls on-disk $INDEX_ROOT header fields in a crafted image or writable share; misaligned entries_offset or inconsistent index_length/allocated_size values reliably bypass scattered checks and reach out-of-bounds index walks without races. PR:N - No host privileges at trigger time: a malicious NTFS volume can be automounted from USB/removable media, or remote NFS/SMB clients can invoke directory lookup/readdir on an exported mount using only share/guest access. UI:N - Kiosks, desktops, automotive/embedded systems that automount NTFS media trigger index-root parsing on insertion; exported volumes need only normal remote directory access, not additional victim mount dialogs or cooperative actions beyond presenting the filesystem. S:U - Impact is kernel heap/MFT-record out-of-bounds access during NTFS index parsing in the host mount context, yielding privilege escalation rather than VM escape or cross-authority sandbox breakout. C:H - Unchecked index header fields let ntfs_ie_lookup, ntfs_lookup_inode_by_name, and ntfs_readdir index walks read past the resident $INDEX_ROOT value using attacker-controlled index_length/entries_offset, enabling out-of-bounds kernel memory disclosure. I:H - Attacker-controlled misaligned offsets and inflated index bounds steer pointer arithmetic and kmalloc/copy sizes in index entry processing, enabling heap metadata corruption and write primitives suitable for kernel code execution. A:H - Out-of-bounds index-root walks during lookup/readdir can fault on unmapped kernel memory and trigger oops/panic, denying availability even before successful exploitation.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to bfb01dd319b6b4c3e79756de7b75ccf0b9a0a247 (excl.)
  • affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to fcf5bf0e8570798970e3ae8c95d04765ba2c5b97 (excl.)
  • affected from 0 to 7.1.5 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • unaffected from 7.1.5 to 7.1.* (incl.)
  • unaffected from 7.2 to * (incl.)

References