CVE-2024-2313 Path traversal in bpftrace
An unprivileged attacker can force bpftrace to load compromised kernel headers from a temporary directory, leading to code execution.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-2313?
CVE-2024-2313 is a low-severity path traversal vulnerability in bpftrace, published on 10 Mar 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-377
Which versions are affected by CVE-2024-2313?
It affects 1 product.
Linux distribution packages (10)
bpftrace AlmaLinux:8 | All versions | 0.16.0-6.el8_10 |
bpftrace AlmaLinux:9 | All versions | 0.21.1-1.el9 |
bpftrace Red Hat:enterprise_linux:8::appstream | All versions | 0:0.16.0-6.el8_10 |
bpftrace-debuginfo Red Hat:enterprise_linux:8::appstream | All versions | 0:0.16.0-6.el8_10 |
bpftrace-debugsource Red Hat:enterprise_linux:8::appstream | All versions | 0:0.16.0-6.el8_10 |
bpftrace Red Hat:enterprise_linux:9::appstream | All versions | 0:0.21.1-1.el9 |
bpftrace-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:0.21.1-1.el9 |
bpftrace-debugsource Red Hat:enterprise_linux:9::appstream | All versions | 0:0.21.1-1.el9 |
bpftrace Rocky Linux:8 | All versions | 0:0.16.0-6.el8_10 |
bpftrace Rocky Linux:9 | All versions | 0:0.21.1-1.el9 |
Products include Bpftrace Bpftrace.
How do I fix CVE-2024-2313?
Apply the vendor's patch.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2024-2313 being exploited?
There is no known exploitation of CVE-2024-2313 in the wild and no public exploit code.
Sources
Also known as ALSA-2024:8830, ALSA-2024:9188, AZL-35836, AZL-35874, CLSA-2026-1778080357, DEBIAN-CVE-2024-2313 and 6 more.