CVE-2021-3489
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux | Arch Linux | 5.12.4.arch1-1 |
| linux-lts | Arch Linux | 5.10.37-1 |
| linux-zen | Arch Linux | 5.12.4.zen1-1 |
| linux-hardened | Arch Linux | 5.11.21.hardened1-1 |
| linux_kernel | linux | 5.12.4, 5.11.21, 5.10.37 |
| Linux kernel | Linux | 5.13-rc4, 5.12.4, 5.11.21, 5.10.37 |
| linux-hwe-5.8 | Ubuntu:20.04:LTS | 5.8.0-53.60~20.04.1 |
| linux-oem-5.10 | Ubuntu:20.04:LTS | 5.10.0-1026.27 |
| linux-riscv-5.8 | Ubuntu:20.04:LTS | 5.8.0-25.27~20.04.1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux kernel | trunk, linux-5.12.y, linux-5.11.y |
| arch | linux | 0 |
| Linux | Linux kernel | 5.8, 5.12.y, 5.11.y |
| arch | linux-lts | 0 |
| arch | linux-zen | 0 |
| arch | linux-hardened | 0 |
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
- [oss-security] CVE-2021-3489 - Linux kernel eBPF RINGBUF map oversized allocation mailing-listx_refsource_MLIST
- x_refsource_MISC
- x_refsource_MISC
- vendor-advisoryx_refsource_UBUNTU
- vendor-advisoryx_refsource_UBUNTU
- x_refsource_CONFIRM