CVE-2021-3489

High

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

Package Linux Kernel
Published 2021-06-04
Last modified 2024-11-21
CVSS version 3.1
Patch available
Yes

CVSS 3.1 score

7.8

out of 10
High
Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Weakness type

CWE-119

CVE-2021-3489 is a Buffer Overflow vulnerability

What is Buffer Overflow?

The product performs operations on a memory buffer but reads or writes outside its intended boundaries. Learn more on MITRE CWE

Affected versions

Linux kernel versions trunk, linux-5.12.y, linux-5.11.y, linux-5.10.y, v5.8 and later are affected. Fixed in v5.13-rc4, v5.12.4, v5.11.21, v5.10.37, 5.8* and their respective stable series.

Affected from
≥ trunk ≥ linux-5.12.y ≥ linux-5.11.y ≥ linux-5.10.y ≥ v5.8
Fixed in
✓ v5.13-rc4 ✓ v5.12.4 v5.12.x ✓ v5.11.21 v5.11.x ✓ v5.10.37 v5.10.x ✓ 5.8*

Frequently asked questions

  • What is CVE-2021-3489?

    CVE-2021-3489 is a High severity Linux kernel vulnerability with a CVSS score of 7.8 out of 10 , classified as a Buffer Overflow flaw (CWE-119) . It affects Linux kernel versions from trunk onward and has been patched in v5.13-rc4, v5.12.4, v5.11.21 and others. CVE-2021-3489 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.

  • What is the CVSS score for CVE-2021-3489?

    CVE-2021-3489 has a CVSS score of 7.8 out of 10, rated High severity (CVSS 3.1). The vector string is CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H .

  • Is there a patch available for CVE-2021-3489?

    Yes. CVE-2021-3489 has been patched. Fixed versions include v5.13-rc4, v5.12.4, v5.11.21 and others. If you are running Linux kernel trunk or later up to the fix versions, apply the relevant patch for your kernel branch.

  • Is CVE-2021-3489 actively exploited?

    No. CVE-2021-3489 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.