Every CVESearch/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

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.

What does this mean?
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

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

Affected products

Affected packages

Affected packages
PackageAffectedFixed
bpftool
Bitnami
0.6.0 to 0.6.0, 0.6.1 to 0.6.1None 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

What each source reports

NVD Score used6.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 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
OSV6.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-459406.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-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

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

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

References

MoveEnter Open