CVE-2026-139482: fs/ntfs3: check return values in indx_delete_entry()
In the Linux kernel, the following vulnerability has been resolved:
fs/ntfs3: check return values in indxdeleteentry()
When the index tree collapses down to an empty root, indxdeleteentry() calls attrsetsize() and niremoveattr() for both ATTRALLOC and ATTRBITMAP, but their return values are overwritten by the following call without being checked.
In most other call sites of these functions the return value is checked, so add the same checks here in case an error at this point is meaningful.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In fs/ntfs3, check the return values of attr_set_size() and ni_remove_attr() in indx_delete_entry() when the index tree collapses to an empty root.
Event History
Frequently Asked Questions
Are filesystems other than NTFS3 implicated?
The available information identifies the affected code as fs/ntfs3 in the Linux kernel. It does not identify an impact on other filesystem implementations.
Which fixes are referenced for this issue?
The referenced stable kernel commits are 49d8d1dae9673515e8430aa2567e4460045e9362, 481b2bacf375df8a7104670adcb40bdbd7d013d0, and 349bca68c6070e17dc16bdff59e2318a5d37509a.