CVE-2026-99107: ntfs: fix incorrect MFT record pointer passed to ntfs_attr_record_resize
In the Linux kernel, the following vulnerability has been resolved:
ntfs: fix incorrect MFT record pointer passed to ntfsattrrecordresize
ntfsnewattrflags() passes the wrong MFT record to ntfsattrrecordresize(). When the attribute is in an extent record, ctx->mrec points to the extent but the function receives the base record pointer m, causing incorrect size calculations in memmove.
Fix by passing ctx->mrec (the actual MFT record containing the attribute) instead of m (the base MFT record) to ntfsattrrecordresize().
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.2.13 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.2.13-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.116-1Fixed in 7.2.15-1Fixed in 7.3.3-1
Event History
Frequently Asked Questions
What condition is required for this flaw to be reached?
The affected attribute must be located in an NTFS extent record rather than the base MFT record. In that case, ntfs_new_attr_flags() passes the base record pointer where ntfs_attr_record_resize() requires the MFT record that actually contains the attribute.
What is the immediate technical impact of the incorrect pointer?
Using the base MFT record for an attribute in an extent record produces incorrect size calculations in memmove during attribute-record resizing.
How can the fix be identified in source or stable kernel history?
The correction changes the argument passed to ntfs_attr_record_resize() from the base record pointer m to ctx->mrec, which is the actual MFT record containing the attribute. The provided stable references contain the corresponding fix commits.