Shellfeed logo Shellfeed

CVE-2026-72218 · UNKNOWN

Summary: lockd: Plug nlm_file refcount leak on cached nlm_do_fopen() failure

Details

In the Linux kernel, the following vulnerability has been resolved:

lockd: Plug nlm_file refcount leak on cached nlm_do_fopen() failure

The cached-file path in nlm_lookup_file() reaches the found: label
unconditionally, even when nlm_do_fopen() fails. At that label
*result and file->f_count are updated before the error is returned.
The wrappers nlm3svc_lookup_file() and nlm4svc_lookup_file() then
bail out of their switch without copying *result back to their
caller, so the proc handler's local nlm_file pointer remains NULL
and the cleanup path skips nlm_release_file(). The f_count
increment is never released, and nlm_traverse_files() can no
longer reap the file because its refcount never returns to zero
between requests.

Short-circuit the cached path so neither *result nor f_count is
touched when nlm_do_fopen() fails on a hashed nlm_file.

Affected packages

  • GIT git.kernel.org/pub/scm/linux/kernel/git/stable/linux [e580323ac0b51ad10ec2e181d1f777479b7983e7 – 6cd84cefd8b73e85b9eda17b319bd40a670f3a38] [7f024fcd5c97dc70bb9121c80407cf3cf9be7159 – fe3b45b56b6c3d4b6b341de27fa291005287a21c] [5.10.220 – 5.10.261]
  • Linux Kernel [0 – 5.10.261] [5.11.0 – 5.15.212] [5.15.0 – 6.1.178] [5.16.0 – 6.6.145] [6.2.0 – 6.12.97] [6.7.0 – 6.18.40] [6.13.0 – 7.1.5]

References