CVE-2026-142830: ntfs: do not use a stale runlist pointer when undoing $MFT extension
In the Linux kernel, the following vulnerability has been resolved:
ntfs: do not use a stale runlist pointer when undoing $MFT extension
When ntfsmftdataextendallocationnolock() fails after it has rebuilt the mapping pairs of the last $MFT data extent, undoalloc truncates the runlist and then rebuilds the old mapping pairs from rl2, a pointer into the runlist taken before the truncation. ntfsrltruncatenolock() can reallocate the runlist, and KASAN then reports a use-after-free in ntfsmappingpairsbuild().
Pass the start of the runlist instead, and hold the runlist lock for reading while the mapping pairs are built from it. ntfsmappingpairsbuild() skips to the element containing the first vcn by itself.
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.3.4
Event History
Frequently Asked Questions
What conditions are required to trigger the use-after-free?
The failure path must be reached while extending allocation for the NTFS $MFT, after mapping pairs for the final $MFT data extent have been rebuilt. The subsequent rollback truncates the runlist, which may reallocate it before old mapping pairs are rebuilt.
How can I determine whether a kernel contains the fix?
Check whether the kernel source includes either referenced stable commit: 387a7e579d841ff45b3010edc91d8bc043f0ffd5 or 258239e79b842e5246fb7f50758d9d15430f4102. The fix passes the runlist start rather than a saved interior pointer and holds the runlist read lock while rebuilding mapping pairs.