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

- Severity: Low 2.8 (CVSS:3.1, scored by canonical) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:N/A:L`
- 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.18%, higher than 8% of CVEs (2026-12-01)
- Published: 2024-03-10T22:51:51.372Z
- Modified: 2026-06-17T07:24:17.780Z
- Weaknesses: CWE-377
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: canonical

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

(As written by CVE List.)

## Affected

- bpftrace: no versions given (not affected: before v0.20.2)
- bpftrace bpftrace: before 0.20.2

## References

- <https://github.com/bpftrace/bpftrace/commit/4be4b7191acb8218240e6b7178c30fa8c9b59998> (patch)
- <https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-2313> (issue-tracking, third-party-advisory)

## Sources

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

---

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