CVE-2026-45951

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

State
Published
Severity
7.8 High
Published
May 27, 2026
Updated
Aug 5, 2026
Reserved
May 13, 2026

Read the record on cve.org

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)

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 76145f7255326761dafb76721a785799d8a00d5f to before eac65c272f3b49021a843cba5107d63627395e0eAffected
  • 76145f7255326761dafb76721a785799d8a00d5f to before 9ff46ffeecdb1802d6e26183177935b948a12e7fAffected
  • 76145f7255326761dafb76721a785799d8a00d5f to before ccd2d799ed4467c07f5ee18c2f5c59bcc990822cAffected
LinuxLinux
  • 6.14Affected
  • before 6.14Not affected
  • 6.18.14 through 6.18.*Not affected
  • 6.19.4 through 6.19.*Not affected
  • 7.0 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.