Home / Linux / Linux kernel / CVE-2021-3491
CVE-2021-3491: is it exploited, and which versions of Linux kernel are affected and fixed?
CVE-2021-3491 is an incorrect Calculation of Buffer Size vulnerability in Linux kernel. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 15:09 UTC). Affected: Linux kernel from trunk before v5.13-rc4, Linux kernel from linux-5.12.y before v5.12.4, Linux kernel from linux-5.11.y before v5.11.21 and 2 more (CVE record by canonical). Fixed in v5.13-rc4, v5.12.4, v5.11.21 and v5.10.37 (CVE record by canonical). Severity: High (7.8, CVSS 3.1, from canonical).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 15:09 UTC, CVE record November 28, 2026, 20:22 UTC and NVD November 19, 2026, 07:57 UTC.
What is CVE-2021-3491?
Linux kernel io_uring PROVIDE_BUFFERS MAX_RW_COUNT bypass
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).
From the CVE record by canonical, last updated September 16, 2024, 22:09 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Linux | Linux kernel | from trunk before v5.13-rc4 from linux-5.12.y before v5.12.4 from linux-5.11.y before v5.11.21 from linux-5.10.y before v5.10.37 from v5.7-rc1 through every 5.7 version | v5.13-rc4, v5.12.4, v5.11.21, v5.10.37 |
As the CVE record by canonical states it, last updated September 16, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| linux | linux kernel | from 5.7 before 5.10.37 | operating system |
| linux | linux kernel | from 5.11 before 5.11.21 | operating system |
| linux | linux kernel | from 5.12 before 5.12.4 | operating system |
| canonical | ubuntu linux | 20.04 | operating system |
| canonical | ubuntu linux | 20.10 | operating system |
| canonical | ubuntu linux | 21.04 | operating system |
NVD analysis (status Modified), last modified June 17, 2026, 04:05 UTC.
How severe is CVE-2021-3491?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H | canonical |
| High 8.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H | NVD |
| High 7.2 | CVSS 2.0 | AV:L/AC:L/Au:N/C:C/I:C/A:C | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-3491 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 0.64% probability of exploitation activity in the next 30 days, percentile 52.3 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
Where are the vendor advisories and references?
- https://ubuntu.com/security/notices/USN-4950-1 vendor-advisory, x_refsource_UBUNTU
- https://ubuntu.com/security/notices/USN-4949-1 vendor-advisory, x_refsource_UBUNTU
- [oss-security] CVE-2021-3491 - Linux kernel io_uring PROVIDE_BUFFERS MAX_RW_COUNT bypass mailing-list, x_refsource_MLIST
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d1f82808877bb10d3deee7cf3374a4eb3fb582db x_refsource_MISC
- https://www.zerodayinitiative.com/advisories/ZDI-21-589/ x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20210716-0004/ x_refsource_CONFIRM
Who found and reported it?
- Billy Jheng Bing-Jhong (@st424204) of STAR Labs working with Trend Micro's Zero Day Initiative (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- April 9, 2021
- Published
- June 4, 2021, 01:40 UTC
- CVE record updated
- September 16, 2024, 22:09 UTC by canonical
- NVD
- Modified, last modified June 17, 2026, 04:05 UTC
- Last checked
- CVE list November 28, 2026, 20:22 UTC; NVD November 19, 2026, 07:57 UTC; KEV December 3, 2026, 15:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect Linux kernel?
- Jan 30, 2023CVE-2023-0266 Linux Kernel: use after free exploited
- Jul 17, 2019CVE-2019-13272 Linux Kernel: n/a exploited
- Oct 4, 2017CVE-2017-1000253 Centos: memory corruption (buffer overflow) exploited
- Nov 10, 2016CVE-2016-5195 Canonical Ubuntu Linux: race condition exploited
- Jun 7, 2014CVE-2014-3153 Linux Kernel: n/a exploited
- May 7, 2014CVE-2014-0196 Linux Kernel: race condition exploited
- Nov 19, 2013CVE-2013-6282 Linux Kernel: improper input validation exploited
- May 14, 2013CVE-2013-2094 Linux Kernel: n/a exploited
Questions about CVE-2021-3491
Is CVE-2021-3491 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 15:09 UTC. FIRST's EPSS gives it a 0.64% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Linux kernel are affected by CVE-2021-3491?
Linux kernel from trunk before v5.13-rc4, Linux kernel from linux-5.12.y before v5.12.4, Linux kernel from linux-5.11.y before v5.11.21, Linux kernel from linux-5.10.y before v5.10.37 and Linux kernel from v5.7-rc1 through every 5.7 version, per the CVE record by canonical. The tables above give every range the sources list.
Which version fixes CVE-2021-3491?
v5.13-rc4, v5.12.4, v5.11.21 and v5.10.37, per the CVE record by canonical. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-3491?
High (7.8, CVSS 3.1, from canonical). The severity table above shows each score with its source.
Where is the official record of CVE-2021-3491?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.