{"id":"DEBIAN-CVE-2024-40922","details":"In the Linux kernel, the following vulnerability has been resolved:  io_uring/rsrc: don't lock while !TASK_RUNNING  There is a report of io_rsrc_ref_quiesce() locking a mutex while not TASK_RUNNING, which is due to forgetting restoring the state back after io_run_task_work_sig() and attempts to break out of the waiting loop.  do not call blocking ops when !TASK_RUNNING; state=1 set at [\u003cffffffff815d2494\u003e] prepare_to_wait+0xa4/0x380 kernel/sched/wait.c:237 WARNING: CPU: 2 PID: 397056 at kernel/sched/core.c:10099 __might_sleep+0x114/0x160 kernel/sched/core.c:10099 RIP: 0010:__might_sleep+0x114/0x160 kernel/sched/core.c:10099 Call Trace:  \u003cTASK\u003e  __mutex_lock_common kernel/locking/mutex.c:585 [inline]  __mutex_lock+0xb4/0x940 kernel/locking/mutex.c:752  io_rsrc_ref_quiesce+0x590/0x940 io_uring/rsrc.c:253  io_sqe_buffers_unregister+0xa2/0x340 io_uring/rsrc.c:799  __io_uring_register io_uring/register.c:424 [inline]  __do_sys_io_uring_register+0x5b9/0x2400 io_uring/register.c:613  do_syscall_x64 arch/x86/entry/common.c:52 [inline]  do_syscall_64+0xd8/0x270 arch/x86/entry/common.c:83  entry_SYSCALL_64_after_hwframe+0x6f/0x77","modified":"2026-09-15T09:02:14.596479466Z","published":"2024-07-12T13:15:15.120Z","upstream":["CVE-2024-40922"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2024-40922"}],"affected":[{"package":{"name":"linux","ecosystem":"Debian:13","purl":"pkg:deb/debian/linux?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.9.7-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2024-40922.json"}},{"package":{"name":"linux","ecosystem":"Debian:14","purl":"pkg:deb/debian/linux?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.9.7-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2024-40922.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}