CVE-2021-3491
Linux kernel io_uring PROVIDE_BUFFERS MAX_RW_COUNT bypass
Reported by canonical · Published June 4, 2021
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).
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux | Arch Linux | 5.12.4.arch1-1 |
| linux-lts | Arch Linux | 5.10.37-1 |
| linux-hardened | Arch Linux | 5.11.21.hardened1-1 |
| linux-zen | Arch Linux | 5.12.4.zen1-1 |
| linux-oem-5.10 | Ubuntu:20.04:LTS | 5.10.0-1026.27 |
| linux_kernel | linux | 5.12.4, 5.11.21, 5.10.37 |
| linux-hwe-5.8 | Ubuntu:20.04:LTS | 5.8.0-53.60~20.04.1 |
| linux-riscv-5.8 | Ubuntu:20.04:LTS | 5.8.0-25.27~20.04.1 |
| Linux kernel | Linux | 5.13-rc4, 5.12.4, 5.11.21, 5.10.37 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux kernel | trunk, linux-5.12.y, linux-5.11.y |
| arch | linux | 0 |
| arch | linux-lts | 0 |
| arch | linux-hardened | 0 |
| arch | linux-zen | 0 |
| Linux | Linux kernel | 5.10.y, 5.7-rc1, * |
Timeline
- May 11, 2021 CVE Published
- Jun 4, 2021 EPSS Score (30 in total, the first dated here)
- Mar 28, 2025 PoC Published
- Oct 24, 2025 CVE Updated
- Mar 7, 2026 Distribution Patch (6 in total, the first dated here)
- Mar 7, 2026 Security Advisory (12 in total, the first dated here)
- Jul 29, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-3491
vulnetix vdb fixes CVE-2021-3491
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-3491/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- vendor-advisoryx_refsource_UBUNTU
- vendor-advisoryx_refsource_UBUNTU
- [oss-security] CVE-2021-3491 - Linux kernel io_uring PROVIDE_BUFFERS MAX_RW_COUNT bypass mailing-listx_refsource_MLIST
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_CONFIRM