CVE-2025-38002
kernel: io_uring/fdinfo: grab ctx->uring_lock around io_uring_show_fdinfo()
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · June 6, 2025
Updated · August 19, 2026
Description
A flaw was found in the Linux kernel's io_uring/fdinfo component. A race condition exists in the io_uring_show_fdinfo() function, which occurs when the io_uring is actively being resized. This allows a highly privileged local attacker to read inconsistent or partially updated data from /proc/<pid>/fdinfo/<fd>. This could lead to potential information leaks or system instability.
Statement
This patch resolves a race condition in io_uring_show_fdinfo() that could lead to inconsistent or partially updated data being read from /proc/<pid>/fdinfo/<fd> when the ring was being concurrently resized. The race was caused by accessing shared context fields without always holding uring_lock. The fix ensures the function only proceeds if it can safely acquire the mutex. This mitigates potential information leaks or instability during concurrent io_uring activity and fdinfo inspection. The vulnerability is only exploitable by processes with high privileges, as it requires access to io_uring resources, use of IORING_REGISTER_RESIZE_RINGS, and the ability to read from /proc/<pid>/fdinfo/<fd>, all of which are typically restricted to privileged users or the process owner.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 4.4CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
CWE-821 · Incorrect Synchronization