CVE-2024-2314 Path traversal in BPF Compiler Collection

Low 2.8 Published Updated

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:8All versions0.25.0-9.el8_10
bcc-doc AlmaLinux:8All versions0.25.0-9.el8_10
bcc AlmaLinux:9All versions0.30.0-6.el9
bcc-devel AlmaLinux:9All versions0.30.0-6.el9
bcc-doc AlmaLinux:9All versions0.30.0-6.el9
bcc-tools AlmaLinux:9All versions0.30.0-6.el9
libbpf-tools AlmaLinux:9All versions0.30.0-6.el9
python3-bcc AlmaLinux:9All versions0.30.0-6.el9
bcc Red Hat:enterprise_linux:8::appstreamAll versions0:0.25.0-9.el8_10
bcc-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:0.25.0-9.el8_10
bcc-debugsource Red Hat:enterprise_linux:8::appstreamAll versions0:0.25.0-9.el8_10
bcc-tools Red Hat:enterprise_linux:8::appstreamAll versions0:0.25.0-9.el8_10
bcc-tools-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:0.25.0-9.el8_10
python3-bcc Red Hat:enterprise_linux:8::appstreamAll versions0:0.25.0-9.el8_10
bcc-debuginfo Red Hat:enterprise_linux:8::crbAll versions0:0.25.0-9.el8_10
bcc-debugsource Red Hat:enterprise_linux:8::crbAll versions0:0.25.0-9.el8_10
bcc-devel Red Hat:enterprise_linux:8::crbAll versions0:0.25.0-9.el8_10
bcc-doc Red Hat:enterprise_linux:8::crbAll versions0:0.25.0-9.el8_10
bcc-tools-debuginfo Red Hat:enterprise_linux:8::crbAll versions0:0.25.0-9.el8_10
bcc Red Hat:enterprise_linux:9::appstreamAll versions0:0.30.0-6.el9
bcc-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:0.30.0-6.el9
bcc-debugsource Red Hat:enterprise_linux:9::appstreamAll versions0:0.30.0-6.el9
bcc-tools Red Hat:enterprise_linux:9::appstreamAll versions0:0.30.0-6.el9
bcc-tools-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:0.30.0-6.el9
libbpf-tools Red Hat:enterprise_linux:9::appstreamAll versions0:0.30.0-6.el9
libbpf-tools-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:0.30.0-6.el9
python3-bcc Red Hat:enterprise_linux:9::appstreamAll versions0:0.30.0-6.el9
bcc-debuginfo Red Hat:enterprise_linux:9::crbAll versions0:0.30.0-6.el9
bcc-debugsource Red Hat:enterprise_linux:9::crbAll versions0:0.30.0-6.el9
bcc-devel Red Hat:enterprise_linux:9::crbAll versions0:0.30.0-6.el9
bcc-doc Red Hat:enterprise_linux:9::crbAll versions0:0.30.0-6.el9
bcc-tools-debuginfo Red Hat:enterprise_linux:9::crbAll versions0:0.30.0-6.el9
libbpf-tools-debuginfo Red Hat:enterprise_linux:9::crbAll versions0:0.30.0-6.el9
bcc Rocky Linux:8All versions0: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.

Is CVE-2024-2314 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free