CVE-2024-40922
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
12/07/2024
Last modified:
03/10/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
io_uring/rsrc: don&#39;t lock while !TASK_RUNNING<br />
<br />
There is a report of io_rsrc_ref_quiesce() locking a mutex while not<br />
TASK_RUNNING, which is due to forgetting restoring the state back after<br />
io_run_task_work_sig() and attempts to break out of the waiting loop.<br />
<br />
do not call blocking ops when !TASK_RUNNING; state=1 set at<br />
[] prepare_to_wait+0xa4/0x380<br />
kernel/sched/wait.c:237<br />
WARNING: CPU: 2 PID: 397056 at kernel/sched/core.c:10099<br />
__might_sleep+0x114/0x160 kernel/sched/core.c:10099<br />
RIP: 0010:__might_sleep+0x114/0x160 kernel/sched/core.c:10099<br />
Call Trace:<br />
<br />
__mutex_lock_common kernel/locking/mutex.c:585 [inline]<br />
__mutex_lock+0xb4/0x940 kernel/locking/mutex.c:752<br />
io_rsrc_ref_quiesce+0x590/0x940 io_uring/rsrc.c:253<br />
io_sqe_buffers_unregister+0xa2/0x340 io_uring/rsrc.c:799<br />
__io_uring_register io_uring/register.c:424 [inline]<br />
__do_sys_io_uring_register+0x5b9/0x2400 io_uring/register.c:613<br />
do_syscall_x64 arch/x86/entry/common.c:52 [inline]<br />
do_syscall_64+0xd8/0x270 arch/x86/entry/common.c:83<br />
entry_SYSCALL_64_after_hwframe+0x6f/0x77
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.4 (including) | 6.6.35 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.7 (including) | 6.9.6 (excluding) |
| cpe:2.3:o:linux:linux_kernel:6.10:rc1:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.10:rc2:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.10:rc3:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/0c9df3df0c888d9ec8d11a68474a4aa04d371cff
- https://git.kernel.org/stable/c/4429c6c77e176a4c5aa7a3bbd1632f9fc0582518
- https://git.kernel.org/stable/c/54559642b96116b45e4b5ca7fd9f7835b8561272
- https://git.kernel.org/stable/c/0c9df3df0c888d9ec8d11a68474a4aa04d371cff
- https://git.kernel.org/stable/c/4429c6c77e176a4c5aa7a3bbd1632f9fc0582518
- https://git.kernel.org/stable/c/54559642b96116b45e4b5ca7fd9f7835b8561272



