Every CVE Search/ Get API key

CVE-2021-45940

libbpf 0.6.0 and 0.6.1 has a heap-based buffer overflow (4 bytes) in __bpf_object__open (called...

6.5 MediumFix available

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

1.25%Up 0.6 points since Jan 1, 2022
90%50%10%1%

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 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS 2.0
4.3 MediumAV:N/AC:M/Au:N/C:N/I:N/A:P
Weakness
CWE-787
Updated
2026-11-02
CVE List No 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-32649 No 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-3x73 No 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 MediumCVSS: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 MediumCVSS: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-45940 No 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-1 No 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

Affected products

Affected packages

Affected packages
PackageAffectedFixed
bpftool
Bitnami
0.6.0 to 0.6.0, 0.6.1 to 0.6.1 None known
libbpf
Debian:12
before 0.7.0-2
0.7.0-2
libbpf
Debian:13
before 0.7.0-2
0.7.0-2
libbpf
Debian:14
before 0.7.0-2
0.7.0-2

History

History
RecordedChangedSources
facts
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

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.

References

MoveEnter Open