Skip to main content
Network Thinking Solutions Logo

CVE-2021-3489

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.

All CVEs
CVE-2021-3489Published 6/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.

Vendor advisory
CVSS7.8High

Overview

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).

Published
6/4/2021
Last modified
6/17/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
≥ 5.8, < 5.10.37

Verify advisory

Source
linux kernel
linux
≥ 5.11, < 5.11.21

Verify advisory

Source
linux kernel
linux
≥ 5.12, < 5.12.4

Verify advisory

Source
linux kernel
linux
5.13

Verify advisory

Source
linux kernel
linux
5.13

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
ubuntu linux
canonical
20.04

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
ubuntu linux
canonical
20.10

Verify advisory

Source
ubuntu linux
canonical
21.04

Verify advisory

Source
Linux kernel
Linux
≥ trunk, < v5.13-rc4

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
Linux kernel
Linux
≥ linux-5.12.y, < v5.12.4

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
Linux kernel
Linux
≥ linux-5.11.y, < v5.11.21

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
Linux kernel
Linux
≥ linux-5.10.y, < v5.10.37

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
Linux kernel
Linux
≥ v5.8, < 5.8*

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 7.8. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.