{"id":"CVE-2021-3489","published":"2021-06-04T01:40:19Z","modified":"2024-09-16T20:21:42Z","title":"Linux kernel eBPF RINGBUF map oversized allocation","vendor":"Linux","product":"Linux kernel","tier":"tail","description":{"text":"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).","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0055,"percentile":0.46899,"provenance":"source"},"cwes":[{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer"},{"id":"CWE-787","name":"Out-of-bounds Write"}],"references":[{"url":"https://www.openwall.com/lists/oss-security/2021/05/11/10","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git/commit/?id=4b81ccebaeee885ab1aa1438133f2991e3a2b6ea","tags":["x_refsource_MISC"]},{"url":"https://www.zerodayinitiative.com/advisories/ZDI-21-590/","tags":["x_refsource_MISC"]},{"url":"https://ubuntu.com/security/notices/USN-4950-1","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"https://ubuntu.com/security/notices/USN-4949-1","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"https://security.netapp.com/advisory/ntap-20210716-0004/","tags":["x_refsource_CONFIRM"]}],"priority":{"score":14.8,"factors":[{"name":"EPSS percentile","points":9.38},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux kernel","versions":[">= trunk, < v5.13-rc4",">= linux-5.12.y, < v5.12.4",">= linux-5.11.y, < v5.11.21",">= linux-5.10.y, < v5.10.37",">= v5.8, < 5.8*"]}],"euvd":{"id":"EUVD-2021-26811","exploited":false,"provenance":"source"}}