CVE-2021-3489

Summary

CVECVE-2021-3489
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2021-06-04 02:15:00 UTC
Updated2021-09-14 14:30:00 UTC
DescriptionThe 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).

Risk And Classification

Problem Types: CWE-787

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Canonical Ubuntu Linux 20.04 All All All
Operating System Canonical Ubuntu Linux 20.10 All All All
Operating System Canonical Ubuntu Linux 21.04 All All All
Operating System Linux Linux Kernel All All All All
Operating System Linux Linux Kernel 5.13 - All All
Operating System Linux Linux Kernel 5.13 rc1 All All
Operating System Linux Linux Kernel 5.13 rc2 All All
Operating System Linux Linux Kernel 5.13 rc3 All All

References

ReferenceSourceLinkTags
USN-4950-1: Linux kernel vulnerabilities | Ubuntu security notices | Ubuntu UBUNTU ubuntu.com
USN-4949-1: Linux kernel vulnerabilities | Ubuntu security notices | Ubuntu UBUNTU ubuntu.com
June 2021 Linux Kernel 5.12.4 Vulnerabilities in NetApp Products | NetApp Product Security CONFIRM security.netapp.com
ZDI-21-590 | Zero Day Initiative MISC www.zerodayinitiative.com
oss-security - CVE-2021-3489 - Linux kernel eBPF RINGBUF map oversized allocation MLIST www.openwall.com
kernel/git/bpf/bpf.git - BPF kernel tree MISC git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

Discovery Credit

LEGACY: Ryota Shiga (@Ga_ryo_) of Flatt Security working with Trend Micro's Zero Day Initiative

Legacy QID Mappings

  • 159492 Oracle Enterprise Linux Security Update for kernel (ELSA-2021-4356)
  • 180029 Debian Security Update for linux (CVE-2021-3489)
  • 198365 Ubuntu Security Notification for Linux kernel (OEM) vulnerabilities (USN-4948-1)
  • 198366 Ubuntu Security Notification for Linux kernel vulnerabilities (USN-4949-1)
  • 198367 Ubuntu Security Notification for Linux kernel vulnerabilities (USN-4950-1)
  • 239816 Red Hat Update for kernel security (RHSA-2021:4356)
  • 239879 Red Hat Update for kernel-rt (RHSA-2021:4140)
  • 281159 Fedora Security Update for kernel (FEDORA-2021-05152dbcf5)
  • 281160 Fedora Security Update for kernel (FEDORA-2021-286375de1e)
  • 353158 Amazon Linux Security Advisory for kernel : ALAS2KERNEL-5.10-2022-002
  • 353159 Amazon Linux Security Advisory for kernel : ALAS2KERNEL-5.10-2022-001
  • 610372 Google Pixel Android October 2021 Security Patch Missing
  • 6140192 AWS Bottlerocket Security Update for kernel (GHSA-8j78-p9gc-hw4x)
  • 750650 SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2021:1975-1)
  • 750652 SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2021:1977-1)
  • 750762 OpenSUSE Security Update for the Linux Kernel (openSUSE-SU-2021:1977-1)
  • 750766 OpenSUSE Security Update for the Linux Kernel (openSUSE-SU-2021:1975-1)
  • 940265 AlmaLinux Security Update for kernel (ALSA-2021:4356)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report