Vulnerability Description
There is a logic error in io_uring's implementation which can be used to trigger a use-after-free vulnerability leading to privilege escalation. In the io_prep_async_work function the assumption that the last io_grab_identity call cannot return false is not true, and in this case the function will use the init_cred or the previous linked requests identity to do operations instead of using the current identity. This can lead to reference counting issues causing use-after-free. We recommend upgrading past version 5.10.161.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | < 5.10 |
Related Weaknesses (CWE)
References
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/io_uringMailing ListPatchVendor Advisory
- https://github.com/gregkh/linux/commit/1e6fa5216a0e59ef02e8b6b40d553238a3b81d49PatchThird Party Advisory
- https://kernel.dance/#788d0824269bef539fe31a785b1517882eafed93PatchThird Party Advisory
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/io_uringMailing ListPatchVendor Advisory
- https://github.com/gregkh/linux/commit/1e6fa5216a0e59ef02e8b6b40d553238a3b81d49PatchThird Party Advisory
- https://kernel.dance/#788d0824269bef539fe31a785b1517882eafed93PatchThird Party Advisory
- https://security.netapp.com/advisory/ntap-20230316-0001/
FAQ
What is CVE-2023-0240?
CVE-2023-0240 is a vulnerability with a CVSS score of 7.8 (HIGH). There is a logic error in io_uring's implementation which can be used to trigger a use-after-free vulnerability leading to privilege escalation. In the io_prep_async_work function the assumption that...
How severe is CVE-2023-0240?
CVE-2023-0240 has been rated HIGH with a CVSS base score of 7.8/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2023-0240?
Check the references section above for vendor advisories and patch information. Affected products include: Linux Linux Kernel.