# CVE-2024-58000: io_uring: prevent reg-wait speculations

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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.19%, higher than 8% of CVEs (2026-12-01)
- Published: 2025-02-27T02:07:19.155Z
- Modified: 2026-06-17T08:14:25.000Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

io_uring: prevent reg-wait speculations

With *ENTER_EXT_ARG_REG instead of passing a user pointer with arguments
for the waiting loop the user can specify an offset into a pre-mapped
region of memory, in which case the
[offset, offset + sizeof(io_uring_reg_wait)) will be intepreted as the
argument.

As we address a kernel array using a user given index, it'd be a subject
to speculation type of exploits. Use array_index_nospec() to prevent
that. Make sure to pass not the full region size but truncate by the
maximum offset allowed considering the structure size.

(As written by CVE List.)

## Affected

- Linux Linux: from aa00f67adc2c0d6439f81b5a81ff181377c47a7e before 2a6de94df7bfa76d9850443547e7b3333f63a16a; from aa00f67adc2c0d6439f81b5a81ff181377c47a7e before 29b95ac917927ce9f95bf38797e16333ecb489b1; 6.13 (not affected: before 6.13; from 6.13.2 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 6.13 before 6.13.2

## References

- <https://git.kernel.org/stable/c/2a6de94df7bfa76d9850443547e7b3333f63a16a> (patch)
- <https://git.kernel.org/stable/c/29b95ac917927ce9f95bf38797e16333ecb489b1> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2024-58000 · Whole record: https://cve.day/CVE-2024-58000.json · Rebuilt by cve.day 2026-11-25T22:58:52.095Z
