cve.bz

CVE-2025-29481 libbpf project libbpf: Classic Buffer Overflow

6.2 mediumExploit referenceEPSS 0.2%

Medium (6.2) in libbpf project libbpf. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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."

Severity

CVSS 3.1

6.2 medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 15th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2025-04-09. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-120 Buffer Copy without Checking Size of Input (Classic Buffer Overflow)
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-29481 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-29481?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-29481?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-29481 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
libbpf_project:libbpf1.5.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12libbpfno fix listedDEBIAN-CVE-2025-29481
Debian13, 14libbpf1.5.0-3DEBIAN-CVE-2025-29481
Ubuntu16.04:LTS, 20.04:LTS, Pro:18.04:LTSdwarves-dfsgno fix listedUBUNTU-CVE-2025-29481
Ubuntu22.04:LTS, 24.04:LTS, Pro:20.04:LTSlibbpfno fix listedUBUNTU-CVE-2025-29481
Azure Linux2libbpf1.0.1-2AZL-59719
Azure Linux3bcc0.29.1-3AZL-59745
Azure Linux3dwarves1.25-2AZL-59737
Azure Linux3libbpf1.2.2-2AZL-59727
Azure Linux3pcpno fix listedAZL-61765

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

Red Hat's 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 malformed ELF file leading to memory corruption during memcpy and the impact of the issue is a crash of the application using libbpf when it loads a malicious BPF object file, the overflow could allow limited memory corruption.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10libbpfNot affected
Red Hat Enterprise Linux 8libbpfNot affected
Red Hat Enterprise Linux 9libbpfNot affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Not affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-29481.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-120 (13).

References

Check your stackJSON