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=1793705167; b=gt8Ez0hbJ/ZH9nejO0U5dcw6NA98ulCWvQdUlVzghd/DHIdu324lYv98e+RoN9IQg141 fNjaE+asXWsj6hPYmAZqNrx5MnioTPn0O9FctwHRenF9RqqDlP+0s32w3/t+rExE0wccu Uv1wizQdpuz8/SnkzTW9qCVnRmnoEtaM5fA/KUaSUNOYqfah+Qx9T5TsnXHs7mWTM9NYa 1bUHWr5WFBOzRCnR5ks2Rtq/fByBn3JHSD0bEcOOJ/eGtCK0DqUJBNTRa20dIc5w7W1RS 68INhNJUWuLhsTQidEO1Z13ce9FoETjtEVIeYqFCs5rZc9D9+eyBhOn0fjTvi2bSxdA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793705167; 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=/py3qN074onBpMUq3SyCQFU5BxDG2fsqZ8bGJWwb3M4=; b=LqYU4Q72J1qJdQgjcXlA6Y1nBnl4MDDqSpaacQUthLy54Oy+LLCNnY8u8nBRrgBvF/vg i5VWROI8WleM5qdDv9W7uyrN1Z53OTCW3MV6bBlkr9U8GGQA7OyiGILCODnxYiygEYusa bZvtvr18Gb69hPfesldl9Dij2sl6pLpTbj/HpclilVah64o5nH00W1YDpssl40S5Kh1ES ZGsqd8bGgajEv2RQD8abz4FmOra0HnET8WBlaw2ayYWc1hUj0R54mPuY4PCflge566sv+ PPWp/8GW3dHdsyOC/lp77eErAmbeUw+RCTEZDTcf7BDgrdb9W0CMDUiUi/daukvQ/Ng== 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=bGEhqZ+j; 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 54591606B118 for ; Tue, 3 Nov 2026 11:26:07 +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=bGEhqZ+j Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8F71C1F00A17; Tue, 3 Nov 2026 11:26:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793705166; bh=/py3qN074onBpMUq3SyCQFU5BxDG2fsqZ8bGJWwb3M4=; h=From:To:Cc:Subject:Date:Reply-To; b=bGEhqZ+jNEwSya6VgJMpAAei+RELNhbjtRUkFa+TgvINNiJ70xpqTkIqtrJnVVOun 5bO1UQeHjwXO1yQay4/RcSSjCLORHg5e+t2vUB6raK7ot0S69cN4g9O65kMNseBgZL dAUFTX9piTvDAHaRVzj8J7XtuzryZU2eMlTYtfXw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99255: io_uring/io-wq: don't hide a link from cancellations Date: Tue, 3 Nov 2026 12:20:20 +0100 Message-ID: <2026110317-CVE-2026-99255-c5be@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=4459; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=bgAEA4o6h74xt+B6EeuqbFTyTG0CdaJ/qvsXSmXd/3w=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkvDxfG/2pv7f3meCb2rtTmVdqmyfpBjn+m7vk2w33f9 kCPPXuZOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiSTkM82vDniiyWllxpYj1 6ll/e+SqUSpbyLDgxMdHmxvX9bFGq3ULik6I31P73O4FAA== 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/io-wq: don't hide a link from cancellations A task that exits cancels its tracked requests and waits until they are gone. io_uring_cancel_generic() looks everywhere a request can be, and goes to sleep if it found nothing to cancel. It is woken up each time one of the requests of the task is completed by task work or freed. When io-wq is done with a request that has a link, there is a time in which the next request of the link can't be found: io_worker_handle_work() io_assign_current_work(worker, NULL) io_wq_free_work(work) io_req_find_next() // takes the link off the request io_free_req() // task work for the task io_assign_current_work(worker, linked) io_run_task_work() cond_resched() worker->cur_work = linked It is not pending, it is not the current work of a worker, and it is not yet on the list that it is about to be parked on. If the pass that the exiting task makes because of io_free_req() falls into that time, it finds nothing and the task goes to sleep. The worker then runs the link, which IO_WQ_BIT_EXIT doesn't prevent for bounded work. If that parks the request nothing is completed or freed, and nobody wakes up the task. If it is the process that exits it can't be killed any more either. NOP, IOSQE_ASYNC | IOSQE_IO_LINK FUTEX_WAIT, FUTEX2_PRIVATE exit of the thread, or of the process, up to 63us later With four of these per round 5 to 8 of 10,000 rounds hang (4 CPUs, KVM): io_uring_cancel_generic do_exit Commit f8b632e89a10 ("io_uring: tighten task exit cancellations") is about the same gap, and makes the task look again for whatever happens before io_free_req(). Free the request once the link is the current work of the worker, or pending. Whoever is woken up by that can find the link, until it is parked where cancellations look as well. To do so split io_wq_free_work() in two. The Linux kernel CVE team has assigned CVE-2026-99255 to this issue. Affected and fixed versions =========================== Issue introduced in 5.5 with commit 768134d4f48109b90f4248feecbeeb7d684e410c and fixed in 6.1.191 with commit 98470f164286f7f62aaee519d4d11b9370ce6d7b Issue introduced in 5.5 with commit 768134d4f48109b90f4248feecbeeb7d684e410c and fixed in 6.6.161 with commit d39ebc7a583d650b1d6da9b45e2ce96ad4d877e4 Issue introduced in 5.5 with commit 768134d4f48109b90f4248feecbeeb7d684e410c and fixed in 6.12.115 with commit ebe8e97fb99d9f374c482902a00677cfd24a6c27 Issue introduced in 5.5 with commit 768134d4f48109b90f4248feecbeeb7d684e410c and fixed in 6.18.60 with commit 3e02b8df0e9fa1423ac2a4e03409a9329c30ac49 Issue introduced in 5.5 with commit 768134d4f48109b90f4248feecbeeb7d684e410c and fixed in 7.2.14 with commit 92e20e9c72bdf6cfa6f84eded7b33399bc7061da 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-99255 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/io-wq.c io_uring/io_uring.c io_uring/io_uring.h 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/98470f164286f7f62aaee519d4d11b9370ce6d7b https://git.kernel.org/stable/c/d39ebc7a583d650b1d6da9b45e2ce96ad4d877e4 https://git.kernel.org/stable/c/ebe8e97fb99d9f374c482902a00677cfd24a6c27 https://git.kernel.org/stable/c/3e02b8df0e9fa1423ac2a4e03409a9329c30ac49 https://git.kernel.org/stable/c/92e20e9c72bdf6cfa6f84eded7b33399bc7061da https://git.kernel.org/stable/c/436d48a2ed13112d2d27085325838e5bce6b4507