CVE-2021-47040
JSON

7.8high

io_uring: fix overflows checks in provide buffers

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.26% (higher than 19% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelfrom 5.8 before 5.10.37, from 5.11 before 5.11.21, from 5.12 before 5.12.4NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-120

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se resolvió la siguiente vulnerabilidad: io_uring: soluciona comprobaciones de desbordamiento en los buffers de suministro que Colin informó antes de posibles problemas de desbordamiento y extensión de firma en io_provide_buffers_prep(). Como Linus señaló que el intento anterior no hizo nada útil, consulte d81269fecb8ce ("io_uring: corrige la extensión de signo provide_buffers"). Haga esto con la ayuda de los ayudantes check__overflow. Y corrija el tipo struct io_provide_buf::len, ya que no tiene mucho sentido mantenerlo firmado.

References

Sources

SourceRecordLicence
CVE ListCVE-2021-47040 changed 2026-08-05CVE Terms of Use
NVDCVE-2021-47040 changed 2026-08-04Public domain