{"id":"CVE-2021-45940","aliases":["CVE-2021-45940","BIT-BPFTOOL-2021-45940"],"related":[],"kind":"vulnerability","state":"published","title":"libbpf 0.6.0 and 0.6.1 has a heap-based buffer overflow (4 bytes) in bpfobjectopen (called from bpfobjectopenmem and bpf-object-fuzzer.c).","summary":"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).","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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).","source":"cvelist"},{"lang":"es","text":"libbpf versiones 0.6.0 y 0.6.1, presenta un desbordamiento de búfer en la región heap de la memoria (4 bytes) en la función __bpf_object__open (llamado desde bpf_object__open_mem y bpf-object-fuzzer.c).","source":"nvd"}],"published":"2021-12-31T23:57:22.000Z","modified":"2026-06-17T04:14:17.330Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:N/A:P","score":4.3,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-787"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"status":"affected","version":"0.6.0"},{"status":"affected","version":"0.6.1"}],"vendor":"libbpf_project","product":"libbpf","cpe":"cpe:2.3:a:libbpf_project:libbpf:0.6.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0.6.0","status":"affected","lastAffected":"0.6.0"},{"type":"semver","introduced":"0.6.1","status":"affected","lastAffected":"0.6.1"}],"ecosystem":"Bitnami","package":"bpftool","purl":"pkg:bitnami/bpftool","source":"bitnami"}],"references":[{"url":"https://github.com/google/oss-fuzz-vulns/blob/main/vulns/libbpf/OSV-2021-1562.yaml","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40868","tags":["exploit","issue-tracking","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-45940","url":"https://www.cve.org/CVERecord?id=CVE-2021-45940","licence":"CVE Terms of Use","modified":"2024-08-04T04:54:31.067Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-45940","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-45940","licence":"Public domain","modified":"2026-06-17T04:14:17.330Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-BPFTOOL-2021-45940","url":"https://osv.dev/vulnerability/BIT-BPFTOOL-2021-45940","licence":"Apache-2.0","modified":"2024-07-01T12:27:27.515Z"}],"updatedAt":"2026-11-25T22:58:06.321Z","epss":{"score":0.0125,"percentile":0.70242,"date":"2026-12-01T12:00:22.000Z"}}