# CVE-2024-2313: bpftrace: If kernel headers need to be extracted, bpftrace will attempt to load them from a temporary directory

CVE-2024-2313 is fixed in 3 products on 1 platform, first by DEBIAN-CVE-2024-2313, released March 10, 2024. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2024-2313
- Priority: Routine
- CVSS: 2.8 (low)
- EPSS: 0.0018
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Mar 10, 2024

## Description

If kernel headers need to be extracted, bpftrace will attempt to load them from a temporary directory. An unprivileged attacker could use this to force bcc to load compromised linux headers. Linux distributions which provide kernel headers by default are not affected by default.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | bpftrace Debian 13.5 (trixie) | 0.21.0-1 | [DEBIAN-CVE-2024-2313](https://patchblox.com/security/data/fix/linux/debian-cve-2024-2313.md) | Mar 10, 2024 |
| Linux | bpftrace Debian 14 | 0.21.0-1 | [DEBIAN-CVE-2024-2313](https://patchblox.com/security/data/fix/linux/debian-cve-2024-2313.md) | Mar 10, 2024 |
| Linux | bpftrace RHEL 8 | 0:0.16.0-6.el8_10 | [RHSA-2024:8830](https://patchblox.com/security/data/fix/linux/rhsa-2024-8830.md) | Nov 5, 2024 |
| Linux | bpftrace RHEL 9 | 0:0.21.1-1.el9 | [RHSA-2024:9188](https://patchblox.com/security/data/fix/linux/rhsa-2024-9188.md) | Nov 12, 2024 |
| Linux | bpftrace almalinux 8 | 0.16.0-6.el8_10 | [ALSA-2024:8830](https://patchblox.com/security/data/fix/linux/alsa-2024-8830.md) | Nov 5, 2024 |
| Linux | bpftrace almalinux 9 | 0.21.1-1.el9 | [ALSA-2024:9188](https://patchblox.com/security/data/fix/linux/alsa-2024-9188.md) | Nov 12, 2024 |
| Linux | bpftrace amzn 2023 | 0.17.0-1.amzn2023.0.1 | [ALAS2023-2024-627](https://patchblox.com/security/data/fix/linux/alas2023-2024-627.md) | May 23, 2024 |
| Linux | bpftrace ol 8 | 0:0.16.0-6.el8_10 | [ELSA-2024-8830](https://patchblox.com/security/data/fix/linux/elsa-2024-8830.md) | Nov 5, 2024 |
| Linux | bpftrace ol 9 | 0:0.21.1-1.el9 | [ELSA-2024-9188](https://patchblox.com/security/data/fix/linux/elsa-2024-9188.md) | Nov 14, 2024 |
| Linux | bpftrace rocky 8 | 0:0.16.0-6.el8_10 | [RLSA-2024:8830](https://patchblox.com/security/data/fix/linux/rlsa-2024-8830.md) | Nov 8, 2024 |
| Linux | bpftrace rocky 9 | 0:0.21.1-1.el9 | [RLSA-2024:9188](https://patchblox.com/security/data/fix/linux/rlsa-2024-9188.md) | Mar 17, 2025 |
| Linux | bpftrace-debuginfo amzn 2023 | 0.17.0-1.amzn2023.0.1 | [ALAS2023-2024-627](https://patchblox.com/security/data/fix/linux/alas2023-2024-627.md) | May 23, 2024 |
| Linux | bpftrace-debugsource amzn 2023 | 0.17.0-1.amzn2023.0.1 | [ALAS2023-2024-627](https://patchblox.com/security/data/fix/linux/alas2023-2024-627.md) | May 23, 2024 |

---

Data as of 2026-11-08T13:06:02Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
