VDB

CVE-2021-3491

CVE-2021-3491 PUBLISHED CVSS 7.8 HIGH

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.

PackageEcosystemFixed in
linuxArch Linux5.12.4.arch1-1
linux-ltsArch Linux5.10.37-1
linux-hardenedArch Linux5.11.21.hardened1-1
linux-zenArch Linux5.12.4.zen1-1
linux-oem-5.10Ubuntu:20.04:LTS5.10.0-1026.27
linux_kernellinux5.12.4, 5.11.21, 5.10.37
linux-hwe-5.8Ubuntu:20.04:LTS5.8.0-53.60~20.04.1
linux-riscv-5.8Ubuntu:20.04:LTS5.8.0-25.27~20.04.1
Linux kernelLinux5.13-rc4, 5.12.4, 5.11.21, 5.10.37

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux kerneltrunk, linux-5.12.y, linux-5.11.y
archlinux0
archlinux-lts0
archlinux-hardened0
archlinux-zen0
LinuxLinux kernel5.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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›