CVE-2026-99365: nfsd: Fix id-to-name cache entry leak in idtoname_parse()
In the Linux kernel, the following vulnerability has been resolved:
nfsd: Fix id-to-name cache entry leak in idtonameparse()
idtonamelookup() returns the id-to-name cache entry with a new reference. The name is parsed between the lookup and the update call, and when the parsed name is malformed (negative length or longer than IDMAPNAMESZ), idtonameparse() jumps to the error label without dropping the reference returned by idtonamelookup(), leaking the cache entry.
Release the reference with cacheput() before taking the error exit.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.61 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.2 - Compensating control
Call cache_put() to release the reference returned by idtoname_lookup() before idtoname_parse() takes the error exit for a malformed name.