# CVE-2026-99253: io_uring/cancel: rearm local work wake up before sleep

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 8% of CVEs (2026-12-02)
- Published: 2026-11-03T11:20:12.490Z
- Modified: 2026-11-06T18:18:33.357Z
- Assigned by: Linux

## Description

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

io_uring/cancel: rearm local work wake up before sleep

io_uring_try_cancel_requests() sets ->cq_wait_nr to 1 so that the next
io_req_local_work_add() wakes the cancelling task. The add that takes the
count to zero is the only one that wakes, later ones see a count <= 0 and
return. io_uring_cancel_generic() however only becomes
TASK_INTERRUPTIBLE much later, so the one wake up can be spent on a
running task. That is fine as long as the entry of that add is still
queued, as the io_local_work_pending() check then skips the sleep. It is
not if the add was delayed after queueing its entry:

CPU0 (submitter in exec or exit)      CPU1 (io_req_local_work_add)
                                      mpscq_push(req A)
io_uring_try_cancel_requests()
  io_run_local_work()  // runs req A
io_uring_try_cancel_requests()
  atomic_set(&ctx->cq_wait_nr, 1)
                                      atomic_read(&ctx->cq_wait_nr) == 1
                                      count taken, wake_up_state()
                                        // task is running, no-op
prepare_to_wait(TASK_INTERRUPTIBLE)
io_local_work_pending() == false
schedule()
                                      mpscq_push(req B)
                                      cq_wait_nr <= 0, return

Only the sleeping task can run req B, so it is stuck in execve() until a
signal happens to wake it. An exiting task doesn't even get that.

Arm the count again once the task state is set and before the work list
is checked, for the rings whose local work this task is the one to run.

(As written by CVE List.)

## Affected

- Linux Linux: from d46ab2c98ababa19b41a5709b6921d7b1add7f74 before aaa06bb9fc03384f7cf2dbc3e43f2939cc7791b2; from d46ab2c98ababa19b41a5709b6921d7b1add7f74 before 58ddf0ec707093206a5fe814581ec5aefac8b08a; from d46ab2c98ababa19b41a5709b6921d7b1add7f74 before 76a82c666abf155ad52d5f41043eac77dd3e41d8; 7.2 (not affected: before 7.2; from 7.2.14 up to 7.2.*; from 7.3.2 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/aaa06bb9fc03384f7cf2dbc3e43f2939cc7791b2>
- <https://git.kernel.org/stable/c/58ddf0ec707093206a5fe814581ec5aefac8b08a>
- <https://git.kernel.org/stable/c/76a82c666abf155ad52d5f41043eac77dd3e41d8>

## Sources

- CVE List: [CVE-2026-99253](https://www.cve.org/CVERecord?id=CVE-2026-99253), CVE Terms of Use, modified 2026-11-06
- NVD: [CVE-2026-99253](https://nvd.nist.gov/vuln/detail/CVE-2026-99253), Public domain, modified 2026-11-06

---

Page: https://cve.day/CVE-2026-99253 · Whole record: https://cve.day/CVE-2026-99253.json · Rebuilt by cve.day 2026-11-25T22:59:48.379Z
