Heap-based buffer overflow in libbpf - CVE-2025-29481

 

Heap-based buffer overflow in libbpf - CVE-2025-29481

Published: May 27, 2025


Vulnerability identifier: #VU109842
CSH Severity: Medium
CVSS v4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-29481
CWE-ID: CWE-122
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error in the bpf_object__init_prog` function of libbpf. The vulnerability allows a local user to execute arbitrary code or cause a denial of service (crash) via a crafted ELF file that triggers a heap buffer overflow


Affected software

libbpf
Anolis OS
IBM Observability with Instana
libbpf
libbpf-devel
libbpf-static

How to mitigate CVE-2025-29481

Install updates from vendor's website.

libbpf - update to 1.5.1
IBM Observability with Instana - update to 1.0.295
libbpf - update to 1.2.2-2
libbpf-devel - update to 1.2.2-2
libbpf-static - update to 1.2.2-2

External References

Related Security Bulletins