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.0: 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/E:U/U:Green
CVE-ID: CVE-2025-29481
CWE-ID: CWE-122
Exploitation vector: Local access
Exploit availability: No public exploit available
Vendor: libbpf
Affected software:
libbpf

Detailed vulnerability description

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


How to mitigate CVE-2025-29481

Install updates from vendor's website.

Sources