{"id":"CVE-2021-3489","aliases":["CVE-2021-3489"],"related":[],"kind":"vulnerability","state":"published","title":"Linux kernel eBPF RINGBUF map oversized allocation","summary":"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).","summarySource":"cvelist","descriptions":[{"lang":"en","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).","source":"cvelist"},{"lang":"es","text":"La función eBPF RINGBUF bpf_ringbuf_reserve() del kernel de Linux no comprobaba que el tamaño asignado fuera menor que el tamaño del ringbuf, lo que permitía a un atacante realizar escrituras fuera de los límites del kernel y, por tanto, la ejecución de código arbitrario. Este problema se solucionó a través del commit 4b81ccebaeee (\"bpf, ringbuf: Deny reserve of buffers larger than ringbuf\") (v5.13-rc4) y se retroalimentó a los kernels estables en versiones v5.12.4, v5.11.21 y v5.10.37. Se introdujo a través de 457f44363a88 (\"bpf: Implementar búfer de anillo BPF y soporte de verificador para ello\") (v5.8-rc1)","source":"nvd"}],"published":"2021-06-04T01:40:19.351Z","modified":"2026-06-17T04:05:11.590Z","severity":{"scorer":"canonical","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"canonical","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:L/AC:L/Au:N/C:C/I:C/A:C","score":7.2,"rating":"HIGH"}],"cwes":["CWE-119","CWE-787"],"affected":[{"ranges":[{"type":"custom","introduced":"trunk","fixed":"v5.13-rc4","status":"affected"},{"type":"custom","introduced":"linux-5.12.y","fixed":"v5.12.4","status":"affected"},{"type":"custom","introduced":"linux-5.11.y","fixed":"v5.11.21","status":"affected"},{"type":"custom","introduced":"linux-5.10.y","fixed":"v5.10.37","status":"affected"},{"type":"custom","introduced":"v5.8","fixed":"5.8*","status":"affected"}],"vendor":"Linux","product":"Linux kernel","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.8","fixed":"5.10.37"},{"status":"affected","introduced":"5.11","fixed":"5.11.21"},{"status":"affected","introduced":"5.12","fixed":"5.12.4"},{"status":"affected","version":"5.13"},{"status":"affected","version":"5.13"},{"status":"affected","version":"5.13"},{"status":"affected","version":"5.13"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"20.04"},{"status":"affected","version":"20.10"},{"status":"affected","version":"21.04"}],"vendor":"canonical","product":"ubuntu_linux","cpe":"cpe:2.3:o:canonical:ubuntu_linux:20.04:*:*:*:lts:*:*:*","source":"nvd"}],"references":[{"url":"https://www.openwall.com/lists/oss-security/2021/05/11/10","tags":["mailing-list","third-party-advisory","x-refsource-mlist","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git/commit/?id=4b81ccebaeee885ab1aa1438133f2991e3a2b6ea","tags":["patch","vendor-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.zerodayinitiative.com/advisories/ZDI-21-590/","tags":["third-party-advisory","vdb-entry","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://ubuntu.com/security/notices/USN-4950-1","tags":["third-party-advisory","vendor-advisory","x-refsource-ubuntu","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://ubuntu.com/security/notices/USN-4949-1","tags":["third-party-advisory","vendor-advisory","x-refsource-ubuntu","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20210716-0004/","tags":["third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]}],"credits":["Ryota Shiga (@Ga_ryo_) of Flatt Security working with Trend Micro's Zero Day Initiative"],"assigner":"canonical","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-3489","url":"https://www.cve.org/CVERecord?id=CVE-2021-3489","licence":"CVE Terms of Use","modified":"2024-09-16T20:21:42.116Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-3489","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3489","licence":"Public domain","modified":"2026-06-17T04:05:11.590Z"}],"updatedAt":"2026-11-25T22:58:01.643Z","epss":{"score":0.0055,"percentile":0.47388,"date":"2026-12-01T12:00:22.000Z"}}