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

Published Feb 28, 2024
·
Updated

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

iouring: fix overflows checks in provide buffers

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

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

Affected Software

3 affected components
Linux Linux kernel>=5.8<5.10.37
Linux Linux kernel>=5.11<5.11.21
Linux Linux kernel>=5.12<5.12.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Linux kernel io_uring provide buffers overflow checks to a version that resolves this vulnerability.

    Patch d81269fecb8ce

Event History

Feb 28, 2024
CVE Published
via MITRE·08:13 AM
Data Sourced
via MITRE·08:13 AM
DescriptionSeverity
Data Sourced
via NVD·09:15 AM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2021-47040?

CVE-2021-47040 has been classified as a vulnerability with a medium severity level.

2

How do I fix CVE-2021-47040?

To address CVE-2021-47040, it is recommended to update the Linux kernel to versions 5.10.38, 5.11.22, or 5.12.5 or later.

3

What software versions are affected by CVE-2021-47040?

CVE-2021-47040 impacts Linux kernel versions between 5.8 and 5.10.37, 5.11 and 5.11.21, and 5.12 and 5.12.4.

4

What kind of issues does CVE-2021-47040 address?

CVE-2021-47040 addresses overflow and sign extension problems in the io_provide_buffers_prep() function of the Linux kernel.

5

Who reported the issues related to CVE-2021-47040?

The vulnerability CVE-2021-47040 was reported by a user named Colin.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203