PT-2026-162961

CVE-2026-99994

·

Published

2026-11-30

·

Updated

2026-11-30

Description by

Score
N/A
Not available

No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.

In the Linux kernel, the following vulnerability has been resolved:
ntfs: balance the $MFT runlist lock in data extension error paths
ntfs mft data extend allocation nolock() drops the $MFT runlist lock before allocating clusters, and every path into undo alloc arrives without it, except a map mft record() failure, which takes it first. undo alloc never releases it, so the lock leaks and the next $MFT extension and $MFT writeback hang. The restore undo alloc failure path, on the other hand, releases the lock without holding it. And undo alloc frees the clusters with ntfs cluster free() and truncates the runlist without the lock, although both require it.
Enter undo alloc without the lock on every path. Merge the new clusters with ntfs runlists merge keep src() and keep the runlist that ntfs cluster alloc() returned until the extension is complete. On failure, undo alloc truncates $MFT's runlist under the lock and, after dropping it, frees the clusters from the kept runlist with ntfs cluster free from rl(). That keeps lcnbmp lock outside the runlist lock, the order given by the comment before the cluster allocation. Unlike ntfs cluster free() on a volume mounted with -o discard, this does not issue discards for the clusters, which were never written; the runlist merge failure path already frees them the same way. If the truncation fails, the runlist may still reference the clusters, so they stay allocated and the volume is marked for chkdsk; at this call site the truncation only shrinks the runlist and cannot fail today.
A shorter fix would keep calling ntfs cluster free() on the live runlist without the lock, relying on $MFT's runlist being fully mapped and changed only by this function under mrec lock. That breaks ntfs cluster free()'s documented locking rule on an argument about the rest of the driver, so this patch does not do that.
Vendors
Affected products
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾