CVE-2026-143403: ntfs: fail the mount when $MFT's data size exceeds its allocation
In the Linux kernel, the following vulnerability has been resolved:
ntfs: fail the mount when $MFT's data size exceeds its allocation
ntfsreadinodemount() takes $MFT's isize from datasize without checking it against allocatedsize, unlike the resident case in ntfsreadlockedinode(). 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 datasize 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 checkmftmirror() finds the zeroed record 2.
Refuse such a $MFT before anything is read through it. The mount now fails with:
ntfs: (device vda): ntfsreadinodemount(): $MFT data size 27648 exceeds its allocated size 2048. $MFT is corrupt. Run chkdsk.
fs/ntfs3 rejects any non-resident attribute whose datasize exceeds its allocated size. This patch checks only $MFT; the next one covers the other non-resident attributes.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Operational
Run chkdsk to repair the corrupt $MFT.
Event History
Frequently Asked Questions
Who is exposed to this issue?
Systems that mount a crafted or corrupted NTFS volume with an $MFT whose declared data size exceeds its allocated size are exposed. The issue occurs during NTFS mount processing.
What does an attacker or malicious volume need to trigger the problem?
The NTFS volume must contain an $MFT with a data_size larger than its allocated_size. The example described uses 512-byte clusters, an $MFT allocated for four clusters, and a data size claiming 27 records.
What can be done if the update cannot be applied immediately?
Do not mount untrusted or known-corrupt NTFS volumes. For affected volumes, run chkdsk as indicated by the mount error.
How can I tell whether a volume is affected after updating?
The mount will fail rather than continue processing the corrupt $MFT. The kernel reports that the $MFT data size exceeds its allocated size and identifies the $MFT as corrupt.