{"id":"CVE-2026-72218","summary":"lockd: Plug nlm_file refcount leak on cached nlm_do_fopen() failure","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nlockd: Plug nlm_file refcount leak on cached nlm_do_fopen() failure\n\nThe cached-file path in nlm_lookup_file() reaches the found: label\nunconditionally, even when nlm_do_fopen() fails. At that label\n*result and file-\u003ef_count are updated before the error is returned.\nThe wrappers nlm3svc_lookup_file() and nlm4svc_lookup_file() then\nbail out of their switch without copying *result back to their\ncaller, so the proc handler's local nlm_file pointer remains NULL\nand the cleanup path skips nlm_release_file(). The f_count\nincrement is never released, and nlm_traverse_files() can no\nlonger reap the file because its refcount never returns to zero\nbetween requests.\n\nShort-circuit the cached path so neither *result nor f_count is\ntouched when nlm_do_fopen() fails on a hashed nlm_file.","modified":"2026-08-18T03:31:14.248861480Z","published":"2026-08-15T05:54:11.672Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72218.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/3a5c55a19cad62f2973be25fe96a1a9e7f618e8a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/46d59ff421824b6483549d87f14efffbbbd1f6cb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6cd84cefd8b73e85b9eda17b319bd40a670f3a38"},{"type":"WEB","url":"https://git.kernel.org/stable/c/70a38f87bed7f0694fd07988b47b2db1e10d8df3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7ce4c23e783e766507b2cef27bbf97e9ca944f1a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/84008bf1860e0ef8059a7583a1163f36b704d08a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cb3420c047957e565101585bb4f15e1a6e3de6b0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fe3b45b56b6c3d4b6b341de27fa291005287a21c"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72218.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-72218"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"e580323ac0b51ad10ec2e181d1f777479b7983e7"},{"fixed":"6cd84cefd8b73e85b9eda17b319bd40a670f3a38"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"7f024fcd5c97dc70bb9121c80407cf3cf9be7159"},{"fixed":"fe3b45b56b6c3d4b6b341de27fa291005287a21c"},{"fixed":"cb3420c047957e565101585bb4f15e1a6e3de6b0"},{"fixed":"7ce4c23e783e766507b2cef27bbf97e9ca944f1a"},{"fixed":"84008bf1860e0ef8059a7583a1163f36b704d08a"},{"fixed":"46d59ff421824b6483549d87f14efffbbbd1f6cb"},{"fixed":"3a5c55a19cad62f2973be25fe96a1a9e7f618e8a"},{"fixed":"70a38f87bed7f0694fd07988b47b2db1e10d8df3"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"5.10.220"},{"fixed":"5.10.261"}]}],"versions":["v5.10.260","v5.10.259","v5.10.258","v5.10.257","v5.10.256","v5.10.255","v5.10.254","v5.10.253","v5.10.252","v5.10.251","v5.10.250","v5.10.249","v5.10.248","v5.10.247","v5.10.246","v5.10.245","v5.10.244","v5.10.243","v5.10.242","v5.10.241","v5.10.240","v5.10.239","v5.10.238","v5.10.237","v5.10.236","v5.10.235","v5.10.234","v5.10.233","v5.10.232","v5.10.231","v5.10.230","v5.10.229","v5.10.228","v5.10.227","v5.10.226","v5.10.225","v5.10.224","v5.10.223","v5.10.222","v5.10.221","v5.10.220"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72218.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.10.261"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.212"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.15.0"},{"fixed":"6.1.178"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.6.145"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.12.97"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.18.40"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"7.1.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72218.json"}}],"schema_version":"1.9.0"}