Back

HIGH

libbpf: Heap Buffer Overflow in libbpf

Published Apr 7, 2025

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

Affected products

Remediation

Red Hat 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.

References (6)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner mitre
Published Apr 7, 2025
Updated Feb 25, 2026
Reserved Mar 11, 2025
CISA Vulnrichment
Updated Apr 9, 2025
NVD
Status Modified
Modified Jun 17, 2026
Red Hat
Severity Moderate
Public date Apr 7, 2025
ENISA EUVD
Assigner mitre
Published Apr 7, 2025
Updated Feb 25, 2026
Exploited since n/a
EUVD-2025-10438