# CVE-2024-47675: bpf: Fix use-after-free in bpf_uprobe_multi_link_attach()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 16% of CVEs (2026-11-30)
- Published: 2024-10-21T11:53:19.762Z
- Modified: 2026-08-05T11:39:21.879Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 89ae89f53d201143560f1e9ed4bfa62eee34f88e before 790c630ab0e7d7aba6d186581d4627c09fce60f3; from 89ae89f53d201143560f1e9ed4bfa62eee34f88e before 7c1d782e5afbf7c50ba74ecc4ddc18a05d63e5ee; from 89ae89f53d201143560f1e9ed4bfa62eee34f88e before cdf27834c3dd5d9abf7eb8e4ee87ee9e307eb25c; from 89ae89f53d201143560f1e9ed4bfa62eee34f88e before 5fe6e308abaea082c20fbf2aa5df8e14495622cf; 6.6 (not affected: before 6.6; from 6.6.54 up to 6.6.*; from 6.10.13 up to 6.10.*; from 6.11.2 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: from 6.6 before 6.6.54; from 6.7 before 6.10.13; from 6.11 before 6.11.2

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/790c630ab0e7d7aba6d186581d4627c09fce60f3> (patch)
- <https://git.kernel.org/stable/c/7c1d782e5afbf7c50ba74ecc4ddc18a05d63e5ee> (patch)
- <https://git.kernel.org/stable/c/cdf27834c3dd5d9abf7eb8e4ee87ee9e307eb25c> (patch)
- <https://git.kernel.org/stable/c/5fe6e308abaea082c20fbf2aa5df8e14495622cf> (patch)

## Sources

- CVE List: [CVE-2024-47675](https://www.cve.org/CVERecord?id=CVE-2024-47675), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-47675](https://nvd.nist.gov/vuln/detail/CVE-2024-47675), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-47675 · Whole record: https://cve.day/CVE-2024-47675.json · Rebuilt by cve.day 2026-11-25T22:58:46.955Z
