{"id":"CVE-2021-3491","published":"2021-06-04T01:40:20Z","modified":"2024-09-16T22:09:25Z","title":"Linux kernel io_uring PROVIDE_BUFFERS MAX_RW_COUNT bypass","vendor":"Linux","product":"Linux kernel","tier":"tail","description":{"text":"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).","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.00644,"percentile":0.51846,"provenance":"source"},"cwes":[{"id":"CWE-131","name":"Incorrect Calculation of Buffer Size"}],"references":[{"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://www.openwall.com/lists/oss-security/2021/05/11/13","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d1f82808877bb10d3deee7cf3374a4eb3fb582db","tags":["x_refsource_MISC"]},{"url":"https://www.zerodayinitiative.com/advisories/ZDI-21-589/","tags":["x_refsource_MISC"]},{"url":"https://security.netapp.com/advisory/ntap-20210716-0004/","tags":["x_refsource_CONFIRM"]}],"priority":{"score":15.8,"factors":[{"name":"EPSS percentile","points":10.37},{"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.7-rc1, < 5.7*"]}],"euvd":{"id":"EUVD-2021-26813","exploited":false,"provenance":"source"}}