Re: [PATCH] fs/ntfs3: Fix memory leak of ntfs_fnd on corrupted index root

From: Xiangwu Lai

Date: Tue Dec 01 2026 - 02:49:01 EST


Hello Konstantin,

A gentle ping on this patch, originally sent on Oct 30:

fs/ntfs3: Fix memory leak of ntfs_fnd on corrupted index root
https://lore.kernel.org/all/20261030085315.1814-1-laixiangwu@xxxxxxxxxxxxxxxxxxxx/

indx_insert_entry(), indx_delete_entry() and indx_update_dup() allocate
one or two ntfs_fnd structures with fnd_get() before validating the index
root with get_cmp_func(). If the index root describes an unknown
collation rule, they return -EINVAL directly and bypass the "out" labels
that release the allocations, so a corrupted or maliciously crafted
image leaks the ntfs_fnd memory on each such access.

Is there anything blocking this patch, or does it just need more time?

Thanks,
Xiangwu Lai