{"api_version":"1","generated_at":"2026-04-23T00:40:32+00:00","cve":"CVE-2021-3489","urls":{"html":"https://cve.report/CVE-2021-3489","api":"https://cve.report/api/cve/CVE-2021-3489.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-3489","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-3489"},"summary":{"title":"CVE-2021-3489","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).","state":"PUBLIC","assigner":"security@ubuntu.com","published_at":"2021-06-04 02:15:00","updated_at":"2021-09-14 14:30:00"},"problem_types":["CWE-787"],"metrics":[],"references":[{"url":"https://ubuntu.com/security/notices/USN-4950-1","name":"https://ubuntu.com/security/notices/USN-4950-1","refsource":"UBUNTU","tags":[],"title":"USN-4950-1: Linux kernel vulnerabilities | Ubuntu security notices | Ubuntu","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://ubuntu.com/security/notices/USN-4949-1","name":"https://ubuntu.com/security/notices/USN-4949-1","refsource":"UBUNTU","tags":[],"title":"USN-4949-1: Linux kernel vulnerabilities | Ubuntu security notices | Ubuntu","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://security.netapp.com/advisory/ntap-20210716-0004/","name":"https://security.netapp.com/advisory/ntap-20210716-0004/","refsource":"CONFIRM","tags":[],"title":"June 2021 Linux Kernel 5.12.4 Vulnerabilities in NetApp Products | NetApp Product Security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.zerodayinitiative.com/advisories/ZDI-21-590/","name":"https://www.zerodayinitiative.com/advisories/ZDI-21-590/","refsource":"MISC","tags":[],"title":"ZDI-21-590 | Zero Day Initiative","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.openwall.com/lists/oss-security/2021/05/11/10","name":"[oss-security] CVE-2021-3489 - Linux kernel eBPF RINGBUF map oversized allocation","refsource":"MLIST","tags":[],"title":"oss-security - CVE-2021-3489 - Linux kernel eBPF RINGBUF map oversized allocation","mime":"text/html","httpstatus":"200","archivestatus":"400"},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git/commit/?id=4b81ccebaeee885ab1aa1438133f2991e3a2b6ea","name":"https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git/commit/?id=4b81ccebaeee885ab1aa1438133f2991e3a2b6ea","refsource":"MISC","tags":[],"title":"kernel/git/bpf/bpf.git - BPF kernel tree","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3489","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3489","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"Ryota Shiga (@Ga_ryo_) of Flatt Security working with Trend Micro's Zero Day Initiative","lang":""}],"nvd_cpes":[{"cve_year":"2021","cve_id":"3489","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"20.04","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"lts","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"3489","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"20.10","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"3489","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"21.04","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"3489","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"linux","cpe5":"linux_kernel","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"3489","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"linux","cpe5":"linux_kernel","cpe6":"5.13","cpe7":"-","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"3489","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"linux","cpe5":"linux_kernel","cpe6":"5.13","cpe7":"rc1","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"3489","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"linux","cpe5":"linux_kernel","cpe6":"5.13","cpe7":"rc2","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"3489","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"linux","cpe5":"linux_kernel","cpe6":"5.13","cpe7":"rc3","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-3489","qid":"159492","title":"Oracle Enterprise Linux Security Update for kernel (ELSA-2021-4356)"},{"cve":"CVE-2021-3489","qid":"180029","title":"Debian Security Update for linux (CVE-2021-3489)"},{"cve":"CVE-2021-3489","qid":"198365","title":"Ubuntu Security Notification for Linux kernel (OEM) vulnerabilities (USN-4948-1)"},{"cve":"CVE-2021-3489","qid":"198366","title":"Ubuntu Security Notification for Linux kernel vulnerabilities (USN-4949-1)"},{"cve":"CVE-2021-3489","qid":"198367","title":"Ubuntu Security Notification for Linux kernel vulnerabilities (USN-4950-1)"},{"cve":"CVE-2021-3489","qid":"239816","title":"Red Hat Update for kernel security (RHSA-2021:4356)"},{"cve":"CVE-2021-3489","qid":"239879","title":"Red Hat Update for kernel-rt (RHSA-2021:4140)"},{"cve":"CVE-2021-3489","qid":"281159","title":"Fedora Security Update for kernel (FEDORA-2021-05152dbcf5)"},{"cve":"CVE-2021-3489","qid":"281160","title":"Fedora Security Update for kernel (FEDORA-2021-286375de1e)"},{"cve":"CVE-2021-3489","qid":"353158","title":"Amazon Linux Security Advisory for kernel : ALAS2KERNEL-5.10-2022-002"},{"cve":"CVE-2021-3489","qid":"353159","title":"Amazon Linux Security Advisory for kernel : ALAS2KERNEL-5.10-2022-001"},{"cve":"CVE-2021-3489","qid":"610372","title":"Google Pixel Android October 2021 Security Patch Missing"},{"cve":"CVE-2021-3489","qid":"6140192","title":"AWS Bottlerocket Security Update for kernel (GHSA-8j78-p9gc-hw4x)"},{"cve":"CVE-2021-3489","qid":"750650","title":"SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2021:1975-1)"},{"cve":"CVE-2021-3489","qid":"750652","title":"SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2021:1977-1)"},{"cve":"CVE-2021-3489","qid":"750762","title":"OpenSUSE Security Update for the Linux Kernel (openSUSE-SU-2021:1977-1)"},{"cve":"CVE-2021-3489","qid":"750766","title":"OpenSUSE Security Update for the Linux Kernel (openSUSE-SU-2021:1975-1)"},{"cve":"CVE-2021-3489","qid":"940265","title":"AlmaLinux Security Update for kernel (ALSA-2021:4356)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security@ubuntu.com","DATE_PUBLIC":"2021-05-11 17:00 +0000","ID":"CVE-2021-3489","STATE":"PUBLIC","TITLE":"Linux kernel eBPF RINGBUF map oversized allocation"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"Linux kernel","version":{"version_data":[{"version_affected":"<","version_name":"trunk","version_value":"v5.13-rc4"},{"version_affected":"<","version_name":"linux-5.12.y","version_value":"v5.12.4"},{"version_affected":"<","version_name":"linux-5.11.y","version_value":"v5.11.21"},{"version_affected":"<","version_name":"linux-5.10.y","version_value":"v5.10.37"},{"version_affected":">=","version_name":"5.8","version_value":"v5.8"}]}}]},"vendor_name":"Linux"}]}},"credit":[{"lang":"eng","value":"Ryota Shiga (@Ga_ryo_) of Flatt Security working with Trend Micro's Zero Day Initiative"}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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)."}]},"generator":{"engine":"Vulnogram 0.0.9"},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer"}]},{"description":[{"lang":"eng","value":"CWE-787 Out-of-bounds Write"}]}]},"references":{"reference_data":[{"name":"[oss-security] CVE-2021-3489 - Linux kernel eBPF RINGBUF map oversized allocation","refsource":"MLIST","url":"https://www.openwall.com/lists/oss-security/2021/05/11/10"},{"name":"https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git/commit/?id=4b81ccebaeee885ab1aa1438133f2991e3a2b6ea","refsource":"MISC","url":"https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git/commit/?id=4b81ccebaeee885ab1aa1438133f2991e3a2b6ea"},{"name":"https://www.zerodayinitiative.com/advisories/ZDI-21-590/","refsource":"MISC","url":"https://www.zerodayinitiative.com/advisories/ZDI-21-590/"},{"name":"https://ubuntu.com/security/notices/USN-4950-1","refsource":"UBUNTU","url":"https://ubuntu.com/security/notices/USN-4950-1"},{"name":"https://ubuntu.com/security/notices/USN-4949-1","refsource":"UBUNTU","url":"https://ubuntu.com/security/notices/USN-4949-1"},{"refsource":"CONFIRM","name":"https://security.netapp.com/advisory/ntap-20210716-0004/","url":"https://security.netapp.com/advisory/ntap-20210716-0004/"}]},"source":{"discovery":"EXTERNAL"}},"nvd":{"publishedDate":"2021-06-04 02:15:00","lastModifiedDate":"2021-09-14 14:30:00","problem_types":["CWE-787"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:L/AC:L/Au:N/C:C/I:C/A:C","accessVector":"LOCAL","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"COMPLETE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE","baseScore":7.2},"severity":"HIGH","exploitabilityScore":3.9,"impactScore":10,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:linux:linux_kernel:5.13:rc1:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:linux:linux_kernel:5.13:rc2:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"5.11.21","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.12","versionEndExcluding":"5.12.4","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:linux:linux_kernel:5.13:-:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:linux:linux_kernel:5.13:rc3:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"5.10.37","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:canonical:ubuntu_linux:20.04:*:*:*:lts:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:canonical:ubuntu_linux:20.10:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:canonical:ubuntu_linux:21.04:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"3489","Ordinal":"205738","Title":"CVE-2021-3489","CVE":"CVE-2021-3489","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"3489","Ordinal":"1","NoteData":"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).","Type":"Description","Title":null},{"CveYear":"2021","CveId":"3489","Ordinal":"2","NoteData":"2021-06-03","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"3489","Ordinal":"3","NoteData":"2021-07-16","Type":"Other","Title":"Modified"}]}}}