CVE-2021-45940
libbpf 0.6.0 and 0.6.1 has a heap-based buffer overflow (4 bytes) in __bpf_object__open (called...
CVE-2021-45940 is a medium vulnerability (CVSS 6.5) in Libbpf Project Libbpf, published December 31, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.25%, the 69th percentile. Fixed in libbpf 0.7.0-2.
- Severity
- 6.5 MediumCVSS 3.1, NVD
- Exploit chance
- 1.25%EPSS, 69th percentile
- Exploitation
- None knownNot on CISA’s or ENISA’s lists
- Fixed in
0.7.0-2libbpf +3 more
Description
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).
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
Affected products
Affected packages
What each source reports
NVD Score used 6.5
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).
- Record
CVE-2021-45940- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:N/I:N/A:P - Weakness
- CWE-787
- Updated
- 2026-11-02
CVE ListNo score
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).
- Record
CVE-2021-45940- Updated
- 2026-11-02
EUVDEUVD-2021-32649No score
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).
- Record
EUVD-2021-32649- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-5jr4-6rxr-3x73No score
libbpf 0.6.0 and 0.6.1 has a heap-based buffer overflow (4 bytes) in __bpf_object__open (called...
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).
- Record
GHSA-5jr4-6rxr-3x73- Weakness
- CWE-787
- Updated
- 2026-11-02
OSV 6.5
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).
- Record
CVE-2021-45940- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2021-45940 6.5
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).
- Record
DEBIAN-CVE-2021-45940- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVBIT-bpftool-2021-45940No score
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).
- Record
BIT-bpftool-2021-45940- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:12491-1No score
libbpf-devel-1.0.1-2.1 on GA media
These are all security issues fixed in the libbpf-devel-1.0.1-2.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:12491-1- Updated
- 2026-11-02
History
| Recorded | Changed | Sources |
|---|---|---|
| facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
References
github.com/google/oss-fuzz-vulns/blob/main/vulns/libbpf/OSV-2021-1562.yaml
bugs.chromium.org/p/oss-fuzz/issues/detail?id=40868
nvd.nist.gov/vuln/detail/CVE-2021-45940
github.com/advisories/GHSA-5jr4-6rxr-3x73
security-tracker.debian.org/tracker/CVE-2021-45940
suse.com/security/cve/CVE-2021-45940
suse.com/security/cve/CVE-2022-3533
suse.com/security/cve/CVE-2022-3534
suse.com/security/cve/CVE-2022-3606