CVE-2024-40909
Severity CVSS v4.0:
Pending analysis
Type:
CWE-416
Use After Free
Publication date:
12/07/2024
Last modified:
04/08/2026
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
bpf: Fix a potential use-after-free in bpf_link_free()<br />
<br />
After commit 1a80dbcb2dba, bpf_link can be freed by<br />
link->ops->dealloc_deferred, but the code still tests and uses<br />
link->ops->dealloc afterward, which leads to a use-after-free as<br />
reported by syzbot. Actually, one of them should be sufficient, so<br />
just call one of them instead of both. Also add a WARN_ON() in case<br />
of any problematic implementation.
Impact
Base Score 3.x
7.80
Severity 3.x
HIGH
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.6.26 (including) | 6.6.35 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.9 (including) | 6.9.6 (excluding) |
| cpe:2.3:o:linux:linux_kernel:6.10:rc1:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.10:rc2:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/2884dc7d08d98a89d8d65121524bb7533183a63a
- https://git.kernel.org/stable/c/91cff53136daeff50816b0baeafd38a6976f6209
- https://git.kernel.org/stable/c/fa97b8fed9896f1e89cb657513e483a152d4c382
- https://git.kernel.org/stable/c/2884dc7d08d98a89d8d65121524bb7533183a63a
- https://git.kernel.org/stable/c/91cff53136daeff50816b0baeafd38a6976f6209
- https://git.kernel.org/stable/c/fa97b8fed9896f1e89cb657513e483a152d4c382



