CVE-2021-47040

published 28 Feb 2024 · updated 5 Aug 2026

io_uring: fix overflows checks in provide buffers

7.8HighCVSS 7.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 38134ada0ceea3e848fe993263c0ff6207fd46e7, Kernel 51bf90901952aaac564bbdb36b2b503050c53dd9, Kernel 84b8c266c4bfe9ed5128e13253c388deb74b1b03 and 1 more.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.8, >=efe68c1ca8f49e8c06afd74b699411bfbb8ba1ff <38134ada0ceea3e848fe993263c0ff6207fd46e7, >=efe68c1ca8f49e8c06afd74b699411bfbb8ba1ff <51bf90901952aaac564bbdb36b2b503050c53dd9, >=efe68c1ca8f49e8c06afd74b699411bfbb8ba1ff <84b8c266c4bfe9ed5128e13253c388deb74b1b03, >=efe68c1ca8f49e8c06afd74b699411bfbb8ba1ff <cbbc13b115b8f18e0a714d89f87fbdc499acfe2d38134ada0ceea3e848fe993263c0ff6207fd46e7, 51bf90901952aaac564bbdb36b2b503050c53dd9, 84b8c266c4bfe9ed5128e13253c388deb74b1b03, cbbc13b115b8f18e0a714d89f87fbdc499acfe2d

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-47040 severity on Zeptric[![CVE-2021-47040](https://zeptric.io/badge/cve/CVE-2021-47040.svg)](https://zeptric.io/cve/CVE-2021-47040)