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

Medium 5.5 Published Updated

A speculative execution vulnerability in the Linux kernel io_uring subsystem allows attackers to read sensitive kernel memory.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-58000?

CVE-2024-58000 is a medium-severity vulnerability in Linux kernel, published on 27 Feb 2025. It can only be exploited from the same machine or local network, with no action from the victim.

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

Which versions are affected by CVE-2024-58000?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-58000?

Apply the vendor's patch.

Is CVE-2024-58000 being exploited?

There is no known exploitation of CVE-2024-58000 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-58000, GHSA-c93c-7385-p2gq, UBUNTU-CVE-2024-58000.

Is CVE-2024-58000 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free