CVE-2024-2314 Path traversal in BPF Compiler Collection
An unprivileged attacker can force bcc to load compromised kernel headers from a temporary directory, potentially 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-2314?
CVE-2024-2314 is a low-severity path traversal vulnerability in IOVisor BPF Compiler Collection, 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, bcc 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.
Which versions are affected by CVE-2024-2314?
It affects 1 product.
Linux distribution packages (34)
bcc-devel AlmaLinux:8 | All versions | 0.25.0-9.el8_10 |
bcc-doc AlmaLinux:8 | All versions | 0.25.0-9.el8_10 |
bcc AlmaLinux:9 | All versions | 0.30.0-6.el9 |
bcc-devel AlmaLinux:9 | All versions | 0.30.0-6.el9 |
bcc-doc AlmaLinux:9 | All versions | 0.30.0-6.el9 |
bcc-tools AlmaLinux:9 | All versions | 0.30.0-6.el9 |
libbpf-tools AlmaLinux:9 | All versions | 0.30.0-6.el9 |
python3-bcc AlmaLinux:9 | All versions | 0.30.0-6.el9 |
bcc Red Hat:enterprise_linux:8::appstream | All versions | 0:0.25.0-9.el8_10 |
bcc-debuginfo Red Hat:enterprise_linux:8::appstream | All versions | 0:0.25.0-9.el8_10 |
bcc-debugsource Red Hat:enterprise_linux:8::appstream | All versions | 0:0.25.0-9.el8_10 |
bcc-tools Red Hat:enterprise_linux:8::appstream | All versions | 0:0.25.0-9.el8_10 |
bcc-tools-debuginfo Red Hat:enterprise_linux:8::appstream | All versions | 0:0.25.0-9.el8_10 |
python3-bcc Red Hat:enterprise_linux:8::appstream | All versions | 0:0.25.0-9.el8_10 |
bcc-debuginfo Red Hat:enterprise_linux:8::crb | All versions | 0:0.25.0-9.el8_10 |
bcc-debugsource Red Hat:enterprise_linux:8::crb | All versions | 0:0.25.0-9.el8_10 |
bcc-devel Red Hat:enterprise_linux:8::crb | All versions | 0:0.25.0-9.el8_10 |
bcc-doc Red Hat:enterprise_linux:8::crb | All versions | 0:0.25.0-9.el8_10 |
bcc-tools-debuginfo Red Hat:enterprise_linux:8::crb | All versions | 0:0.25.0-9.el8_10 |
bcc Red Hat:enterprise_linux:9::appstream | All versions | 0:0.30.0-6.el9 |
bcc-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:0.30.0-6.el9 |
bcc-debugsource Red Hat:enterprise_linux:9::appstream | All versions | 0:0.30.0-6.el9 |
bcc-tools Red Hat:enterprise_linux:9::appstream | All versions | 0:0.30.0-6.el9 |
bcc-tools-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:0.30.0-6.el9 |
libbpf-tools Red Hat:enterprise_linux:9::appstream | All versions | 0:0.30.0-6.el9 |
libbpf-tools-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:0.30.0-6.el9 |
python3-bcc Red Hat:enterprise_linux:9::appstream | All versions | 0:0.30.0-6.el9 |
bcc-debuginfo Red Hat:enterprise_linux:9::crb | All versions | 0:0.30.0-6.el9 |
bcc-debugsource Red Hat:enterprise_linux:9::crb | All versions | 0:0.30.0-6.el9 |
bcc-devel Red Hat:enterprise_linux:9::crb | All versions | 0:0.30.0-6.el9 |
bcc-doc Red Hat:enterprise_linux:9::crb | All versions | 0:0.30.0-6.el9 |
bcc-tools-debuginfo Red Hat:enterprise_linux:9::crb | All versions | 0:0.30.0-6.el9 |
libbpf-tools-debuginfo Red Hat:enterprise_linux:9::crb | All versions | 0:0.30.0-6.el9 |
bcc Rocky Linux:8 | All versions | 0:0.25.0-9.el8_10 |
Products include Iovisor Bpf Compiler Collection.
How do I fix CVE-2024-2314?
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-2314 being exploited?
There is no known exploitation of CVE-2024-2314 in the wild and no public exploit code.
Sources
Also known as ALSA-2024:8831, ALSA-2024:9187, AZL-38914, BELL-CVE-2024-2314, CLSA-2026-1789740903, DEBIAN-CVE-2024-2314 and 5 more.