CVE-2021-45940
published 2022-01-01CVE-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).
PriorityP428medium6.5CVSS 3.1
AVNACLPRNUIRSUCNINAH
EPSS
1.13%
63.1th percentile
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).
Affected
8 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | libbpf | < libbpf 0.7.0-2 (bookworm) | libbpf 0.7.0-2 (bookworm) |
| libbpf_project | libbpf | — | — |
| libbpf_project | libbpf | — | — |
| libbpf_project | libbpf | >= 0 < 0.7.0-2 | 0.7.0-2 |
| libbpf_project | libbpf | >= 0 < 0.7.0-2 | 0.7.0-2 |
| libbpf_project | libbpf | >= 0 < 0.7.0-2 | 0.7.0-2 |
| libbpf_project | libbpf | >= 0 < 0.5.0-1ubuntu22.04.1 | 0.5.0-1ubuntu22.04.1 |
| libbpf_project | libbpf | >= 0 < 0.5.0-1~ubuntu20.04.1+esm1 | 0.5.0-1~ubuntu20.04.1+esm1 |
CVSS provenance
nvdv3.16.5MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
nvdv2.04.3MEDIUMAV:N/AC:M/Au:N/C:N/I:N/A:P
osv6.5MEDIUM
vendor_debian6.5MEDIUM
vendor_redhat6.5MEDIUM
vendor_ubuntu6.5MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
libbpf vulnerabilities
osv·2022-12-08·CVSS 6.5
CVE-2021-45940 [MEDIUM] libbpf vulnerabilities
libbpf vulnerabilities
USN-5759-1 fixed vulnerabilities in LibBPF. This update provides the
corresponding updates for Ubuntu 20.04 ESM.
Original advisory details:
It was discovered that LibBPF incorrectly handled certain memory operations
under certain circumstances. An attacker could possibly use this issue to
cause LibBPF to crash, resulting in a denial of service, or possibly
execute arbitrary code. This issue only affected Ubuntu 22.10.
(CVE-2021-45940, CVE-2021-45941, CVE-2022-3533)
It was discovered that LibBPF incorrectly handled certain memory operations
under certain circumstances. An attacker could possibly use this issue to
cause LibBPF to crash, resulting in a denial of service, or possibly
execute arbitrary code. (CVE-2022-3534, CVE-2022-3606)
OSV
libbpf vulnerabilities
osv·2022-12-05·CVSS 6.5
CVE-2021-45940 [MEDIUM] libbpf vulnerabilities
libbpf vulnerabilities
It was discovered that LibBPF incorrectly handled certain memory operations
under certain circumstances. An attacker could possibly use this issue to
cause LibBPF to crash, resulting in a denial of service, or possibly
execute arbitrary code. This issue only affected Ubuntu 22.10.
(CVE-2021-45940, CVE-2021-45941, CVE-2022-3533)
It was discovered that LibBPF incorrectly handled certain memory operations
under certain circumstances. An attacker could possibly use this issue to
cause LibBPF to crash, resulting in a denial of service, or possibly
execute arbitrary code. (CVE-2022-3534, CVE-2022-3606)
GHSA
GHSA-5jr4-6rxr-3x73: libbpf 0
ghsa_unreviewed·2022-01-02
CVE-2021-45940 [MEDIUM] CWE-787 GHSA-5jr4-6rxr-3x73: libbpf 0
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).
OSV
CVE-2021-45940: libbpf 0
osv·2022-01-01·CVSS 6.5
CVE-2021-45940 [MEDIUM] CVE-2021-45940: libbpf 0
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).
Ubuntu
LibBPF vulnerabilities
vendor_ubuntu·2022-12-08·CVSS 6.5
CVE-2022-3606 [MEDIUM] LibBPF vulnerabilities
Title: LibBPF vulnerabilities
Summary: Several security issues were fixed in LibBPF.
USN-5759-1 fixed vulnerabilities in LibBPF. This update provides the
corresponding updates for Ubuntu 20.04 ESM.
Original advisory details:
It was discovered that LibBPF incorrectly handled certain memory operations
under certain circumstances. An attacker could possibly use this issue to
cause LibBPF to crash, resulting in a denial of service, or possibly
execute arbitrary code. This issue only affected Ubuntu 22.10.
(CVE-2021-45940, CVE-2021-45941, CVE-2022-3533)
It was discovered that LibBPF incorrectly handled certain memory operations
under certain circumstances. An attacker could possibly use this issue to
cause LibBPF to crash, resulting in a denial of service, or possibly
execute arbitrary cod
Ubuntu
LibBPF vulnerabilities
vendor_ubuntu·2022-12-05·CVSS 6.5
CVE-2021-45941 [MEDIUM] LibBPF vulnerabilities
Title: LibBPF vulnerabilities
Summary: Several security issues were fixed in LibBPF.
It was discovered that LibBPF incorrectly handled certain memory operations
under certain circumstances. An attacker could possibly use this issue to
cause LibBPF to crash, resulting in a denial of service, or possibly
execute arbitrary code. This issue only affected Ubuntu 22.10.
(CVE-2021-45940, CVE-2021-45941, CVE-2022-3533)
It was discovered that LibBPF incorrectly handled certain memory operations
under certain circumstances. An attacker could possibly use this issue to
cause LibBPF to crash, resulting in a denial of service, or possibly
execute arbitrary code. (CVE-2022-3534, CVE-2022-3606)
Instructions: In general, a standard system update will make all the necessary changes.
Red Hat
libbpf: heap-based buffer overflow (4 bytes) in __bpf_object__open
vendor_redhat·2022-01-01·CVSS 6.5
CVE-2021-45940 [MEDIUM] CWE-120 libbpf: heap-based buffer overflow (4 bytes) in __bpf_object__open
libbpf: heap-based buffer overflow (4 bytes) in __bpf_object__open
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).
A flaw was found in libbpf. The vulnerability occurs due to incorrect handling of memory in the __bpf_object__open function and leads to a heap-buffer-overflow. This flaw allows an attacker to execute unauthorized code or commands, read memory, or modify memory.
Statement: The default Red Hat Enterprise Linux kernel prevents unprivileged users from being able to use eBPF.That means to exploit this vulnerability it would require a privileged user with CAP_SYS_ADMIN or root making the severity of this vulnerability as low.
Package: libbpf (Red Hat Enterprise Linux 8) - Will no
Debian
CVE-2021-45940: libbpf - libbpf 0.6.0 and 0.6.1 has a heap-based buffer overflow (4 bytes) in __bpf_objec...
vendor_debian·2021·CVSS 6.5
CVE-2021-45940 [MEDIUM] CVE-2021-45940: libbpf - libbpf 0.6.0 and 0.6.1 has a heap-based buffer overflow (4 bytes) in __bpf_objec...
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).
Scope: local
bookworm: resolved (fixed in 0.7.0-2)
bullseye: open
forky: resolved (fixed in 0.7.0-2)
sid: resolved (fixed in 0.7.0-2)
trixie: resolved (fixed in 0.7.0-2)
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2022-01-01
Published