CVE-2026-99243 PUBLISHED

io-wq: order the exit bit against worker creation task work

Assigner: Linux
Reserved: 25.09.2026 Published: 03.11.2026 Updated: 03.11.2026

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

io-wq: order the exit bit against worker creation task work

io_wq_exit_workers() cancels task work for queued worker creation with task_work_cancel_match(). That has a plain load of task->task_works.

io_queue_worker_create() adds the new entry and tests IO_WQ_BIT_EXIT to cancel it if the workqueue is already on its way out.

That must be ordered. task_work_add() has a full barrier via cmpxchg(). But io_wq_exit_start() sets the bit with set_bit() which doesn't have any memory ordering.

So afaict, on weakly ordered architectures the exiting task may load task_works before the store of the bit is visible. The other side tests the bit before the store is visible as well. So the entry remains queued with worker_refs and the exiting task waits on worker_done indefinitely.

If the task still has rings then io_uring_del_tctx_node() provides the barrier via test_and_set_bit() in io_wq_set_exit_on_idle(). When it has closed all rings though that barrier is gone.

Add the barrier after the set_bit().

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 4b4e5bbf9386d4ec21d91c0cb0fd60b9bba778ec to 67da3eec264aeb67835886720243ae2dc1463315 (excl.)
  • affected from 71a85387546e50b1a37b0fa45dadcae3bfb35cf6 to a63c752157eacf49f628359822666b32503d194a (excl.)
  • affected from 71a85387546e50b1a37b0fa45dadcae3bfb35cf6 to 1432d881d99584105122760133caeff1dce7a9f7 (excl.)
  • affected from 71a85387546e50b1a37b0fa45dadcae3bfb35cf6 to 6cf012a4d5e461c788ecc9dbed67adc31a142644 (excl.)
  • affected from 71a85387546e50b1a37b0fa45dadcae3bfb35cf6 to 0d81cdd433b0a96c5275c01b8172e0b1f71dd595 (excl.)
  • affected from 71a85387546e50b1a37b0fa45dadcae3bfb35cf6 to 75395db7a9b40a2e826c838e648fef8ed1a2d174 (excl.)
  • affected from 71a85387546e50b1a37b0fa45dadcae3bfb35cf6 to 31fc780b75b278d37700373d54a99fdb4117fdd6 (excl.)
  • affected from 5.15.11 to 5.15.224 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 5.16 is affected
  • unaffected from 0 to 5.16 (excl.)
  • unaffected from 5.15.224 to 5.15.* (incl.)
  • unaffected from 6.1.191 to 6.1.* (incl.)
  • unaffected from 6.6.161 to 6.6.* (incl.)
  • unaffected from 6.12.115 to 6.12.* (incl.)
  • unaffected from 6.18.60 to 6.18.* (incl.)
  • unaffected from 7.2.14 to 7.2.* (incl.)
  • unaffected from 7.3.1 to 7.3.* (incl.)

References