CVE-2021-45940

libbpf: heap-based buffer overflow (4 bytes) in __bpf_object__open

Published Dec 31, 2021 CVSS 3.1 · 6.5 Medium EPSS 1.2% KEV · Not listed
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).

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2021-32649 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 USN Ubuntu USN USN-5759-1 LibBPF vulnerabilities
History

No history.

Weaknesses
  • CWE-120

    Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

  • CWE-131

    Incorrect Calculation of Buffer Size

  • CWE-787

    Out-of-bounds Write

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 4, 2024, 4:54 AM
Reserved
Dec 31, 2021, 12:00 AM
Status
Modified
Published
Jan 1, 2022, 1:15 AM
Modified
Jun 17, 2026, 4:14 AM
Severity
Low
Public date
Jan 1, 2022, 12:00 AM