Home / Linux / Linux kernel / CVE-2021-3489
CVE-2021-3489: is it exploited, and which versions of Linux kernel are affected and fixed?
CVE-2021-3489 is a memory corruption (buffer overflow) vulnerability in Linux kernel. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 11:38 UTC). Affected: Linux kernel from trunk before v5.13-rc4, Linux kernel from linux-5.12.y before v5.12.4, Linux kernel from linux-5.11.y before v5.11.21 and 2 more (CVE record by canonical). Fixed in v5.13-rc4, v5.12.4, v5.11.21 and v5.10.37 (CVE record by canonical). Severity: High (7.8, CVSS 3.1, from canonical).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 11:38 UTC, CVE record November 28, 2026, 20:22 UTC and NVD November 19, 2026, 07:57 UTC.
What is CVE-2021-3489?
Linux kernel eBPF RINGBUF map oversized allocation
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).
From the CVE record by canonical, last updated September 16, 2024, 20:21 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Linux | Linux kernel | from trunk before v5.13-rc4 from linux-5.12.y before v5.12.4 from linux-5.11.y before v5.11.21 from linux-5.10.y before v5.10.37 from v5.8 through every 5.8 version | v5.13-rc4, v5.12.4, v5.11.21, v5.10.37 |
As the CVE record by canonical states it, last updated September 16, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| linux | linux kernel | from 5.8 before 5.10.37 | operating system |
| linux | linux kernel | from 5.11 before 5.11.21 | operating system |
| linux | linux kernel | from 5.12 before 5.12.4 | operating system |
| linux | linux kernel | 5.13 | operating system |
| canonical | ubuntu linux | 20.04 | operating system |
| canonical | ubuntu linux | 20.10 | operating system |
| canonical | ubuntu linux | 21.04 | operating system |
NVD analysis (status Modified), last modified June 17, 2026, 04:05 UTC.
How severe is CVE-2021-3489?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H | canonical |
| High 7.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD |
| High 7.2 | CVSS 2.0 | AV:L/AC:L/Au:N/C:C/I:C/A:C | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-3489 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 0.55% probability of exploitation activity in the next 30 days, percentile 47.4 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
- CWE-787 Out-of-bounds Write
Where are the vendor advisories and references?
- [oss-security] CVE-2021-3489 - Linux kernel eBPF RINGBUF map oversized allocation mailing-list, x_refsource_MLIST
- https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git/commit/?id=4b81ccebaeee885ab1aa1438133f2991e3a2b6ea x_refsource_MISC
- https://www.zerodayinitiative.com/advisories/ZDI-21-590/ x_refsource_MISC
- https://ubuntu.com/security/notices/USN-4950-1 vendor-advisory, x_refsource_UBUNTU
- https://ubuntu.com/security/notices/USN-4949-1 vendor-advisory, x_refsource_UBUNTU
- https://security.netapp.com/advisory/ntap-20210716-0004/ x_refsource_CONFIRM
Who found and reported it?
- Ryota Shiga (@Ga_ryo_) of Flatt Security working with Trend Micro's Zero Day Initiative (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- April 9, 2021
- Published
- June 4, 2021, 01:40 UTC
- CVE record updated
- September 16, 2024, 20:21 UTC by canonical
- NVD
- Modified, last modified June 17, 2026, 04:05 UTC
- Last checked
- CVE list November 28, 2026, 20:22 UTC; NVD November 19, 2026, 07:57 UTC; KEV December 3, 2026, 11:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Linux kernel?
- Jan 30, 2023CVE-2023-0266 Linux Kernel: use after free exploited
- Jul 17, 2019CVE-2019-13272 Linux Kernel: n/a exploited
- Oct 4, 2017CVE-2017-1000253 Centos: memory corruption (buffer overflow) exploited
- Nov 10, 2016CVE-2016-5195 Canonical Ubuntu Linux: race condition exploited
- Jun 7, 2014CVE-2014-3153 Linux Kernel: n/a exploited
- May 7, 2014CVE-2014-0196 Linux Kernel: race condition exploited
- Nov 19, 2013CVE-2013-6282 Linux Kernel: improper input validation exploited
- May 14, 2013CVE-2013-2094 Linux Kernel: n/a exploited
Questions about CVE-2021-3489
Is CVE-2021-3489 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 11:38 UTC. FIRST's EPSS gives it a 0.55% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Linux kernel are affected by CVE-2021-3489?
Linux kernel from trunk before v5.13-rc4, Linux kernel from linux-5.12.y before v5.12.4, Linux kernel from linux-5.11.y before v5.11.21, Linux kernel from linux-5.10.y before v5.10.37 and Linux kernel from v5.8 through every 5.8 version, per the CVE record by canonical. The tables above give every range the sources list.
Which version fixes CVE-2021-3489?
v5.13-rc4, v5.12.4, v5.11.21 and v5.10.37, per the CVE record by canonical. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-3489?
High (7.8, CVSS 3.1, from canonical). The severity table above shows each score with its source.
Where is the official record of CVE-2021-3489?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.