CVE-2026-139413: fs/ntfs3: fix ntfs_fnd leak when compare function is missing
In the Linux kernel, the following vulnerability has been resolved:
fs/ntfs3: fix ntfsfnd leak when compare function is missing
indxinsertentry(), indxdeleteentry() and indxupdatedup() take a finder via fndget() before calling getcmpfunc(). If no compare function is available they return -EINVAL and never release the finder.
Jump to the existing out path so fndput() still runs.
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 indx_insert_entry(), indx_delete_entry(), and indx_update_dup(), jump to the existing out path when get_cmp_func() does not provide a compare function, so fnd_put() releases the finder.
Event History
Frequently Asked Questions
What condition triggers the resource leak?
The leak occurs when indx_insert_entry(), indx_delete_entry(), or indx_update_dup() obtains a finder with fnd_get() and get_cmp_func() then finds no comparison function. The operation returns -EINVAL without releasing that finder.
What does the fix change?
The affected error path now jumps to the existing cleanup path, ensuring fnd_put() is called even when no comparison function is available.