{"id":"CVE-2021-47040","aliases":["CVE-2021-47040"],"related":[],"kind":"vulnerability","state":"published","title":"io_uring: fix overflows checks in provide buffers","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nio_uring: fix overflows checks in provide buffers\n\nColin reported before possible overflow and sign extension problems in\nio_provide_buffers_prep(). As Linus pointed out previous attempt did nothing\nuseful, see d81269fecb8ce (\"io_uring: fix provide_buffers sign extension\").\n\nDo that with help of check_<op>_overflow helpers. And fix struct\nio_provide_buf::len type, as it doesn't make much sense to keep it\nsigned.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nio_uring: fix overflows checks in provide buffers\n\nColin reported before possible overflow and sign extension problems in\nio_provide_buffers_prep(). As Linus pointed out previous attempt did nothing\nuseful, see d81269fecb8ce (\"io_uring: fix provide_buffers sign extension\").\n\nDo that with help of check_<op>_overflow helpers. And fix struct\nio_provide_buf::len type, as it doesn't make much sense to keep it\nsigned.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2024-02-28T08:13:46.557Z","modified":"2026-08-05T08:45:40.950Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-120"],"affected":[{"ranges":[{"type":"git","introduced":"efe68c1ca8f49e8c06afd74b699411bfbb8ba1ff","fixed":"cbbc13b115b8f18e0a714d89f87fbdc499acfe2d","status":"affected"},{"type":"git","introduced":"efe68c1ca8f49e8c06afd74b699411bfbb8ba1ff","fixed":"51bf90901952aaac564bbdb36b2b503050c53dd9","status":"affected"},{"type":"git","introduced":"efe68c1ca8f49e8c06afd74b699411bfbb8ba1ff","fixed":"84b8c266c4bfe9ed5128e13253c388deb74b1b03","status":"affected"},{"type":"git","introduced":"efe68c1ca8f49e8c06afd74b699411bfbb8ba1ff","fixed":"38134ada0ceea3e848fe993263c0ff6207fd46e7","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.8","status":"unaffected"},{"type":"semver","introduced":"5.10.37","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.11.21","lastAffected":"5.11.*","status":"unaffected"},{"type":"semver","introduced":"5.12.4","lastAffected":"5.12.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.13","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.8","fixed":"5.10.37"},{"status":"affected","introduced":"5.11","fixed":"5.11.21"},{"status":"affected","introduced":"5.12","fixed":"5.12.4"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/cbbc13b115b8f18e0a714d89f87fbdc499acfe2d","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/51bf90901952aaac564bbdb36b2b503050c53dd9","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/84b8c266c4bfe9ed5128e13253c388deb74b1b03","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/38134ada0ceea3e848fe993263c0ff6207fd46e7","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T15:57:48.348Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-47040","url":"https://www.cve.org/CVERecord?id=CVE-2021-47040","licence":"CVE Terms of Use","modified":"2026-08-05T08:45:40.950Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-47040","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-47040","licence":"Public domain","modified":"2026-08-04T10:16:42.480Z"}],"updatedAt":"2026-11-25T22:58:08.628Z","epss":{"score":0.00262,"percentile":0.19222,"date":"2026-12-01T12:00:22.000Z"}}