Buffer overflow in Libbpf Project
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
Published · last modified .
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.
EPSS exploit prediction
EPSS: 0.011 (65.0th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 65th percentile — 65.0% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.011 · newest: 0.011 · change: -0.000
Affected products
- Libbpf Project — versions 0.6.0, 0.6.1
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/google/oss-fuzz-vulns/blob/main/vulns/libbpf/OSV-2021-1562.yaml (Exploit, Third Party Advisory)
- bugs.chromium.org/p/oss-fuzz/issues/detail (Exploit, Third Party Advisory, Issue Tracking)
Frequently asked questions
- What is CVE-2021-45940?
- CVE-2021-45940 is a medium-severity vulnerability in Libbpf Project, 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.