VDB

CVE-2021-3489

CVE-2021-3489 PUBLISHED CVSS 7.8 HIGH

Linux kernel eBPF RINGBUF map oversized allocation

Reported by canonical · Published June 4, 2021

The eBPF RINGBUF bpf_ringbuf_reserve() function in the Linux kernel did not check that the allocated size was smaller than the ringbuf size, allowing an attacker to perform out-of-bounds writes within the kernel and therefore, arbitrary code execution. This issue was fixed via commit 4b81ccebaeee ("bpf, ringbuf: Deny reserve of buffers larger than ringbuf") (v5.13-rc4) and backported to the stable kernels in v5.12.4, v5.11.21, and v5.10.37. It was introduced via 457f44363a88 ("bpf: Implement BPF ring buffer and verifier support for it") (v5.8-rc1).

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
linuxArch Linux5.12.4.arch1-1
linux-ltsArch Linux5.10.37-1
linux-zenArch Linux5.12.4.zen1-1
linux-hardenedArch Linux5.11.21.hardened1-1
linux_kernellinux5.12.4, 5.11.21, 5.10.37
Linux kernelLinux5.13-rc4, 5.12.4, 5.11.21, 5.10.37
linux-hwe-5.8Ubuntu:20.04:LTS5.8.0-53.60~20.04.1
linux-oem-5.10Ubuntu:20.04:LTS5.10.0-1026.27
linux-riscv-5.8Ubuntu:20.04:LTS5.8.0-25.27~20.04.1

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux kerneltrunk, linux-5.12.y, linux-5.11.y
archlinux0
LinuxLinux kernel5.8, 5.12.y, 5.11.y
archlinux-lts0
archlinux-zen0
archlinux-hardened0

Timeline

  • May 11, 2021 CVE Published
  • Jun 4, 2021 EPSS Score (30 in total, the first dated here)
  • Mar 28, 2025 PoC Published
  • Oct 24, 2025 CVE Updated
  • Mar 7, 2026 Distribution Patch (8 in total, the first dated here)
  • Mar 7, 2026 Security Advisory (12 in total, the first dated here)
  • Jul 29, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-3489
vulnetix vdb fixes CVE-2021-3489

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-3489/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›