CVE-2021-3489
HighThe 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).
CVSS 3.1 score
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness type
CWE-119CVE-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.
References
6 total-
Patch Vendor Advisory
-
Third Party Advisory
-
Ubuntu Securityhttps://ubuntu.com/security/notices/USN-4949-1Third Party Advisory
-
Ubuntu Securityhttps://ubuntu.com/security/notices/USN-4950-1Third Party Advisory
-
Mailing List Third Party Advisory
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.