Buffer overflow in Libbpf_project Libbpf
CVE-2021-45940
libbpf 0.6.0 and 0.6.1 has a heap-based buffer overflow (4 bytes) in __bpf_object__open (called from bpf_object__open_mem and bpf-object-fuzzer.c).
Vulnerability class: Buffer Overflow
EPSS: 0.011 (62.4th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H.
Affected products
- Libbpf_project Libbpf — versions 0.6.0, 0.6.1
- N/a — versions n/a
Weakness classification (CWE)
Public proof-of-concept exploits
References
- cve@mitre.org (Exploit, Third Party Advisory, x_refsource_MISC)
- cve@mitre.org (Exploit, Third Party Advisory, x_refsource_MISC, Issue Tracking)
Frequently asked questions
- What is CVE-2021-45940?
- CVE-2021-45940 is a medium-severity vulnerability in Libbpf_project Libbpf, classified under Out-of-bounds Write. CVSS score: 6.5/10. Published 2022-01-01.
- How severe is CVE-2021-45940?
- Medium severity. CVSS v3 base score is 6.5 out of 10.
- Is CVE-2021-45940 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.