{"api_version":"1","generated_at":"2026-04-23T02:37:24+00:00","cve":"CVE-2021-3491","urls":{"html":"https://cve.report/CVE-2021-3491","api":"https://cve.report/api/cve/CVE-2021-3491.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-3491","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-3491"},"summary":{"title":"CVE-2021-3491","description":"The io_uring subsystem in the Linux kernel allowed the MAX_RW_COUNT limit to be bypassed in the PROVIDE_BUFFERS operation, which led to negative values being usedin mem_rw when reading /proc/<PID>/mem. This could be used to create a heap overflow leading to arbitrary code execution in the kernel. It was addressed via commit d1f82808877b (\"io_uring: truncate lengths larger than MAX_RW_COUNT on provide buffers\") (v5.13-rc1) and backported to the stable kernels in v5.12.4, v5.11.21, and v5.10.37. It was introduced in ddf0322db79c (\"io_uring: add IORING_OP_PROVIDE_BUFFERS\") (v5.7-rc1).","state":"PUBLIC","assigner":"security@ubuntu.com","published_at":"2021-06-04 02:15:00","updated_at":"2021-09-14 14:31: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-589/","name":"https://www.zerodayinitiative.com/advisories/ZDI-21-589/","refsource":"MISC","tags":[],"title":"ZDI-21-589 | Zero Day Initiative","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d1f82808877bb10d3deee7cf3374a4eb3fb582db","name":"https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d1f82808877bb10d3deee7cf3374a4eb3fb582db","refsource":"MISC","tags":[],"title":"kernel/git/torvalds/linux.git - Linux kernel source tree","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.openwall.com/lists/oss-security/2021/05/11/13","name":"[oss-security] CVE-2021-3491 - Linux kernel io_uring PROVIDE_BUFFERS MAX_RW_COUNT  bypass","refsource":"MLIST","tags":[],"title":"oss-security - CVE-2021-3491 - Linux kernel io_uring PROVIDE_BUFFERS MAX_RW_COUNT\n bypass","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3491","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3491","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"Billy Jheng Bing-Jhong (@st424204) of STAR Labs working with Trend Micro's Zero Day Initiative","lang":""}],"nvd_cpes":[{"cve_year":"2021","cve_id":"3491","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":"3491","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":"3491","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":"3491","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"linux","cpe5":"linux_kernel","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-3491","qid":"179949","title":"Debian Security Update for linux (CVE-2021-3491)"},{"cve":"CVE-2021-3491","qid":"198365","title":"Ubuntu Security Notification for Linux kernel (OEM) vulnerabilities (USN-4948-1)"},{"cve":"CVE-2021-3491","qid":"198366","title":"Ubuntu Security Notification for Linux kernel vulnerabilities (USN-4949-1)"},{"cve":"CVE-2021-3491","qid":"198367","title":"Ubuntu Security Notification for Linux kernel vulnerabilities (USN-4950-1)"},{"cve":"CVE-2021-3491","qid":"281159","title":"Fedora Security Update for kernel (FEDORA-2021-05152dbcf5)"},{"cve":"CVE-2021-3491","qid":"281160","title":"Fedora Security Update for kernel (FEDORA-2021-286375de1e)"},{"cve":"CVE-2021-3491","qid":"353158","title":"Amazon Linux Security Advisory for kernel : ALAS2KERNEL-5.10-2022-002"},{"cve":"CVE-2021-3491","qid":"353159","title":"Amazon Linux Security Advisory for kernel : ALAS2KERNEL-5.10-2022-001"},{"cve":"CVE-2021-3491","qid":"610362","title":"Google Pixel Android September 2021 Security Patch Missing"},{"cve":"CVE-2021-3491","qid":"6140097","title":"AWS Bottlerocket Security Update for kernel (GHSA-crg3-8994-x9c3)"},{"cve":"CVE-2021-3491","qid":"750117","title":"SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2021:1891-1)"},{"cve":"CVE-2021-3491","qid":"750118","title":"SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2021:1890-1)"},{"cve":"CVE-2021-3491","qid":"750121","title":"SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2021:1888-1)"},{"cve":"CVE-2021-3491","qid":"750125","title":"SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2021:1887-1)"},{"cve":"CVE-2021-3491","qid":"750126","title":"SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2021:1889-1)"},{"cve":"CVE-2021-3491","qid":"750139","title":"SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2021:1913-1)"},{"cve":"CVE-2021-3491","qid":"750140","title":"SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2021:1912-1)"},{"cve":"CVE-2021-3491","qid":"750171","title":"OpenSUSE Security Update for the Linux Kernel (openSUSE-SU-2021:0843-1)"},{"cve":"CVE-2021-3491","qid":"750650","title":"SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2021:1975-1)"},{"cve":"CVE-2021-3491","qid":"750652","title":"SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2021:1977-1)"},{"cve":"CVE-2021-3491","qid":"750741","title":"OpenSUSE Security Update for the Linux Kernel (openSUSE-SU-2021:0947-1)"},{"cve":"CVE-2021-3491","qid":"750762","title":"OpenSUSE Security Update for the Linux Kernel (openSUSE-SU-2021:1977-1)"},{"cve":"CVE-2021-3491","qid":"750766","title":"OpenSUSE Security Update for the Linux Kernel (openSUSE-SU-2021:1975-1)"},{"cve":"CVE-2021-3491","qid":"750864","title":"SUSE Enterprise Linux Security Update for the Linux Kernel (SUSE-SU-2021:2421-1)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security@ubuntu.com","DATE_PUBLIC":"2021-05-11 17:00:00 +0000","ID":"CVE-2021-3491","STATE":"PUBLIC","TITLE":"Linux kernel io_uring PROVIDE_BUFFERS MAX_RW_COUNT  bypass"},"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.7","version_value":"v5.7-rc1"}]}}]},"vendor_name":"Linux"}]}},"credit":[{"lang":"eng","value":"Billy Jheng Bing-Jhong (@st424204) of STAR Labs 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 io_uring subsystem in the Linux kernel allowed the MAX_RW_COUNT limit to be bypassed in the PROVIDE_BUFFERS operation, which led to negative values being usedin mem_rw when reading /proc/<PID>/mem. This could be used to create a heap overflow leading to arbitrary code execution in the kernel. It was addressed via commit d1f82808877b (\"io_uring: truncate lengths larger than MAX_RW_COUNT on provide buffers\") (v5.13-rc1) and backported to the stable kernels in v5.12.4, v5.11.21, and v5.10.37. It was introduced in ddf0322db79c (\"io_uring: add IORING_OP_PROVIDE_BUFFERS\") (v5.7-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-131 Incorrect Calculation of Buffer Size"}]}]},"references":{"reference_data":[{"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"},{"name":"[oss-security] CVE-2021-3491 - Linux kernel io_uring PROVIDE_BUFFERS MAX_RW_COUNT  bypass","refsource":"MLIST","url":"https://www.openwall.com/lists/oss-security/2021/05/11/13"},{"name":"https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d1f82808877bb10d3deee7cf3374a4eb3fb582db","refsource":"MISC","url":"https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d1f82808877bb10d3deee7cf3374a4eb3fb582db"},{"name":"https://www.zerodayinitiative.com/advisories/ZDI-21-589/","refsource":"MISC","url":"https://www.zerodayinitiative.com/advisories/ZDI-21-589/"},{"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:31:00","problem_types":["CWE-787"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"CHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH"},"exploitabilityScore":2,"impactScore":6},"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:*:*:*:*:*:*:*:*","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:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","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":"3491","Ordinal":"205740","Title":"CVE-2021-3491","CVE":"CVE-2021-3491","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"3491","Ordinal":"1","NoteData":"The io_uring subsystem in the Linux kernel allowed the MAX_RW_COUNT limit to be bypassed in the PROVIDE_BUFFERS operation, which led to negative values being usedin mem_rw when reading /proc/<PID>/mem. This could be used to create a heap overflow leading to arbitrary code execution in the kernel. It was addressed via commit d1f82808877b (\"io_uring: truncate lengths larger than MAX_RW_COUNT on provide buffers\") (v5.13-rc1) and backported to the stable kernels in v5.12.4, v5.11.21, and v5.10.37. It was introduced in ddf0322db79c (\"io_uring: add IORING_OP_PROVIDE_BUFFERS\") (v5.7-rc1).","Type":"Description","Title":null},{"CveYear":"2021","CveId":"3491","Ordinal":"2","NoteData":"2021-06-03","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"3491","Ordinal":"3","NoteData":"2021-07-16","Type":"Other","Title":"Modified"}]}}}