CVE-2021-45940: Buffer Overflow
libbpf 0.6.0 and 0.6.1 has a heap-based buffer overflow (4 bytes) in bpfobjectopen (called from bpfobjectopenmem and bpf-object-fuzzer.c).
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/libbpfto a version that resolves this vulnerability.Fixed in 1.1.2-0+deb12u1Fixed in 1.5.0-3Fixed in 1.7.0-1
Event History
Frequently Asked Questions
What is the severity of CVE-2021-45940?
CVE-2021-45940 is classified as a high-severity vulnerability due to its potential for exploitation via heap-based buffer overflow.
How do I fix CVE-2021-45940?
To remediate CVE-2021-45940, upgrade libbpf to version 0.6.2 or later, which addresses the buffer overflow issue.
What versions are affected by CVE-2021-45940?
CVE-2021-45940 affects libbpf versions 0.6.0 and 0.6.1.
What is the impact of CVE-2021-45940?
The impact of CVE-2021-45940 includes potential denial of service attacks or remote code execution due to the heap-based buffer overflow.
Is my application using libbpf vulnerable to CVE-2021-45940?
If your application uses libbpf version 0.6.0 or 0.6.1, it is vulnerable to CVE-2021-45940 and should be updated.