{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "76145f7255326761dafb76721a785799d8a00d5f"
            },
            {
              "fixed": "eac65c272f3b49021a843cba5107d63627395e0e"
            },
            {
              "fixed": "9ff46ffeecdb1802d6e26183177935b948a12e7f"
            },
            {
              "fixed": "ccd2d799ed4467c07f5ee18c2f5c59bcc990822c"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.14.0"
            },
            {
              "fixed": "6.18.14"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "6.19.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45951.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix a potential use-after-free of BTF object\n\nRefcounting in the check_pseudo_btf_id() function is incorrect:\nthe __check_pseudo_btf_id() function might get called with a zero\nrefcounted btf. Fix this, and patch related code accordingly.\n\nv3: rephrase a comment (AI)\nv2: fix a refcount leak introduced in v1 (AI)",
  "id": "CVE-2026-45951",
  "modified": "2026-07-08T05:37:23.033035768Z",
  "published": "2026-05-27T12:18:07.255Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/9ff46ffeecdb1802d6e26183177935b948a12e7f"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ccd2d799ed4467c07f5ee18c2f5c59bcc990822c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/eac65c272f3b49021a843cba5107d63627395e0e"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45951.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-45951"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.7.5",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "bpf: Fix a potential use-after-free of BTF object"
}