{"id":"CVE-2021-3491","aliases":["CVE-2021-3491"],"related":[],"kind":"vulnerability","state":"published","title":"Linux kernel io_uring PROVIDE_BUFFERS MAX_RW_COUNT  bypass","summary":"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).","summarySource":"cvelist","descriptions":[{"lang":"en","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).","source":"cvelist"},{"lang":"es","text":"El subsistema io_uring del kernel de Linux permitía saltarse el límite MAX_RW_COUNT en la operación PROVIDE_BUFFERS, lo que llevaba a utilizar valores negativos en mem_rw al leer /proc//mem. Esto podía utilizarse para crear un desbordamiento de la pila que conducía a la ejecución de código arbitrario en el kernel. Se solucionó mediante el commit d1f82808877b (\"io_uring: truncate lengths larger than MAX_RW_COUNT on provide buffers\") (v5.13-rc1) y se retroalimentó a los kernels estables en versiones v5.12.4, v5.11.21 y v5.10.37. Se introdujo en ddf0322db79c (\"io_uring: add IORING_OP_PROVIDE_BUFFERS\") (v5.7-rc1).","source":"nvd"}],"published":"2021-06-04T01:40:20.936Z","modified":"2026-06-17T04:05:11.890Z","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:C/C:H/I:H/A:H","score":8.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-131","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.7-rc1","fixed":"5.7*","status":"affected"}],"vendor":"Linux","product":"Linux kernel","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.7","fixed":"5.10.37"},{"status":"affected","introduced":"5.11","fixed":"5.11.21"},{"status":"affected","introduced":"5.12","fixed":"5.12.4"}],"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://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://www.openwall.com/lists/oss-security/2021/05/11/13","tags":["mailing-list","patch","third-party-advisory","x-refsource-mlist","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d1f82808877bb10d3deee7cf3374a4eb3fb582db","tags":["patch","vendor-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.zerodayinitiative.com/advisories/ZDI-21-589/","tags":["third-party-advisory","vdb-entry","x-refsource-misc","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":["Billy Jheng Bing-Jhong (@st424204) of STAR Labs working with Trend Micro's Zero Day Initiative"],"assigner":"canonical","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-3491","url":"https://www.cve.org/CVERecord?id=CVE-2021-3491","licence":"CVE Terms of Use","modified":"2024-09-16T22:09:25.883Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-3491","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3491","licence":"Public domain","modified":"2026-06-17T04:05:11.890Z"}],"updatedAt":"2026-11-25T22:58:01.644Z","epss":{"score":0.00644,"percentile":0.52212,"date":"2026-12-01T12:00:22.000Z"}}