{"schemaVersion":3,"id":"CVE-2021-3489","aliases":["UBUNTU-CVE-2021-3489","DEBIAN-CVE-2021-3489"],"status":"published","duplicateOf":null,"title":null,"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).","dates":{"published":"2021-06-04T01:40:19.351Z","modified":"2024-09-16T20:21:42.116Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","exploitability":2.8,"impact":10,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.2,"severity":"high","vector":"AV:L/AC:L/Au:N/C:C/I:C/A:C","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0055,"percentile":0.44791,"severity":"low","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.0055},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0055,"percentile":0.44791}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0055,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0055,"percentile":0.44791}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer","description":"The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/119.html"},{"id":"CWE-787","name":"Out-of-bounds Write","description":"The product writes data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/787.html"}],"affected":[{"vendor":"canonical","product":"ubuntu_linux","name":"ubuntu linux","label":"ubuntu_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"20.04","noFixRecorded":false,"fixedIn":null},{"text":"20.10","noFixRecorded":false,"fixedIn":null},{"text":"21.04","noFixRecorded":false,"fixedIn":null}],"versionsText":"20.04 | 20.10 | 21.04","eol":{"isEol":true,"eolDate":"2025-05-31T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"20.04","label":"20.04 'Focal Fossa' (LTS)","eolFrom":"2025-05-31T00:00:00.000Z","isLts":true,"isMaintained":true,"latestVersion":"20.04.6"},"product":{"name":"ubuntu","label":"Ubuntu","category":"os"}},"hubHref":"/vendor/canonical/ubuntu_linux"},{"vendor":"debian","product":"linux","name":"linux","label":"linux","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/linux","purlType":"deb","versions":[{"text":"< 5.10.38-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.10.38-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"linux-aws-5.0","name":"linux-aws-5.0","label":"linux-aws-5.0","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/linux-aws-5.0","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"linux-aws-5.3","name":"linux-aws-5.3","label":"linux-aws-5.3","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/linux-aws-5.3","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"linux-azure","name":"linux-azure","label":"linux-azure","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/linux-azure","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"linux-azure-5.3","name":"linux-azure-5.3","label":"linux-azure-5.3","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/linux-azure-5.3","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"linux-azure-edge","name":"linux-azure-edge","label":"linux-azure-edge","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/linux-azure-edge","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"linux-gcp","name":"linux-gcp","label":"linux-gcp","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/linux-gcp","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"linux-gcp-5.3","name":"linux-gcp-5.3","label":"linux-gcp-5.3","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/linux-gcp-5.3","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"linux-gcp-edge","name":"linux-gcp-edge","label":"linux-gcp-edge","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/linux-gcp-edge","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"linux-hwe","name":"linux-hwe","label":"linux-hwe","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/linux-hwe","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"linux-hwe-5.8","name":"linux-hwe-5.8","label":"linux-hwe-5.8","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/linux-hwe-5.8","purlType":"deb","versions":[{"text":"< 5.8.0-53.60~20.04.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.8.0-53.60~20.04.1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"linux-hwe-edge","name":"linux-hwe-edge","label":"linux-hwe-edge","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/linux-hwe-edge","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"linux-oem-5.10","name":"linux-oem-5.10","label":"linux-oem-5.10","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/linux-oem-5.10","purlType":"deb","versions":[{"text":"< 5.10.0-1026.27","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.10.0-1026.27","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"linux-oracle-5.0","name":"linux-oracle-5.0","label":"linux-oracle-5.0","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/linux-oracle-5.0","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"linux-oracle-5.3","name":"linux-oracle-5.3","label":"linux-oracle-5.3","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/linux-oracle-5.3","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"linux-raspi2","name":"linux-raspi2","label":"linux-raspi2","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/linux-raspi2","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"linux-riscv-5.8","name":"linux-riscv-5.8","label":"linux-riscv-5.8","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/linux-riscv-5.8","purlType":"deb","versions":[{"text":"< 5.8.0-25.27~20.04.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.8.0-25.27~20.04.1","eol":null,"hubHref":null},{"vendor":"linux","product":"linux_kernel","name":"linux kernel","label":"linux_kernel","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"≥ trunk, < v5.13-rc4","noFixRecorded":false,"fixedIn":null},{"text":"≥ linux-5.12.y, < v5.12.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ linux-5.11.y, < v5.11.21","noFixRecorded":false,"fixedIn":null},{"text":"≥ linux-5.10.y, < v5.10.37","noFixRecorded":false,"fixedIn":null},{"text":"≥ v5.8, < 5.8*","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.8, < 5.10.37","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.11, < 5.11.21","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.12, < 5.12.4","noFixRecorded":false,"fixedIn":null},{"text":"5.13","noFixRecorded":false,"fixedIn":null},{"text":"5.13:rc1","noFixRecorded":false,"fixedIn":null},{"text":"5.13:rc2","noFixRecorded":false,"fixedIn":null},{"text":"5.13:rc3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 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* | ≥ 5.8, < 5.10.37 | ≥ 5.11, < 5.11.21 | ≥ 5.12, < 5.12.4 | 5.13 | 5.13:rc1 | 5.13:rc2 | 5.13:rc3","eol":{"isEol":true,"eolDate":"2021-09-18T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"5.13","label":"5.13","eolFrom":"2021-09-18T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"5.13.19"},"product":{"name":"linux","label":"Linux Kernel","category":"os"}},"hubHref":"/vendor/linux/linux_kernel"}],"affectedCount":19,"eol":{"hasEol":true,"count":2},"references":[{"url":"https://www.openwall.com/lists/oss-security/2021/05/11/10","label":"www.openwall.com/lists/oss-security/2021/05/11/10","hostname":"www.openwall.com","tags":["Mailing List","X Refsource MLIST","REPORT","Third Party Advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git/commit/?id=4b81ccebaeee885ab1aa1438133f2991e3a2b6ea","label":"git.kernel.org/pub/…","hostname":"git.kernel.org","tags":["X Refsource MISC","REPORT","Patch","Vendor Advisory"]},{"url":"https://www.zerodayinitiative.com/advisories/ZDI-21-590/","label":"www.zerodayinitiative.com/advisories/ZDI-21-590/","hostname":"www.zerodayinitiative.com","tags":["X Refsource MISC","Third Party Advisory","VDB Entry"]},{"url":"https://ubuntu.com/security/notices/USN-4950-1","label":"ubuntu.com/security/notices/USN-4950-1","hostname":"ubuntu.com","tags":["Vendor Advisory","X Refsource UBUNTU","Advisory","Third Party Advisory"]},{"url":"https://ubuntu.com/security/notices/USN-4949-1","label":"ubuntu.com/security/notices/USN-4949-1","hostname":"ubuntu.com","tags":["Vendor Advisory","X Refsource UBUNTU","Advisory","Third Party Advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20210716-0004/","label":"security.netapp.com/advisory/ntap-20210716-0004/","hostname":"security.netapp.com","tags":["X Refsource CONFIRM","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-3489","label":"ubuntu.com/security/CVE-2021-3489","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-4948-1","label":"ubuntu.com/security/notices/USN-4948-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3489","label":"www.cve.org/CVERecord?id=CVE-2021-3489","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-3489","label":"security-tracker.debian.org/tracker/CVE-2021-3489","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2021:1975-1","OPENSUSE-SU-2021:1977-1","OPENSUSE-SU-2024:10728-1","OPENSUSE-SU-2024:13704-1","RHSA-2021:4140","RHSA-2021:4356","SUSE-SU-2021:1975-1","SUSE-SU-2021:1977-1","SUSE-SU-2021:2198-1","USN-4948-1","USN-4949-1"],"duplicates":[],"related":["OPENSUSE-SU-2021:1975-1","OPENSUSE-SU-2021:1977-1","OPENSUSE-SU-2024:10728-1","OPENSUSE-SU-2024:13704-1","SUSE-SU-2021:1975-1","SUSE-SU-2021:1977-1","SUSE-SU-2021:2198-1","USN-4948-1","USN-4949-1"]},"timeline":[{"kind":"published","date":"2021-06-04T01:40:19.351Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-16T20:21:42.116Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":31,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T04:43:29.372Z","stale":false,"partial":false}}