CVE-2021-3491

published 4 Jun 2021 · updated 16 Sep 2024

Linux kernel io_uring PROVIDE_BUFFERS MAX_RW_COUNT bypass

7.8HighCVSS 7.8EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in Kernel v5.10.37, Kernel v5.11.21, Kernel v5.12.4 and 2 more.

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).

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel>=linux-5.10.y <v5.10.37, >=linux-5.11.y <v5.11.21, >=linux-5.12.y <v5.12.4, >=trunk <v5.13-rc4, >=v5.7-rc1 <5.7*v5.10.37, v5.11.21, v5.12.4, v5.13-rc4, 5.7*

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-3491 severity on Zeptric[![CVE-2021-3491](https://zeptric.io/badge/cve/CVE-2021-3491.svg)](https://zeptric.io/cve/CVE-2021-3491)