CVE-2025-29481
published 2025-04-07CVE-2025-29481: Buffer Overflow vulnerability in libbpf 1.5.0 allows a local attacker to execute arbitrary code via the bpf_object__init_prog` function of libbpf. This has…
PriorityP424medium6.2CVSS 3.1
AVLACLPRNUINSUCNINAH
EPSS
0.23%
13.9th percentile
Buffer Overflow vulnerability in libbpf 1.5.0 allows a local attacker to execute arbitrary code via the bpf_object__init_prog` function of libbpf. This has been disputed by third parties who assert that "no one in their sane mind should be passing untrusted ELF files into libbpf while running under root."
Affected
9 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | libbpf | < libbpf 1.5.0-3 (forky) | libbpf 1.5.0-3 (forky) |
| libbpf_project | libbpf | — | — |
| libbpf_project | libbpf | >= 0 < 1.5.0-3 | 1.5.0-3 |
| libbpf_project | libbpf | >= 0 < 1.5.0-3 | 1.5.0-3 |
| msrc | azl3_bcc_0.29.1-3_on_azure_linux_3.0 | — | — |
| msrc | azl3_dwarves_1.25-2_on_azure_linux_3.0 | — | — |
| msrc | azl3_libbpf_1.2.2-2_on_azure_linux_3.0 | — | — |
| msrc | azl3_xdp-tools_1.4.2-1_on_azure_linux_3.0 | — | — |
| msrc | cbl2_libbpf_1.0.1-2_on_cbl_mariner_2.0 | — | — |
CVSS provenance
nvdv3.16.2MEDIUMCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
osv6.2MEDIUM
vendor_debian6.2LOW
vendor_msrc6.2MEDIUM
vendor_redhat6.2MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Microsoft
Buffer Overflow vulnerability in libbpf 1.5.0 allows a local attacker to execute arbitrary code via the bpf_object__init_prog` function of libbpf.
vendor_msrc·2025-04-08·CVSS 6.2
CVE-2025-29481 [MEDIUM] CWE-120 Buffer Overflow vulnerability in libbpf 1.5.0 allows a local attacker to execute arbitrary code via the bpf_object__init_prog` function of libbpf.
Buffer Overflow vulnerability in libbpf 1.5.0 allows a local attacker to execute arbitrary code via the bpf_object__init_prog` function of libbpf.
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
mitre: mitre
Red Hat
libbpf: Heap Buffer Overflow in libbpf
vendor_redhat·2025-04-07·CVSS 6.2
CVE-2025-29481 [MEDIUM] CWE-122 libbpf: Heap Buffer Overflow in libbpf
libbpf: Heap Buffer Overflow in libbpf
Buffer Overflow vulnerability in libbpf 1.5.0 allows a local attacker to execute arbitrary code via the bpf_object__init_prog` function of libbpf. This has been disputed by third parties who assert that "no one in their sane mind should be passing untrusted ELF files into libbpf while running under root."
A flaw was found in libbpf. This vulnerability allows a local attacker to execute arbitrary code or cause a denial of service (crash) via a crafted ELF file that triggers a heap buffer overflow.
Statement: This vulnerability is rated as a moderate severity because here heap buffer overflow vulnerability exists in the bpf_object__init_prog function of libbpf where this issue occurs due to missing boundary checks when copying BPF instructions from a
Debian
CVE-2025-29481: libbpf - Buffer Overflow vulnerability in libbpf 1.5.0 allows a local attacker to execute...
vendor_debian·2025·CVSS 6.2
CVE-2025-29481 [MEDIUM] CVE-2025-29481: libbpf - Buffer Overflow vulnerability in libbpf 1.5.0 allows a local attacker to execute...
Buffer Overflow vulnerability in libbpf 1.5.0 allows a local attacker to execute arbitrary code via the bpf_object__init_prog` function of libbpf. This has been disputed by third parties who assert that "no one in their sane mind should be passing untrusted ELF files into libbpf while running under root."
Scope: local
bookworm: open
bullseye: open
forky: resolved (fixed in 1.5.0-3)
sid: resolved (fixed in 1.5.0-3)
trixie: resolved (fixed in 1.5.0-3)
GHSA
GHSA-3ch3-mpx2-hj74: Buffer Overflow vulnerability in libbpf 1
ghsa_unreviewed·2025-04-07
CVE-2025-29481 [MEDIUM] CWE-120 GHSA-3ch3-mpx2-hj74: Buffer Overflow vulnerability in libbpf 1
Buffer Overflow vulnerability in libbpf 1.5.0 allows a local attacker to execute arbitrary code via the bpf_object__init_prog` function of libbpf.
OSV
CVE-2025-29481: Buffer Overflow vulnerability in libbpf 1
osv·2025-04-07·CVSS 6.2
CVE-2025-29481 [MEDIUM] CVE-2025-29481: Buffer Overflow vulnerability in libbpf 1
Buffer Overflow vulnerability in libbpf 1.5.0 allows a local attacker to execute arbitrary code via the bpf_object__init_prog` function of libbpf. This has been disputed by third parties who assert that "no one in their sane mind should be passing untrusted ELF files into libbpf while running under root."
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2025-04-07
Published