CVE-2023-0240: Use after free in io_uring in the Linux Kernel
There is a logic error in iouring's implementation which can be used to trigger a use-after-free vulnerability leading to privilege escalation.
In the ioprepasyncwork function the assumption that the last iograbidentity call cannot return false is not true, and in this case the function will use the initcred 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 5.10.161
Event History
Frequently Asked Questions
What access does an attacker need to exploit this issue?
The vulnerability has a local attack vector and requires low privileges. No user interaction is required, and successful exploitation can lead to privilege escalation.
Which systems should be prioritized for remediation?
Prioritize systems running the Linux kernel or the listed Ubuntu kernel packages, particularly where local low-privileged users can execute workloads using io_uring. Upgrade to a version past 5.10.161.
How can I assess whether a system may be exposed?
Identify the running kernel version and whether the system uses one of the listed Linux or Ubuntu kernel packages. Systems not upgraded past 5.10.161 should be treated as requiring remediation based on the provided recommendation.