CVE-2021-45940Libbpf Project Libbpf
Medium 6.5 No auth needed
Follow: this CVE · Libbpf Project · Libbpf Project Libbpf We alert you by email or Slack (account required).
- Priority
- 54
- CVSS 3.1
- 6.5
- EPSS
- 1.2% probability of exploitation in 30 days · percentile 69
- Auth required
- No
- Published
- Jan 1, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-787
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
What happens
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).
What to do
- Apply the vendor's security update for Libbpf.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| libbpf_project | libbpf | 0.6.0 |
| libbpf_project | libbpf | 0.6.1 |
Official sources
References
Links published by the sources. Open them with care.
- bugs.chromium.org Exploit Issue Tracking Third Party Advisory
- github.com Exploit Third Party Advisory