CVE-2026-139162: fs/ntfs3: handle partial allocation in attr_data_get_block_locked()
fs/ntfs3: handle partial allocation in attrdatagetblocklocked()
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.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Compensating control
In fs/ntfs3/attrib.c, update attr_data_get_block_locked() to check whether the partial allocation reached the requested vcn0. If end <= vcn0, treat it as an -ENOSPC failure and jump to undo1 to roll back the partial allocation, restore the original size, and repack the runs.
Event History
Frequently Asked Questions
What conditions are required to trigger this issue?
The affected operation must allocate clusters for a sparse or compressed NTFS attribute. The filesystem must be nearly full and highly fragmented so that allocation succeeds only partially, with the allocated range not reaching the requested virtual cluster number.
What happens if the partial allocation does not reach the requested cluster?
The requested cluster remains a sparse hole, and a subsequent lookup finds the original sparse mapping and triggers WARN_ON(1). The fix instead treats this condition as ENOSPC, rolls back the partial allocation, restores the original size, and repacks the runs to keep the inode consistent.
What is the operational workaround if the fix cannot be applied immediately?
The described trigger depends on low free space and heavy fragmentation during allocation of sparse or compressed NTFS attributes. Maintaining sufficient free space and avoiding workloads that create or extend those attributes under heavily fragmented conditions can reduce exposure.