# CVE-2024-56675: bpf: Fix UAF via mismatching bpf_prog/attachment RCU flavors

- Severity: High 7.8 (CVSS:3.1, scored by CISA-ADP) `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.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-12-27T15:06:36.183Z
- Modified: 2026-06-17T08:12:43.233Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

bpf: Fix UAF via mismatching bpf_prog/attachment RCU flavors

Uprobes always use bpf_prog_run_array_uprobe() under tasks-trace-RCU
protection. But it is possible to attach a non-sleepable BPF program to a
uprobe, and non-sleepable BPF programs are freed via normal RCU (see
__bpf_prog_put_noref()). This leads to UAF of the bpf_prog because a normal
RCU grace period does not imply a tasks-trace-RCU grace period.

Fix it by explicitly waiting for a tasks-trace-RCU grace period after
removing the attachment of a bpf_prog to a perf_event.

(As written by CVE List.)

## Affected

- Linux Linux: from 8c7dcb84e3b744b2b70baa7a44a9b1881c33a9c9 before 9245459a992d22fe0e92e988f49db1fec82c184a; from 8c7dcb84e3b744b2b70baa7a44a9b1881c33a9c9 before f9f85df30118f3f4112761e6682fc60ebcce23e5; from 8c7dcb84e3b744b2b70baa7a44a9b1881c33a9c9 before 9b53d2c2a38a1effc341d99be3f99fa7ef17047d; from 8c7dcb84e3b744b2b70baa7a44a9b1881c33a9c9 before ef1b808e3b7c98612feceedf985c2fbbeb28f956; 6.0 (not affected: before 6.0; from 6.1.121 up to 6.1.*; from 6.6.67 up to 6.6.*; from 6.12.6 up to 6.12.*; from 6.13 up to *)
- linux linux_kernel: from 6.0 before 6.1.121; from 6.2 before 6.6.67; from 6.7 before 6.12.6; 6.13

## Every score

- CISA-ADP: 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/9245459a992d22fe0e92e988f49db1fec82c184a> (patch)
- <https://git.kernel.org/stable/c/f9f85df30118f3f4112761e6682fc60ebcce23e5> (patch)
- <https://git.kernel.org/stable/c/9b53d2c2a38a1effc341d99be3f99fa7ef17047d> (patch)
- <https://git.kernel.org/stable/c/ef1b808e3b7c98612feceedf985c2fbbeb28f956> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>

## Sources

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

---

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