{"id":"CVE-2026-45951","summary":"bpf: Fix a potential use-after-free of BTF object","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)","modified":"2026-07-08T08:09:40.325784473Z","published":"2026-05-27T12:18:07.255Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45951.json"},"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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"76145f7255326761dafb76721a785799d8a00d5f"},{"fixed":"eac65c272f3b49021a843cba5107d63627395e0e"},{"fixed":"9ff46ffeecdb1802d6e26183177935b948a12e7f"},{"fixed":"ccd2d799ed4467c07f5ee18c2f5c59bcc990822c"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45951.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.14.0"},{"fixed":"6.18.14"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"6.19.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45951.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}