CVE-2026-99253

io_uring/cancel: rearm local work wake up before sleep

Published Nov 3, 2026 CVSS 3.1 · 4.7 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The Linux kernel’s io_uring submit and cancel mechanism mis‑coordinates wake‑up signalling. This is an instance of CWE‑821—Improper Synchronization. When a cancel is requested, the kernel increments a counter that wakes a local work thread. The next work addition that resets the counter can be run before the sleeping thread sees the wake‑up, leading the thread to sleep forever while waiting for background work that never runs. This race allows a process to block in execve and stay stuck until a signal occurs, effectively freezing the process. The flaw is a race condition that can be exploited by local code using io_uring.

Affected Systems

The vulnerability affects all Linux kernel builds that ship with the io_uring subsystem prior to the fix. The common vendors listed are Linux: Linux, implying any kernel variant that includes the io_uring code and contains the described code pattern is vulnerable. No specific version numbers are provided, so vulnerable kernels likely include any release before the commit that addresses the issue.

Risk and Exploitability

The issue carries a DoS impact with no remote privilege escalation. The CVSS score is 4.7 and the EPSS score is below 1%. The flaw is not listed in the CISA KEV catalog, indicating no known widespread exploitation. The likely attack vector is local, requiring code execution on the target machine—such as a malicious application or a compromised user with kernel privileges—to trigger io_uring requests that expose the race condition. Because the flaw does not allow remote code execution or privilege escalation, the overall risk is limited to systems that use io_uring extensively and run locally privileged code.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the commit fixing the io_uring cancel wake‑up bug.
  • If an update is not immediately possible, disable the io_uring subsystem in the kernel configuration (CONFIG_IO_URING=) or remove the module if built as a module, to prevent the race from occurring.
  • Monitor system processes for signs of execve stalls or hanging applications, and restart affected services or reboot the host if a freeze is observed.

Generated by OpenCVE AI on November 5, 2026 at 17:07 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-362
Type Values Removed Values Added
Weaknesses CWE-821
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-362
Type Values Removed Values Added
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.
Title io_uring/cancel: rearm local work wake up before sleep
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-821

    Incorrect Synchronization

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 6, 2026, 5:15 PM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Nov 3, 2026, 12:17 PM
Modified
Nov 6, 2026, 6:18 PM
Severity
Moderate
Public date
Nov 3, 2026, 11:20 AM