CVE-2021-3489
Linux eBPF Ringbuf Out-of-Bounds Write Vulnerability
Description
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).
INFO
Published Date :
June 4, 2021, 2:15 a.m.
Last Modified :
Sept. 14, 2021, 2:30 p.m.
Source :
[email protected]
Remotely Exploitable :
No
Impact Score :
5.9
Exploitability Score :
1.8
Public PoC/Exploit Available at Github
CVE-2021-3489 has a 1 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2021-3489
.
URL | Resource |
---|---|
https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git/commit/?id=4b81ccebaeee885ab1aa1438133f2991e3a2b6ea | Patch Vendor Advisory |
https://security.netapp.com/advisory/ntap-20210716-0004/ | Third Party Advisory |
https://ubuntu.com/security/notices/USN-4949-1 | Third Party Advisory |
https://ubuntu.com/security/notices/USN-4950-1 | Third Party Advisory |
https://www.openwall.com/lists/oss-security/2021/05/11/10 | Mailing List Third Party Advisory |
https://www.zerodayinitiative.com/advisories/ZDI-21-590/ | Third Party Advisory VDB Entry |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
eBPF学习
ebpf kernel kprobe tracepoint uprobe xdp
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2021-3489
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2021-3489
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
Modified Analysis by [email protected]
Sep. 14, 2021
Action Type Old Value New Value Changed Reference Type https://security.netapp.com/advisory/ntap-20210716-0004/ No Types Assigned https://security.netapp.com/advisory/ntap-20210716-0004/ Third Party Advisory -
CVE Modified by [email protected]
Jul. 16, 2021
Action Type Old Value New Value Added Reference https://security.netapp.com/advisory/ntap-20210716-0004/ [No Types Assigned] -
Reanalysis by [email protected]
Jun. 14, 2021
Action Type Old Value New Value Removed CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H -
Initial Analysis by [email protected]
Jun. 11, 2021
Action Type Old Value New Value Added CVSS V2 NIST (AV:L/AC:L/Au:N/C:C/I:C/A:C) Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H Changed Reference Type https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git/commit/?id=4b81ccebaeee885ab1aa1438133f2991e3a2b6ea No Types Assigned https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git/commit/?id=4b81ccebaeee885ab1aa1438133f2991e3a2b6ea Patch, Vendor Advisory Changed Reference Type https://ubuntu.com/security/notices/USN-4949-1 No Types Assigned https://ubuntu.com/security/notices/USN-4949-1 Third Party Advisory Changed Reference Type https://ubuntu.com/security/notices/USN-4950-1 No Types Assigned https://ubuntu.com/security/notices/USN-4950-1 Third Party Advisory Changed Reference Type https://www.openwall.com/lists/oss-security/2021/05/11/10 No Types Assigned https://www.openwall.com/lists/oss-security/2021/05/11/10 Mailing List, Third Party Advisory Changed Reference Type https://www.zerodayinitiative.com/advisories/ZDI-21-590/ No Types Assigned https://www.zerodayinitiative.com/advisories/ZDI-21-590/ Third Party Advisory, VDB Entry Added CWE NIST CWE-787 Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.8 up to (excluding) 5.10.37 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.11.21 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.12 up to (excluding) 5.12.4 *cpe:2.3:o:linux:linux_kernel:5.13:-:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:5.13:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:5.13:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:5.13:rc3:*:*:*:*:*:* Added CPE Configuration OR *cpe:2.3:o:canonical:ubuntu_linux:20.04:*:*:*:lts:*:*:* *cpe:2.3:o:canonical:ubuntu_linux:20.10:*:*:*:*:*:*:* *cpe:2.3:o:canonical:ubuntu_linux:21.04:*:*:*:*:*:*:*
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2021-3489
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2021-3489
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.05 }} 0.00%
score
0.14955
percentile