Skip to content
Heist/ feed
Back to feed
UnratedFix available

lockd: Plug nlm_file leak when nlm_do_fopen() fails

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: lockd: Plug nlm_file leak when nlm_do_fopen() fails A client can repeatedly drive nlm_do_fopen() failures by presenting file handles that the underlying export rejects. After kzalloc_obj() succeeds in nlm_lookup_file(), the freshly allocated nlm_file is not yet inserted into nlm_files[]. The nlm_do_fopen() failure path jumps to out_unlock, which releases nlm_file_mutex and returns without freeing the allocation, so each failure leaks one nlm_file. Route the failure through out_free so kfree() runs before the function returns.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.261, 5.15.212, 6.1.178, 6.12.97, 6.18.40, 6.6.145, 7.1.5
CVEs
CVE-2026-72219
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 03:18 UTC · Revision 1

Source evidence

lockd: Plug nlm_file leak when nlm_do_fopen() fails

core-osv · Original source

Published 15 Aug 2026, 05:54 UTC

In the Linux kernel, the following vulnerability has been resolved: lockd: Plug nlm_file leak when nlm_do_fopen() fails A client can repeatedly drive nlm_do_fopen() failures by presenting file handles that the underlying export rejects. After kzalloc_obj() succeeds in nlm_lookup_file(), the freshly allocated nlm_file is not yet inserted into nlm_files[]. The nlm_do_fopen() failure path jumps to out_unlock, which releases nlm_file_mutex and returns without freeing the allocation, so each failure leaks one nlm_file. Route the failure through out_free so kfree() runs before the function returns.

osv:CVE-2026-72219

Kernel

Fixed versions: 5.10.261, 5.15.212, 6.1.178, 6.6.145, 6.12.97, 6.18.40, 7.1.5

Complete source record
{
  "id": "f83f4c08f884ce7159923cead5429a8cdc27fa7b19211bdc15e8a673e78fc48f",
  "url": "https://osv.dev/vulnerability/CVE-2026-72219",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "lockd: Plug nlm_file leak when nlm_do_fopen() fails",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: lockd: Plug nlm_file leak when nlm_do_fopen() fails A client can repeatedly drive nlm_do_fopen() failures by presenting file handles that the underlying export rejects. After kzalloc_obj() succeeds in nlm_lookup_file(), the freshly allocated nlm_file is not yet inserted into nlm_files[]. The nlm_do_fopen() failure path jumps to out_unlock, which releases nlm_file_mutex and returns without freeing the allocation, so each failure leaks one nlm_file. Route the failure through out_free so kfree() runs before the function returns.",
    "evidence": "osv:CVE-2026-72219",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.10.261",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.212",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.178",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.145",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.97",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.18.40",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "7.1.5",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2026-72219",
      "aliases": [
        "CVE-2026-72219"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "e580323ac0b51ad10ec2e181d1f777479b7983e7"
                },
                {
                  "fixed": "bca74fff138429f3d5802865f38fc883d53a4f1a"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "7f024fcd5c97dc70bb9121c80407cf3cf9be7159"
                },
                {
                  "fixed": "d7c677feb3aa1f42b1026d75a8ea61338b51e4fb"
                },
                {
                  "fixed": "39f59bf67231ed2eb0cdf6337194360e964b609a"
                },
                {
                  "fixed": "ddfbd816273b4e9c9b836f5b8773664c6f40f807"
                },
                {
                  "fixed": "1403f1221a35a6caf959bb7bf005741f17263c66"
                },
                {
                  "fixed": "1161c4b5bd0048c8148e919f818a33cff3623ef0"
                },
                {
                  "fixed": "3f2dc01b9cb516d4727a3b9263ee58c71ca00ba9"
                },
                {
                  "fixed": "f16a1513452edb532fec81e591c64c320866719c"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "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-72219.json"
          }
        },
        {
          "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"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72219.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:49.331663149Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/1161c4b5bd0048c8148e919f818a33cff3623ef0",
        "https://git.kernel.org/stable/c/1403f1221a35a6caf959bb7bf005741f17263c66",
        "https://git.kernel.org/stable/c/39f59bf67231ed2eb0cdf6337194360e964b609a",
        "https://git.kernel.org/stable/c/3f2dc01b9cb516d4727a3b9263ee58c71ca00ba9",
        "https://git.kernel.org/stable/c/bca74fff138429f3d5802865f38fc883d53a4f1a",
        "https://git.kernel.org/stable/c/d7c677feb3aa1f42b1026d75a8ea61338b51e4fb",
        "https://git.kernel.org/stable/c/ddfbd816273b4e9c9b836f5b8773664c6f40f807",
        "https://git.kernel.org/stable/c/f16a1513452edb532fec81e591c64c320866719c",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72219.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-72219",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72219.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-72219",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 517688,
  "published_at": "2026-08-15T05:54:13.067+00:00"
}