CVE-2021-45941 Memory corruption in n/a
A heap-based buffer overflow in libbpf allows attackers to execute arbitrary code or cause denial of service via crafted BPF objects.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2021-45941?
CVE-2021-45941 is a medium-severity memory corruption vulnerability in n/a, published on 31 Dec 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
libbpf 0.6.0 and 0.6.1 has a heap-based buffer overflow (8 bytes) in __bpf_object__open (called from bpf_object__open_mem and bpf-object-fuzzer.c).
Weakness: CWE-787
Which versions are affected by CVE-2021-45941?
1 open source package ship an affected version, including bpftool. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
bpftool Bitnami | From 0.6.0 to 0.6.0 | None |
Products include Libbpf Project Libbpf.
How do I fix CVE-2021-45941?
Upgrade to a fixed version.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2021-45941 being exploited?
There is no known exploitation of CVE-2021-45941 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as BIT-bpftool-2021-45941, DEBIAN-CVE-2021-45941, GHSA-mjhv-hh5f-w838.