Linux
bpf: Fix a potential use-after-free of BTF object
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)
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 76145f7255326761dafb76721a785799d8a00d5f, < eac65c272f3b49021a843cba5107d63627395e0e
- >= 76145f7255326761dafb76721a785799d8a00d5f, < 9ff46ffeecdb1802d6e26183177935b948a12e7f
- >= 76145f7255326761dafb76721a785799d8a00d5f, < ccd2d799ed4467c07f5ee18c2f5c59bcc990822c
Fixed in eac65c272f3b49021a843cba5107d63627395e0e, 9ff46ffeecdb1802d6e26183177935b948a12e7f, ccd2d799ed4467c07f5ee18c2f5c59bcc990822c
- 6.14
Fixed in 0, 6.18.14, 6.19.4, 7.0
Mitigation
Upgrade Linux to eac65c272f3b49021a843cba5107d63627395e0e or 9ff46ffeecdb1802d6e26183177935b948a12e7f or ccd2d799ed4467c07f5ee18c2f5c59bcc990822c or later.
Upgrade Linux to 0 or 6.18.14 or 6.19.4 or 7.0 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.