CVE-2026-72218

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

State
Published
Severity
Not scored
Published
Aug 15, 2026
Updated
Aug 17, 2026
Reserved
Aug 9, 2026

Read the record on cve.org

Description

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • e580323ac0b51ad10ec2e181d1f777479b7983e7 to before 6cd84cefd8b73e85b9eda17b319bd40a670f3a38Affected
  • 7f024fcd5c97dc70bb9121c80407cf3cf9be7159 to before fe3b45b56b6c3d4b6b341de27fa291005287a21cAffected
  • 7f024fcd5c97dc70bb9121c80407cf3cf9be7159 to before cb3420c047957e565101585bb4f15e1a6e3de6b0Affected
  • 7f024fcd5c97dc70bb9121c80407cf3cf9be7159 to before 7ce4c23e783e766507b2cef27bbf97e9ca944f1aAffected
  • 7f024fcd5c97dc70bb9121c80407cf3cf9be7159 to before 84008bf1860e0ef8059a7583a1163f36b704d08aAffected
  • 7f024fcd5c97dc70bb9121c80407cf3cf9be7159 to before 46d59ff421824b6483549d87f14efffbbbd1f6cbAffected
  • 7f024fcd5c97dc70bb9121c80407cf3cf9be7159 to before 3a5c55a19cad62f2973be25fe96a1a9e7f618e8aAffected
  • 7f024fcd5c97dc70bb9121c80407cf3cf9be7159 to before 70a38f87bed7f0694fd07988b47b2db1e10d8df3Affected
  • 5.10.220 to before 5.10.261Affected
LinuxLinux
  • 5.15Affected
  • before 5.15Not affected
  • 5.10.261 through 5.10.*Not affected
  • 5.15.212 through 5.15.*Not affected
  • 6.1.178 through 6.1.*Not affected
  • 6.6.145 through 6.6.*Not affected
  • 6.12.97 through 6.12.*Not affected
  • 6.18.40 through 6.18.*Not affected
  • 7.1.5 through 7.1.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.