CVE-2026-72218 (GCVE-0-2026-72218)

Vulnerability from cvelistv5 – Published: 2026-08-15 05:54 – Updated: 2026-08-17 05:10
VLAI
Title
lockd: Plug nlm_file refcount leak on cached nlm_do_fopen() failure
Summary
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.
Severity
No CVSS data available.
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: e580323ac0b51ad10ec2e181d1f777479b7983e7 , < 6cd84cefd8b73e85b9eda17b319bd40a670f3a38 (git)
Affected: 7f024fcd5c97dc70bb9121c80407cf3cf9be7159 , < fe3b45b56b6c3d4b6b341de27fa291005287a21c (git)
Affected: 7f024fcd5c97dc70bb9121c80407cf3cf9be7159 , < cb3420c047957e565101585bb4f15e1a6e3de6b0 (git)
Affected: 7f024fcd5c97dc70bb9121c80407cf3cf9be7159 , < 7ce4c23e783e766507b2cef27bbf97e9ca944f1a (git)
Affected: 7f024fcd5c97dc70bb9121c80407cf3cf9be7159 , < 84008bf1860e0ef8059a7583a1163f36b704d08a (git)
Affected: 7f024fcd5c97dc70bb9121c80407cf3cf9be7159 , < 46d59ff421824b6483549d87f14efffbbbd1f6cb (git)
Affected: 7f024fcd5c97dc70bb9121c80407cf3cf9be7159 , < 3a5c55a19cad62f2973be25fe96a1a9e7f618e8a (git)
Affected: 7f024fcd5c97dc70bb9121c80407cf3cf9be7159 , < 70a38f87bed7f0694fd07988b47b2db1e10d8df3 (git)
Affected: 5.10.220 , < 5.10.261 (semver)
guessed Create a notification for this product.
Linux Linux Affected: 5.15
Unaffected: 0 , < 5.15 (semver)
Unaffected: 5.10.261 , ≤ 5.10.* (semver)
Unaffected: 5.15.212 , ≤ 5.15.* (semver)
Unaffected: 6.1.178 , ≤ 6.1.* (semver)
Unaffected: 6.6.145 , ≤ 6.6.* (semver)
Unaffected: 6.12.97 , ≤ 6.12.* (semver)
Unaffected: 6.18.40 , ≤ 6.18.* (semver)
Unaffected: 7.1.5 , ≤ 7.1.* (semver)
Unaffected: 7.2 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "fs/lockd/svcsubs.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "6cd84cefd8b73e85b9eda17b319bd40a670f3a38",
              "status": "affected",
              "version": "e580323ac0b51ad10ec2e181d1f777479b7983e7",
              "versionType": "git"
            },
            {
              "lessThan": "fe3b45b56b6c3d4b6b341de27fa291005287a21c",
              "status": "affected",
              "version": "7f024fcd5c97dc70bb9121c80407cf3cf9be7159",
              "versionType": "git"
            },
            {
              "lessThan": "cb3420c047957e565101585bb4f15e1a6e3de6b0",
              "status": "affected",
              "version": "7f024fcd5c97dc70bb9121c80407cf3cf9be7159",
              "versionType": "git"
            },
            {
              "lessThan": "7ce4c23e783e766507b2cef27bbf97e9ca944f1a",
              "status": "affected",
              "version": "7f024fcd5c97dc70bb9121c80407cf3cf9be7159",
              "versionType": "git"
            },
            {
              "lessThan": "84008bf1860e0ef8059a7583a1163f36b704d08a",
              "status": "affected",
              "version": "7f024fcd5c97dc70bb9121c80407cf3cf9be7159",
              "versionType": "git"
            },
            {
              "lessThan": "46d59ff421824b6483549d87f14efffbbbd1f6cb",
              "status": "affected",
              "version": "7f024fcd5c97dc70bb9121c80407cf3cf9be7159",
              "versionType": "git"
            },
            {
              "lessThan": "3a5c55a19cad62f2973be25fe96a1a9e7f618e8a",
              "status": "affected",
              "version": "7f024fcd5c97dc70bb9121c80407cf3cf9be7159",
              "versionType": "git"
            },
            {
              "lessThan": "70a38f87bed7f0694fd07988b47b2db1e10d8df3",
              "status": "affected",
              "version": "7f024fcd5c97dc70bb9121c80407cf3cf9be7159",
              "versionType": "git"
            },
            {
              "lessThan": "5.10.261",
              "status": "affected",
              "version": "5.10.220",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/lockd/svcsubs.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.15"
            },
            {
              "lessThan": "5.15",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.261",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.212",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.178",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.145",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.97",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.40",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.1.*",
              "status": "unaffected",
              "version": "7.1.5",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.261",
                  "versionStartIncluding": "5.10.220",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.212",
                  "versionStartIncluding": "5.15",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.178",
                  "versionStartIncluding": "5.15",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.145",
                  "versionStartIncluding": "5.15",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.97",
                  "versionStartIncluding": "5.15",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.40",
                  "versionStartIncluding": "5.15",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.1.5",
                  "versionStartIncluding": "5.15",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.2",
                  "versionStartIncluding": "5.15",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "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\u0027s 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."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-17T05:10:33.204Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/6cd84cefd8b73e85b9eda17b319bd40a670f3a38"
        },
        {
          "url": "https://git.kernel.org/stable/c/fe3b45b56b6c3d4b6b341de27fa291005287a21c"
        },
        {
          "url": "https://git.kernel.org/stable/c/cb3420c047957e565101585bb4f15e1a6e3de6b0"
        },
        {
          "url": "https://git.kernel.org/stable/c/7ce4c23e783e766507b2cef27bbf97e9ca944f1a"
        },
        {
          "url": "https://git.kernel.org/stable/c/84008bf1860e0ef8059a7583a1163f36b704d08a"
        },
        {
          "url": "https://git.kernel.org/stable/c/46d59ff421824b6483549d87f14efffbbbd1f6cb"
        },
        {
          "url": "https://git.kernel.org/stable/c/3a5c55a19cad62f2973be25fe96a1a9e7f618e8a"
        },
        {
          "url": "https://git.kernel.org/stable/c/70a38f87bed7f0694fd07988b47b2db1e10d8df3"
        }
      ],
      "title": "lockd: Plug nlm_file refcount leak on cached nlm_do_fopen() failure",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-72218",
    "datePublished": "2026-08-15T05:54:11.672Z",
    "dateReserved": "2026-08-09T03:40:39.913Z",
    "dateUpdated": "2026-08-17T05:10:33.204Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-72218",
      "date": "2026-09-20",
      "epss": "0.00216",
      "percentile": "0.1234"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "fs/lockd/svcsubs.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "6cd84cefd8b73e85b9eda17b319bd40a670f3a38",
                    "status": "affected",
                    "version": "e580323ac0b51ad10ec2e181d1f777479b7983e7",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "fe3b45b56b6c3d4b6b341de27fa291005287a21c",
                    "status": "affected",
                    "version": "7f024fcd5c97dc70bb9121c80407cf3cf9be7159",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "cb3420c047957e565101585bb4f15e1a6e3de6b0",
                    "status": "affected",
                    "version": "7f024fcd5c97dc70bb9121c80407cf3cf9be7159",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "7ce4c23e783e766507b2cef27bbf97e9ca944f1a",
                    "status": "affected",
                    "version": "7f024fcd5c97dc70bb9121c80407cf3cf9be7159",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "84008bf1860e0ef8059a7583a1163f36b704d08a",
                    "status": "affected",
                    "version": "7f024fcd5c97dc70bb9121c80407cf3cf9be7159",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "46d59ff421824b6483549d87f14efffbbbd1f6cb",
                    "status": "affected",
                    "version": "7f024fcd5c97dc70bb9121c80407cf3cf9be7159",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "3a5c55a19cad62f2973be25fe96a1a9e7f618e8a",
                    "status": "affected",
                    "version": "7f024fcd5c97dc70bb9121c80407cf3cf9be7159",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "70a38f87bed7f0694fd07988b47b2db1e10d8df3",
                    "status": "affected",
                    "version": "7f024fcd5c97dc70bb9121c80407cf3cf9be7159",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "5.10.261",
                    "status": "affected",
                    "version": "5.10.220",
                    "versionType": "semver"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "fs/lockd/svcsubs.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "5.15"
                  },
                  {
                    "lessThan": "5.15",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.10.*",
                    "status": "unaffected",
                    "version": "5.10.261",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.15.*",
                    "status": "unaffected",
                    "version": "5.15.212",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.1.*",
                    "status": "unaffected",
                    "version": "6.1.178",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.6.*",
                    "status": "unaffected",
                    "version": "6.6.145",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.12.*",
                    "status": "unaffected",
                    "version": "6.12.97",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.18.*",
                    "status": "unaffected",
                    "version": "6.18.40",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "7.1.*",
                    "status": "unaffected",
                    "version": "7.1.5",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "7.2",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "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\u0027s 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."
          }
        ],
        "id": "CVE-2026-72218",
        "lastModified": "2026-08-17T06:18:22.810",
        "metrics": {},
        "published": "2026-08-15T06:21:40.613",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/3a5c55a19cad62f2973be25fe96a1a9e7f618e8a"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/46d59ff421824b6483549d87f14efffbbbd1f6cb"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/6cd84cefd8b73e85b9eda17b319bd40a670f3a38"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/70a38f87bed7f0694fd07988b47b2db1e10d8df3"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/7ce4c23e783e766507b2cef27bbf97e9ca944f1a"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/84008bf1860e0ef8059a7583a1163f36b704d08a"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/cb3420c047957e565101585bb4f15e1a6e3de6b0"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/fe3b45b56b6c3d4b6b341de27fa291005287a21c"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-08-18T08:33:38+00:00",
      "cve": "CVE-2026-72218",
      "id": "CVE-2026-72218",
      "initial_release_date": "2026-08-15T00:00:00+00:00",
      "product_status:known_affected": "184",
      "product_status:known_not_affected": "90",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: lockd: Plug nlm_file refcount leak on cached nlm_do_fopen() failure",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-72218.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-09-15T01:28:06Z",
      "cve": "CVE-2026-72218",
      "id": "CVE-2026-72218",
      "initial_release_date": "2026-08-28T01:00:22Z",
      "product_status:known_affected": "123",
      "product_status:known_not_affected": "239",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2026-72218",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2026-72218.json",
      "version": "4"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…