# CVE-2026-45951: bpf: Fix a potential use-after-free of BTF object

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.12%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-05-27T12:18:07.255Z
- Modified: 2026-08-05T12:28:53.157Z
- Weaknesses: CWE-416
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

bpf: Fix a potential use-after-free of BTF object

Refcounting in the check_pseudo_btf_id() function is incorrect:
the __check_pseudo_btf_id() function might get called with a zero
refcounted btf. Fix this, and patch related code accordingly.

v3: rephrase a comment (AI)
v2: fix a refcount leak introduced in v1 (AI)

(As written by CVE List.)

## Affected

- Linux Linux: from 76145f7255326761dafb76721a785799d8a00d5f before eac65c272f3b49021a843cba5107d63627395e0e; from 76145f7255326761dafb76721a785799d8a00d5f before 9ff46ffeecdb1802d6e26183177935b948a12e7f; from 76145f7255326761dafb76721a785799d8a00d5f before ccd2d799ed4467c07f5ee18c2f5c59bcc990822c; 6.14 (not affected: before 6.14; from 6.18.14 up to 6.18.*; from 6.19.4 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 6.14 before 6.18.14; from 6.19 before 6.19.4

## References

- <https://git.kernel.org/stable/c/eac65c272f3b49021a843cba5107d63627395e0e> (patch)
- <https://git.kernel.org/stable/c/9ff46ffeecdb1802d6e26183177935b948a12e7f> (patch)
- <https://git.kernel.org/stable/c/ccd2d799ed4467c07f5ee18c2f5c59bcc990822c> (patch)

## Sources

- CVE List: [CVE-2026-45951](https://www.cve.org/CVERecord?id=CVE-2026-45951), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2026-45951](https://nvd.nist.gov/vuln/detail/CVE-2026-45951), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-45951 · Whole record: https://cve.day/CVE-2026-45951.json · Rebuilt by cve.day 2026-11-25T22:59:22.518Z
