Skip to main content
VulnerabilityPublished Updated

CVE-2025-29481: libbpf · Buffer Overflow

Affects libbpfSource CVE Database V5

0

Not known to be exploited · CVSS 6.2 Medium.

Data as of 26 Oct 2026, 12:55 UTC

CVSS 3.1 base score
6.2Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 14% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 7 Apr 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Affected software

ProductAffectedFixed in
GitHublmarch2/libbpfpkg:github/lmarch2/libbpfOther threatsAffected
  • =1.5.0
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

To mitigate CVE-2025-29481, organizations should: 1) Restrict local user access to trusted personnel only, minimizing the risk of untrusted ELF files being processed by libbpf. 2) Avoid running libbpf-related processes with root privileges unless absolutely necessary, and never pass untrusted ELF files to libbpf under elevated privileges. 3) Monitor vendor and open-source project updates for patches addressing this vulnerability and apply them promptly once available. 4) Implement strict file integrity monitoring and validation for ELF files used in eBPF program loading to detect and block malicious inputs. 5) Employ Linux security modules (e.g., SELinux, AppArmor) to constrain the capabilities of processes interacting with libbpf, limiting potential damage from exploitation. 6) Conduct regular security audits and penetration testing focusing on local privilege escalation vectors involving eBPF and libbpf. 7) Educate system administrators and developers about the risks of handling untrusted ELF files and enforce secure coding and operational practices around eBPF usage.

Description

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."

References

Community reviews

Loading reviews…