What’s Vulnerable › Vulnerabilities
CVE-2024-47675: bpf: Fix use-after-free in bpf_uprobe_multi_link_attach()
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-10-21 · updated 2026-08-04
- Weakness: CWE-416
Description
In the Linux kernel, the following vulnerability has been resolved: bpf: Fix use-after-free in bpf_uprobe_multi_link_attach() If bpf_link_prime() fails, bpf_uprobe_multi_link_attach() goes to the error_free label and frees the array of bpf_uprobe's without calling bpf_uprobe_unregister(). This leaks bpf_uprobe->uprobe and worse, this frees bpf_uprobe->consumer without removing it from the uprobe->consumers list.
Affected products
- Linux kernel: from 6.6 before 6.6.54; from 6.7 before 6.10.13; from 6.11 before 6.11.2 — fixed in 6.10.13, 6.11.2, 6.6.54
How to fix
Upgrade to a fixed version: Linux kernel 6.10.13, 6.11.2, 6.6.54. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/5fe6e308abaea082c20fbf2aa5df8e14495622cf
- https://git.kernel.org/stable/c/790c630ab0e7d7aba6d186581d4627c09fce60f3
- https://git.kernel.org/stable/c/7c1d782e5afbf7c50ba74ecc4ddc18a05d63e5ee
- https://git.kernel.org/stable/c/cdf27834c3dd5d9abf7eb8e4ee87ee9e307eb25c
Get alerted when CVE-2024-47675 or the next vulnerability affects your stack