CVE-2021-3491
highpriority · track · 35EPSS 0.006 · 51 %ileEURUUSEPSS · scored 2026-10-27
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).
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (25)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- PUB-A-1908771002021-09-01vendor · osvUS
In io_add_buffers of io_uring.c, there is a possible out of bounds write due to an incorrect bounds check. This could lead to local escalation of privilege with System execution privileges needed. User interaction is not needed for exploitation.
also known as (5)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (27)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/cve-2021-3491cnnvd
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d1f82808877bb10d3deee7cf3374a4eb3fb582dbcnnvd
- https://packetstormsecurity.com/files/162548/Ubuntu-Security-Notice-USN-4950-1.htmlcnnvd
- https://security.netapp.com/advisory/ntap-20210716-0004/cnnvd
- https://ubuntu.com/security/CVE-2021-3491Patchcnnvd
- https://ubuntu.com/security/notices/USN-4949-1cnnvd
- https://ubuntu.com/security/notices/USN-4950-1cnnvd
- https://vigilance.fr/vulnerability/Linux-kernel-buffer-overflow-via-MAX-RW-COUNT-35396cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan