CVE-2026-143338: ntfs: don't allow resident values to overlap the attribute header
In the Linux kernel, the following vulnerability has been resolved:
ntfs: don't allow resident values to overlap the attribute header
The resident value bounds check allows valueoffset to point inside the attribute header. The reported image has an unnamed $DATA attribute with a valueoffset of zero and a valuelength of two, which passes lookup.
Appending to this file makes ntfsresidentattrvalueresize() shrink the attribute record to eight bytes. Moving the following attributes then overwrites the resident header fields, so the subsequent memset() uses a corrupted valueoffset and writes outside the MFT record buffer.
Require the resident value to start after the complete resident header. Both lookup paths then return -EIO for the corrupt record, before callers can resize or access its value.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Systems using the Linux kernel NTFS code are exposed when they process a malformed NTFS image or filesystem containing a resident attribute whose value begins inside its attribute header. The described trigger occurs when appending to a file with the corrupt attribute.
What does the fix change when a corrupt NTFS record is encountered?
The kernel now requires a resident value to begin after the complete resident header. Both lookup paths return -EIO for the corrupt record before callers can access or resize the value, preventing the out-of-bounds write described.
How can I identify the malformed condition implicated in this issue?
The reported image contains an unnamed $DATA attribute with value_offset set to zero and value_length set to two. This placement allows the resident value to overlap the attribute header.