Bug 2300457 (CVE-2024-41080) - CVE-2024-41080 kernel: io_uring: fix possible deadlock in io_register_iowq_max_workers()
Summary: CVE-2024-41080 kernel: io_uring: fix possible deadlock in io_register_iowq_ma...
Keywords:
Status: NEW
Alias: CVE-2024-41080
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2301655
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-29 15:51 UTC by OSIDB Bzimport
Modified: 2024-09-03 06:00 UTC (History)
4 users (show)

Fixed In Version: kernel 6.9.11, kernel 6.10
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-07-29 15:51:35 UTC
In the Linux kernel, the following vulnerability has been resolved:

io_uring: fix possible deadlock in io_register_iowq_max_workers()

The io_register_iowq_max_workers() function calls io_put_sq_data(),
which acquires the sqd->lock without releasing the uring_lock.
Similar to the commit 009ad9f0c6ee ("io_uring: drop ctx->uring_lock
before acquiring sqd->lock"), this can lead to a potential deadlock
situation.

To resolve this issue, the uring_lock is released before calling
io_put_sq_data(), and then it is re-acquired after the function call.

This change ensures that the locks are acquired in the correct
order, preventing the possibility of a deadlock.

Comment 1 Mauro Matteo Cascella 2024-07-30 14:54:36 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024072926-CVE-2024-41080-6385@gregkh/T

Comment 2 Mauro Matteo Cascella 2024-07-30 14:54:58 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2301655]


Note You need to log in before you can comment on or make changes to this bug.