# CVE-2021-47040: io_uring: fix overflows checks in provide buffers

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 19% of CVEs (2026-12-01)
- Published: 2024-02-28T08:13:46.557Z
- Modified: 2026-08-05T08:45:40.950Z
- Weaknesses: CWE-120
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

io_uring: fix overflows checks in provide buffers

Colin reported before possible overflow and sign extension problems in
io_provide_buffers_prep(). As Linus pointed out previous attempt did nothing
useful, see d81269fecb8ce ("io_uring: fix provide_buffers sign extension").

Do that with help of check_<op>_overflow helpers. And fix struct
io_provide_buf::len type, as it doesn't make much sense to keep it
signed.

(As written by CVE List.)

## Affected

- Linux Linux: from efe68c1ca8f49e8c06afd74b699411bfbb8ba1ff before cbbc13b115b8f18e0a714d89f87fbdc499acfe2d; from efe68c1ca8f49e8c06afd74b699411bfbb8ba1ff before 51bf90901952aaac564bbdb36b2b503050c53dd9; from efe68c1ca8f49e8c06afd74b699411bfbb8ba1ff before 84b8c266c4bfe9ed5128e13253c388deb74b1b03; from efe68c1ca8f49e8c06afd74b699411bfbb8ba1ff before 38134ada0ceea3e848fe993263c0ff6207fd46e7; 5.8 (not affected: before 5.8; from 5.10.37 up to 5.10.*; from 5.11.21 up to 5.11.*; from 5.12.4 up to 5.12.*; from 5.13 up to *)
- linux linux_kernel: from 5.8 before 5.10.37; from 5.11 before 5.11.21; from 5.12 before 5.12.4

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/cbbc13b115b8f18e0a714d89f87fbdc499acfe2d> (patch)
- <https://git.kernel.org/stable/c/51bf90901952aaac564bbdb36b2b503050c53dd9> (patch)
- <https://git.kernel.org/stable/c/84b8c266c4bfe9ed5128e13253c388deb74b1b03> (patch)
- <https://git.kernel.org/stable/c/38134ada0ceea3e848fe993263c0ff6207fd46e7> (patch)

## Sources

- CVE List: [CVE-2021-47040](https://www.cve.org/CVERecord?id=CVE-2021-47040), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2021-47040](https://nvd.nist.gov/vuln/detail/CVE-2021-47040), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2021-47040 · Whole record: https://cve.day/CVE-2021-47040.json · Rebuilt by cve.day 2026-11-25T22:58:08.628Z
