CVE-2024-56675·Kernel vulnerability
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.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.12.6
- Published
- 2024-12-27
Affected versions
From: 6.7
Until: 6.12.6
Fixed in: 6.12.6
How to fix this CVE
Update your Linux kernel to version 6.12.6 or later to resolve this use-after-free vulnerability affecting BPF program attachments to uprobes. The vulnerability arises from a mismatch between RCU synchronization mechanisms when non-sleepable BPF programs are attached to uprobe events, causing premature memory deallocation. Kernel updates should be applied and systems should be rebooted to activate the patched kernel.
sudo dnf update kernel kernel-devel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check current kernel version with: uname -r
- Step 2: Verify if BPF is enabled in your kernel by checking: cat /boot/config-$(uname -r) | grep CONFIG_BPF (should show CONFIG_BPF=y)
- Step 3: Search kernel logs for UAF-related warnings or BPF attachment errors: dmesg | grep -i 'use-after-free\|bpf\|uprobe' or journalctl -b | grep -i 'use-after-free'
- Step 4: After patching, confirm the new kernel version with: uname -r (should show 6.12.6 or later)
FAQ
What is CVE-2024-56675?
This vulnerability involves a use-after-free condition in the Linux kernel's BPF subsystem where non-sleepable BPF programs attached to uprobes are freed using incorrect RCU synchronization, allowing memory to be released before safe access is guaranteed.
Is CVE-2024-56675 being actively exploited?
No, CVE-2024-56675 is not listed in the CISA KEV catalog and has no publicly disclosed exploits available.
What versions of Kernel are affected by CVE-2024-56675?
Kernel versions 6.7 through 6.12.5 are affected; version 6.12.6 and later contain the fix.
How do I check if my server is vulnerable to CVE-2024-56675?
Run 'uname -r' to check your kernel version. If it reports 6.7 to 6.12.5, your system is vulnerable. Additionally, confirm BPF support with: cat /boot/config-$(uname -r) | grep CONFIG_BPF
Does Defensia detect CVE-2024-56675?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2024-56675 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/9245459a992d22fe0e92e988f49db1fec82c184a
- https://git.kernel.org/stable/c/9b53d2c2a38a1effc341d99be3f99fa7ef17047d
- https://git.kernel.org/stable/c/ef1b808e3b7c98612feceedf985c2fbbeb28f956
- https://git.kernel.org/stable/c/f9f85df30118f3f4112761e6682fc60ebcce23e5
- https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-56675. Free for 1 server.
Get started free