CVE-2025-38002 io_uring/fdinfo: grab ctx->uring_lock around io_uring_show_fdinfo()
A race condition in the Linux kernel's io_uring fdinfo handler can cause issues when reading SQE fields during active ring resizing.
- 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-2025-38002?
CVE-2025-38002 is a high-severity vulnerability in Linux kernel, published on 6 Jun 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/fdinfo: grab ctx->uring_lock around io_uring_show_fdinfo()
Not everything requires locking in there, which is why the 'has_lock' variable exists. But enough does that it's a bit unwieldy to manage. Wrap the whole thing in a ->uring_lock trylock, and just return with no output if we fail to grab it. The existing trylock() will already have greatly diminished utility/output for the failure case.
This fixes an issue with reading the SQE fields, if the ring is being actively resized at the same time.
Which versions are affected by CVE-2025-38002?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2025-38002?
Apply the vendor's patch.
Is CVE-2025-38002 being exploited?
There is no known exploitation of CVE-2025-38002 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2025-38002, GHSA-p6ff-97p8-xxmr, UBUNTU-CVE-2025-38002.