Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793705164; b=NFlwtny4ywU9SGeKN8suCwOrbkuOGb+CVkmA4H/7iaPp4lcZGpV5Zlb7XX64PVeMeC2m KudbAx15jmqh0Tf4R9usPSrA4y+148wqmeWbAnV/5KioFk9+IzKMkwKYky9Rk+2tjxeNT nEq1++EVKBCQJ4Hvmcmy1LpFm1EZCBfJGQtectpUg7Q7E+7ZlYJIkOvf+ZuY6DE/cRJkB doWBdCiwHhuNw1LXwXEUT2T9Ajk0aEno75yi4RICYgM/RjknEOEtnL/A8l+2c53fXpDH1 CHAc4dJs6tw1WctfaPf4mmA3SzPcOH7g1hQjmRJ9Q4sdbq/nxhPK5ND1qocu7x4PAWw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793705164; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=XPDFPEO8xKve6oOmsK8pqma+KgbakMRzcBeyANMv0nQ=; b=UKnDwhjd9nP3cTIBYwh05OHdbFHP0bjThPsRPM29lUvUUOKNRbCnPuGfck7gpTwKrCfE X9rCBcJWkAqEwNv2PlwR6TmVvz81+RlHM9cOfVRIBpVBvCOiHT2XxJy24nqwM6yrycXjB uUMyktzubU0JBaHokCSlSLCxfciz6rOpmCohTiF12eK5i3y9J3QeJyihH1PQB3I9kUdyB YHbiMWmHqHxYz3YqgEM/f3pxMdnUOtEzmqLZC+QX3RECfLMGvk+VUbZVkdlVhK+/B9K+x GCjMQ+Gd1UupYFpwo87+HdU0DxZoFBt9AN/EXhKNKNfceUl/rtMNQH4SdGXkWDnG8MQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=XFnQ3T70; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C7E3A606B10A for ; Tue, 3 Nov 2026 11:26:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=XFnQ3T70 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D91C1F00A29; Tue, 3 Nov 2026 11:26:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793705163; bh=XPDFPEO8xKve6oOmsK8pqma+KgbakMRzcBeyANMv0nQ=; h=From:To:Cc:Subject:Date:Reply-To; b=XFnQ3T70zqUhz28ClDWc10gk76P5hAHR7Okdf8qNMLjZrIRWRfFV91TgJ1+KoHq3I xqOt4tKnm7TjteDo8Ys/nXygP4ehmXV65wKDqbFlngNzgj20WyougfUcngpb42fLFf 9Hu+f7SCL35r5gvFZaW5XzUwZ9fV8YvdQ8MOytcI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99253: io_uring/cancel: rearm local work wake up before sleep Date: Tue, 3 Nov 2026 12:20:18 +0100 Message-ID: <2026110316-CVE-2026-99253-9075@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3113; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=eIz75AYj14JIb2h5cdMbC+iBpQQSFgNvWtQj44b9J2A=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkvDxe0nlPP0Tdu+bRK9djf7Zv1mm5EVPzO9PI9GyuxS UfxhIJsRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEwk+xvDgkuXzF3X9DLsPPVU 88aHSfZZEtmhygzzYwwPiN8K2d4nlNu855pv2rTAItY/AA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2026-99253 to this issue. Affected and fixed versions =========================== Issue introduced in 7.2 with commit d46ab2c98ababa19b41a5709b6921d7b1add7f74 and fixed in 7.2.14 with commit aaa06bb9fc03384f7cf2dbc3e43f2939cc7791b2 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-99253 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: io_uring/cancel.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/aaa06bb9fc03384f7cf2dbc3e43f2939cc7791b2 https://git.kernel.org/stable/c/76a82c666abf155ad52d5f41043eac77dd3e41d8