{"id":"CVE-2021-45940","aliases":["BIT-bpftool-2021-45940","DEBIAN-CVE-2021-45940","EUVD-2021-32649","GHSA-5jr4-6rxr-3x73","openSUSE-SU-2024:12491-1"],"status":"published","title":"libbpf 0.6.0 and 0.6.1 has a heap-based buffer overflow (4 bytes) in __bpf_object__open (called...","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).","severity":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.0125,"percentile":0.69609,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-787"],"published":"2021-12-31T23:57:22Z","modified":"2026-10-24T10:30:52Z","fixes":[{"ecosystem":"Debian:12","package":"libbpf","fixed_in":["0.7.0-2"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"libbpf","fixed_in":["0.7.0-2"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"libbpf","fixed_in":["0.7.0-2"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Bitnami","package":"bpftool","ranges":[{"type":"SEMVER","events":[{"introduced":"0.6.0"},{"last_affected":"0.6.0"},{"introduced":"0.6.1"},{"last_affected":"0.6.1"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"libbpf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.7.0-2"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"libbpf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.7.0-2"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"libbpf","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.7.0-2"}]}]}],"products":[{"vendor":"libbpf_project","product":"libbpf"}],"references":[{"url":"https://github.com/google/oss-fuzz-vulns/blob/main/vulns/libbpf/OSV-2021-1562.yaml","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","web","evidence"]},{"url":"https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40868","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Third Party Advisory","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-45940"},{"url":"https://github.com/advisories/GHSA-5jr4-6rxr-3x73"},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-45940","tags":["advisory"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2021-45940","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-3533","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-3534","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-3606","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2021-45940","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).","status":"published","published":"2021-12-31T23:57:22Z","modified":"2024-08-04T04:54:31.067Z","updated_at":"2026-11-02T14:33:02.580561Z"}],"euvd":[{"id":"EUVD-2021-32649","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).","status":"published","published":"2021-12-31T23:57:22Z","modified":"2024-08-04T04:54:31Z","updated_at":"2026-11-03T03:08:25.222984Z"}],"ghsa":[{"id":"GHSA-5jr4-6rxr-3x73","title":"libbpf 0.6.0 and 0.6.1 has a heap-based buffer overflow (4 bytes) in __bpf_object__open (called...","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).","status":"published","published":"2022-01-02T00:00:48Z","modified":"2023-02-03T05:03:39Z","cwes":["CWE-787"],"updated_at":"2026-11-02T14:53:24.247018Z"}],"nvd":[{"id":"CVE-2021-45940","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).","status":"published","published":"2022-01-01T01:15:08.94Z","modified":"2026-06-17T04:14:17.33Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:07:02.977492Z"}],"osv":[{"id":"CVE-2021-45940","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).","status":"published","published":"2022-01-01T01:15:08.94Z","modified":"2026-10-24T10:30:52.143990122Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:44:22.18434Z"},{"id":"DEBIAN-CVE-2021-45940","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).","status":"published","published":"2022-01-01T01:15:08.94Z","modified":"2026-10-23T18:04:17.600399207Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:45:35.799676Z"},{"id":"BIT-bpftool-2021-45940","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).","status":"published","published":"2024-07-01T11:10:09.996Z","modified":"2024-07-01T12:27:27.515102Z","updated_at":"2026-11-02T15:28:28.70813Z"},{"id":"openSUSE-SU-2024:12491-1","title":"libbpf-devel-1.0.1-2.1 on GA media","description":"These are all security issues fixed in the libbpf-devel-1.0.1-2.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T04:00:20.813825Z","updated_at":"2026-11-02T16:58:35.751245Z"}]}}
