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

 

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

Published: May 1, 2025


Vulnerability identifier: #VU108111
CSH Severity: Medium
CVSS v4: 6.9 [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]
CVE-ID: CVE-2021-45941
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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.


Affected software

libbpf
DataStax Hyper-Converged Database
IBM Cloud Transformation Advisor

How to mitigate CVE-2021-45941

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

libbpf - update to 0.7.0
DataStax Hyper-Converged Database - update to 1.2.5
IBM Cloud Transformation Advisor - update to 3.10.1

External References

Related Security Bulletins