-

CVE-2026-99130

io_uring/cancel: don't spin on local work the task can't run

In the Linux kernel, the following vulnerability has been resolved:

io_uring/cancel: don't spin on local work the task can't run

io_uring_cancel_generic() refuses to sleep while any ring on the exiting
task's tctx has local work pending. It assumes the task is that ring's
submitter and that the next io_uring_try_cancel_requests() pass will run
the work. This does not hold for a ring that was still
IORING_SETUP_R_DISABLED when the task got its tctx node from
io_uring_create() or io_ringfd_register(). The submitter is set later by
IORING_REGISTER_ENABLE_RINGS, possibly from another task, and only the
submitter may run local work on an IORING_SETUP_DEFER_TASKRUN ring. To
the exiting task the work stays pending forever, the loop never reaches
schedule(), and the task trips the WARN_ON_ONCE() once and then spins in
do_exit().

An unprivileged user can set this up at will by creating a disabled
ring, having a child enable it and stop, posting to the ring with
IORING_OP_MSG_RING and exiting with a request in flight that only the
child can complete. The exiting thread burns a CPU until the child runs
or dies, and with panic_on_warn set the WARN panics the kernel.

Fix by skipping the sleep only when io_allowed_defer_tw_run() allows the
task to run the work. This is reasonable since work it cannot run cannot
complete any of its requests either, so nothing is lost by sleeping.
Drop the WARN_ON_ONCE() since handing a disabled ring to another thread
is a supported scenario, not a bug state.
Daten sind bereitgestellt durch das CVE Programm von einer CVE Numbering Authority (CNA) (Unstrukturiert).
HerstellerLinux
≫
Produkt Linux
Default Statusunaffected
Version 360cd42c4e95ff06d8d7b0a54e42236c7e7c187f
Version < 64e196a6d7173667a2a0fe2f191bc64eecd07778
Status affected
Version 360cd42c4e95ff06d8d7b0a54e42236c7e7c187f
Version < 8a241d7ca23be2695a1fbe587ee12eae061c31af
Status affected
Version 360cd42c4e95ff06d8d7b0a54e42236c7e7c187f
Version < 94d13387b96e50a4288f7bbdfe401189246a11a1
Status affected
Version 360cd42c4e95ff06d8d7b0a54e42236c7e7c187f
Version < 3005459e0ddfcef0f555b6e81f672f2c49a1c0aa
Status affected
Version 360cd42c4e95ff06d8d7b0a54e42236c7e7c187f
Version < fddcf4c5321b3ea5f72166c3fd36a9d1c34f80c7
Status affected
HerstellerLinux
≫
Produkt Linux
Default Statusaffected
Version 6.4
Status affected
Version 0
Version < 6.4
Status unaffected
Version <= 6.6.*
Version 6.6.161
Status unaffected
Version <= 6.12.*
Version 6.12.115
Status unaffected
Version <= 6.18.*
Version 6.18.59
Status unaffected
Version <= 7.2.*
Version 7.2.13
Status unaffected
Version <= *
Version 7.3
Status unaffected
VulnDex Vulnerability Enrichment
Diese Information steht angemeldeten Benutzern zur Verfügung. Login Login
Zu dieser CVE wurde keine Warnung gefunden.
EPSS Metriken
Typ Quelle Score Percentile
EPSS FIRST.org 0.17% 0.059
CVSS Metriken
Quelle Base Score Exploit Score Impact Score Vector String
Es wurden noch keine Informationen zu CWE veröffentlicht.
https://git.kernel.org/stable/c/94d13387b96e50a4288f7bbdfe401189246a11a1
https://git.kernel.org/stable/c/3005459e0ddfcef0f555b6e81f672f2c49a1c0aa
https://git.kernel.org/stable/c/fddcf4c5321b3ea5f72166c3fd36a9d1c34f80c7
https://git.kernel.org/stable/c/64e196a6d7173667a2a0fe2f191bc64eecd07778
https://git.kernel.org/stable/c/8a241d7ca23be2695a1fbe587ee12eae061c31af