ntfs: fail the mount when $MFT's data size exceeds its allocation
- CVE-2026-143403
- EUVD-2026-145000
Summary
In the Linux kernel's ntfs driver, the mount path for $MFT takes the data size without checking it against the allocated size, unlike the resident-attribute path. On a crafted volume where $MFT is truncated to fewer clusters than its recorded data size, an unpatched kernel can hang on a folio lock when reading records past the end of the runlist. The fix refuses to mount such a $MFT before any records are read through it, and the mount fails with a message saying the $MFT is corrupt and chkdsk should be run. The record does not list a CVSS score and the item is not in CISA's known exploited list.
AI summary · verify against the vendor advisory
Description
In the Linux kernel, the following vulnerability has been resolved: ntfs: fail the mount when $MFT's data size exceeds its allocation ntfs_read_inode_mount() takes $MFT's i_size from data_size without checking it against allocated_size, unlike the resident case in ntfs_read_locked_inode(). mft records between the two are not on disk. On a crafted volume with 512-byte clusters whose $MFT is cut to 4 clusters while data_size still says 27 records, reading the folio holding records 0-3 finds the end of the runlist at vcn 4. An unpatched kernel hangs there on the folio lock, as in "ntfs: fail the mount when $MFT needs its own extent records". With the previous patch vcn 4-7 are past the allocation and so read as a hole: records 2 and 3 come back as zeros and the mount carries on until check_mft_mirror() finds the zeroed record 2. Refuse such a $MFT before anything is read through it. The mount now fails with: ntfs: (device vda): ntfs_read_inode_mount(): $MFT data size 27648 exceeds its allocated size 2048. $MFT is corrupt. Run chkdsk. fs/ntfs3 rejects any non-resident attribute whose data_size exceeds its allocated size. This patch checks only $MFT; the next one covers the other non-resident attributes.
Text from the CVE.org record.
Recommendation
No source states a fixed version. Check the vendor advisory.
Affected
Linux
Affected versions Fixed in 7.1 none stated before 7.1: not affected none stated from 7.3.4 up to 7.3.*: not affected none stated from 7.4-rc1 onwards: not affected none stated
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.