# CVE-2023-0240: Use after free in io_uring in the Linux Kernel

- Severity: High 7.8 (CVSS:3.1, scored by Google) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 22% of CVEs (2026-12-02)
- Published: 2023-01-30T13:17:09.182Z
- Modified: 2026-06-17T05:25:06.073Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Google

## 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.

(As written by CVE List.)

## Affected

- io_uring: from 5.10 up to 5.10.161
- linux linux_kernel: from 5.10 up to 5.10.161; before 5.10

## Every score

- Google: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/io_uring?h=linux-5.10.y&id=788d0824269bef539fe31a785b1517882eafed93> (mailing-list, patch, vendor-advisory)
- <https://github.com/gregkh/linux/commit/1e6fa5216a0e59ef02e8b6b40d553238a3b81d49> (patch, third-party-advisory)
- <https://kernel.dance/#788d0824269bef539fe31a785b1517882eafed93> (patch, third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20230316-0001/>

## Sources

- CVE List: [CVE-2023-0240](https://www.cve.org/CVERecord?id=CVE-2023-0240), CVE Terms of Use, modified 2024-08-02
- NVD: [CVE-2023-0240](https://nvd.nist.gov/vuln/detail/CVE-2023-0240), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-0240 · Whole record: https://cve.day/CVE-2023-0240.json · Rebuilt by cve.day 2026-11-25T22:58:21.773Z
