{"id":"CVE-2024-58000","summary":"io_uring: prevent reg-wait speculations","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nio_uring: prevent reg-wait speculations\n\nWith *ENTER_EXT_ARG_REG instead of passing a user pointer with arguments\nfor the waiting loop the user can specify an offset into a pre-mapped\nregion of memory, in which case the\n[offset, offset + sizeof(io_uring_reg_wait)) will be intepreted as the\nargument.\n\nAs we address a kernel array using a user given index, it'd be a subject\nto speculation type of exploits. Use array_index_nospec() to prevent\nthat. Make sure to pass not the full region size but truncate by the\nmaximum offset allowed considering the structure size.","modified":"2026-04-02T12:25:27.591206Z","published":"2025-02-27T02:07:19.155Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58000.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/29b95ac917927ce9f95bf38797e16333ecb489b1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2a6de94df7bfa76d9850443547e7b3333f63a16a"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58000.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58000"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"aa00f67adc2c0d6439f81b5a81ff181377c47a7e"},{"fixed":"2a6de94df7bfa76d9850443547e7b3333f63a16a"},{"fixed":"29b95ac917927ce9f95bf38797e16333ecb489b1"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-58000.json"}}],"schema_version":"1.7.5"}