{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-3491","id":"CVE-2021-3491","title":"Linux kernel io_uring PROVIDE_BUFFERS MAX_RW_COUNT  bypass","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 prov","descriptionLong":"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).","published":"2021-06-04T01:40:20.936Z","updated":"2026-06-17T04:05:11.890Z","reserved":"2021-04-09T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"canonical","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","rating":"high","source":"canonical"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","rating":"high","source":"canonical"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","rating":"high","source":"ubuntu.com"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"2.0","score":7.2,"vector":"AV:L/AC:L/Au:N/C:C/I:C/A:C","rating":"high","source":"NVD"}],"rating":"high","products":["Linux kernel"],"affectedProducts":[{"vendor":"Linux","product":"Linux kernel","defaultStatus":null,"versions":[{"lessThan":"v5.13-rc4","status":"affected","version":"trunk","versionType":"custom"},{"lessThan":"v5.12.4","status":"affected","version":"linux-5.12.y","versionType":"custom"},{"lessThan":"v5.11.21","status":"affected","version":"linux-5.11.y","versionType":"custom"},{"lessThan":"v5.10.37","status":"affected","version":"linux-5.10.y","versionType":"custom"},{"lessThan":"5.7*","status":"affected","version":"v5.7-rc1","versionType":"custom"}],"platforms":[]}],"packages":[],"cwes":["CWE-131","CWE-787"],"aliases":["A-190877100","PUB-A-190877100"],"references":[{"url":"https://ubuntu.com/security/notices/USN-4950-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","Third Party Advisory","advisory"]},{"url":"https://ubuntu.com/security/notices/USN-4949-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","Third Party Advisory","advisory"]},{"url":"https://www.openwall.com/lists/oss-security/2021/05/11/13","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Patch","Third Party Advisory","fix"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d1f82808877bb10d3deee7cf3374a4eb3fb582db","tags":["x_refsource_MISC","x_transferred","Patch","Vendor Advisory","fix"]},{"url":"https://www.zerodayinitiative.com/advisories/ZDI-21-589/","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","VDB Entry","advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20210716-0004/","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00644,"epssPercentile":0.51707,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-3491","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3491","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-3491","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-3491","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["linux-kernel"],"critical":[],"attention":null}