CVE-2024-56675 Details
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.
A use-after-free vulnerability has been identified in the Linux kernel's handling of uprobes and BPF (Berkeley Packet Filter) programs. This issue arises because uprobes use a specific type of RCU (Read-Copy-Update) protection that is not compatible with how non-sleepable BPF programs are managed. When a non-sleepable BPF program is attached to a uprobe, it is freed through a normal RCU grace period, which does not ensure the same level of protection as the tasks-trace-RCU grace period used by uprobes. As a result, this can lead to a use-after-free condition for the BPF program, potentially allowing for arbitrary code execution or other malicious actions.
Users can upgrade to the latest version of the Linux kernel to address this vulnerability. For Debian 11 (bullseye), this vulnerability has been fixed in the linux-6.1 package version 6.1.6.1.128-1~deb11u1.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 10, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-416 | Use After Free | [email protected] |
| CWE-416 | Use After Free | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 6.0, < 6.1.121 >= 6.2, < 6.6.67 >= 6.7, < 6.12.6 6.13 rc1 6.13 rc2 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 3, 2025 | CVE Modified | CVE |
| Feb 10, 2025 | CVE Modified | CISA-ADP |
| Jan 6, 2025 | Initial Analysis | [email protected] |
| Dec 27, 2024 | New CVE Received | kernel.org |