bpf: Fix a potential use-after-free of BTF object
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.146.19.47.0In 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)
From the CVE record · Linux
Incorrect reference counting in the Linux kernel’s BPF check_pseudo_btf_id() function can allow a BTF object with a zero reference count to reach __check_pseudo_btf_id(), creating a potential use-after-free. The input does not specify how an attacker could trigger it or whether network access, authentication, or user interaction is required.
Teams running the Linux kernel should check their installations; affected versions are not specified.