Heap-based buffer overflow in libbpf - CVE-2021-45940

 

Heap-based buffer overflow in libbpf - CVE-2021-45940

Published: May 1, 2025


Vulnerability identifier: #VU108110
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2021-45940
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: libbpf
Affected software:
libbpf

Detailed vulnerability description

The vulnerability allows a remote attacker to perform a denial of service attack.

The vulnerability exists due to a boundary error within the __bpf_object__open (called from bpf_object__open_mem and bpf-object-fuzzer.c). A remote attacker can create a specially crafted file, trick the victim into opening it, trigger heap-based buffer overflow and perform a denial of service attack.


How to mitigate CVE-2021-45940

Cybersecurity Help is currently unaware of any official solution to address this vulnerability..

Sources