HIGH Introduced in 7.1
ntfs ExtentRecord OOB
CVE-2026-99107
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
KernelScan AI7.9HIGH
01Description
In the Linux kernel, the following vulnerability has been resolved: ntfs: fix incorrect MFT record pointer passed to ntfs_attr_record_resize ntfs_new_attr_flags() passes the wrong MFT record to ntfs_attr_record_resize(). 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 ntfs_attr_record_resize().
02KernelScan AI Analysis
Risk summary
A local attacker who can mount an NTFS filesystem and trigger extended attribute operations on a file with attributes stored in extent records can corrupt kernel memory, leading to privilege escalation, information disclosure, or system crash. The vulnerability is reachable via removable NTFS media, loopback mounts, or user-namespace mounts.
Vulnerability analysis
When an NTFS attribute resides in an extent record rather than the base MFT record, the EA handling code incorrectly passes the base record pointer to the attribute resize function instead of the extent record pointer. This causes the resize function to compute memory move offsets and sizes against the wrong record, resulting in an out-of-bounds write via memmove. The fix passes the correct extent record pointer (ctx->mrec) so that size calculations reflect the actual record containing the attribute. The bug can be triggered by any local user able to mount an NTFS filesystem — via removable media (USB/SD card), a loopback mount of a crafted image, or a user-namespace mount — and then perform an extended attribute operation on a file with attributes in extent records.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 7.2 | 7.1 | 7.2.13 | 0a9122cada74 |
| mainline | 7.1 | 7.3 | 8d139e3635c8 |