{"id":"CVE-2023-0240","details":"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.\n\nIn 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.","modified":"2026-03-14T11:56:35.700270Z","published":"2023-01-30T14:15:10.403Z","references":[{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20230316-0001/"},{"type":"FIX","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/io_uring?h=linux-5.10.y&id=788d0824269bef539fe31a785b1517882eafed93"},{"type":"FIX","url":"https://github.com/gregkh/linux/commit/1e6fa5216a0e59ef02e8b6b40d553238a3b81d49"},{"type":"FIX","url":"https://kernel.dance/#788d0824269bef539fe31a785b1517882eafed93"}],"affected":[{"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-0240.json","unresolved_ranges":[{"events":[{"introduced":"0"},{"fixed":"5.10"}]}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}