From mboxrd@z Thu Jan 1 00:00:00 1970 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=1795158152; b=4/bNdxvanBRttAKbTleKj1KBO0aTuDiY6omDLzejoLAa4vnRR8gfhMvdWKt/NtQGJKD+ HZDkBn6YkncFMrOSRB0+yahLYmiO7oT239Z3Mfv2u4pt9ZRa6k2cuAzm0pbSQj6++9evz iDgTCLlbCkB4c7XkvzTo+Ox1tC58qZT+S9/SK49jjd3qRSy0FdMX/aum/7UHI4lSyXtKn QF8M261gBMB5E7z4t4IFX/cjsqLGIMAXPNQ2tyGz39Rrrd+GcvWwPMa7qL3/q709swOKP ygwXPp1f9Y7uYoBhveOCPihj6z8at+G/7035EZes4yUDoZKRZQhMq54LOJ1VuW0YLvg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795158152; 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=PPjxsDBLC7kGDFm3wnlk/bH1+TC0ph/cUxYv5JKuec0=; b=OqG3cG7JRhfpXTsx+aGRT7gfKlWQkWmjmC3XUi1ehi3P+ADlJoSFqfA7S0bymF6xEm/B dlPnXmDxKdPoZxdcpZ2OaEk1culHgwfIXhW1DqMmBWpLFie1APEOxW4Zqmp50R/g8lrBw JRZk1Z2J+w9HEYXKrMZs9wGogNKNs4gfbpSZexPeUcp0UyjczZC6Iu09J8AsWfArf0Vcd ie820y4L7GnPX/j8/+K40kSWq89hRVPTlisqq/sRCeqInDdovfAjvksyUTEKwJUKSolfg jD2ANl0/7YC29BZGT56wZA6pmVSmQdr+ELjtMe7Iv2JpRtQLrj0TCqdJ8Bj0Ft/4nQw== 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=2MOcbAgh; 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 1988B606A320 for ; Fri, 20 Nov 2026 07:02:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=2MOcbAgh Received: by smtp.kernel.org (Postfix) with ESMTPSA id 033031F000C4; Fri, 20 Nov 2026 07:02:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795158151; bh=PPjxsDBLC7kGDFm3wnlk/bH1+TC0ph/cUxYv5JKuec0=; h=From:To:Cc:Subject:Date:Reply-To; b=2MOcbAgh9BWLhupm1+ird3awgxaTo7iGJ9Hqkc2ATk1Mw7hphlpJr3Dx2mo8m4OGn L0XxLJlhHaHdsWGBWNtQ+0d5qlI4Ld0gUjzPJbiCxX7kJXkTpj2NVMvX72UxzkId00 tF9FiWZ7YpNr4kGThbN0Yng1tobkMWwGe6XopRtg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99798: io_uring: defer foreign io-wq enqueues to task_work Date: Fri, 20 Nov 2026 08:02:17 +0100 Message-ID: <2026112016-CVE-2026-99798-61be@gregkh> X-Mailer: git-send-email 2.56.1 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=2572; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=hKzVLL7xoKD02IARfQvi85U6TtjoJ6ae6gyuufrxzFg=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/P1SWzTiebK/9bUdwyMTwyT93bWA4s54z7qTkxSxjY WMO3V0LO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAil0IY5llGFM6oXK+++sjB wDbOnfunHg45f4VhwZk/N+Ma1pxXO+wpIOMp0O9Tt9m9CwA= 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: defer foreign io-wq enqueues to task_work An IOPOLL ring without DEFER_TASKRUN can be reaped by a task other than the one that submitted the I/O. If a polled request is marked REQ_F_REISSUE, io_free_batch_list() calls io_queue_iowq() with the original tctx. Ordinary task exit can tear down tctx->io_wq after draining only the tracked requests. The live request pins the task, but not its io-wq, so the foreign task can race io_wq_put_and_exit() and enqueue through a freed or NULL queue. Forward foreign userspace enqueues to the owning task before accessing tctx->io_wq. Use a dedicated task_work callback so reissues still go straight to io-wq, and fail them if task_work is running in cancellation mode. Preserve the existing PF_KTHREAD cancellation path. This also covers the other callers of io_queue_iowq() without changing the worker-owned enqueue path. The Linux kernel CVE team has assigned CVE-2026-99798 to this issue. Affected and fixed versions =========================== Fixed in 6.18.61 with commit 0ac8f069a8bd7a507df59c505182065ae720e946 Fixed in 7.3.2 with commit 5f7e7afd5418c63473f6ac3a05219e9e6e8a59d9 Fixed in 7.4-rc1 with commit 3de16279b43dc285ed2222aba06cebdc82fdb28b 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-99798 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_uring.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/0ac8f069a8bd7a507df59c505182065ae720e946 https://git.kernel.org/stable/c/5f7e7afd5418c63473f6ac3a05219e9e6e8a59d9 https://git.kernel.org/stable/c/3de16279b43dc285ed2222aba06cebdc82fdb28b