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=1795100856; b=rUmMyior+j/ZbiKn1BIRAs48rJ6kL/siJ96O12vTQ6Nle7fqusFRClWLTCyJS+vz9QdQ CI3dWB1Ou/3RcMfIshcBsuOF0b3i5oq3bRxxKWS9DchNPzAuCg8F2SBMr58JMxnudv8Qp diCXhtoVIKZT+brpe5obbYq0NRwWnhA4CuzipiIVzA2+bWsKN4u2/j59iOzqCWu8AaX3A /9b1b1z874qbJFkMBWVhkzWdvszcSVrn55kVOWy/Gdg+/K/5aXof1szHmCHWLxhbQzcPP +9puTYtwSR6c8QcAk/mSjly1YtEoJ3HdDuEFLMtHbpkAWtE2s8SbBxs+rA/v1U71+Yw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795100856; 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=1f7N9aLXup1qPaKuZOC51GK6RwoSKc2r416Ifcoku5I=; b=dQltm1GrhUwTkIuytF1Xer7o/GftD5Um1eNe/OeEAdaJqTafJLaXRHJu1KDrxndHEGDR 9lKOt1gT7ONO/cHkjgWrX1JjMOcS3BSz2gkCDNEWuSrndOZJcsZKMGYSoqm1EtbtWdbJb aT9Pin3c13TjuzkVjqDlmmhKsAOFmGHv5436UWrFGoo7hXU6UyDzqHJ2xFPiZRG7ne6Nl m9+KH/Pgg39Np3OiYbx+onUyd9eT9txyeYBY3fMe0wwX5SLh2bgXprsreud23N/wpeQAo rbb9X4s7Ai7OncS/f43MRlqW65MZkJysW38nT1HHdT3EMWz63AfosWUeV3O3aoXkG+Q== 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=k2fYgQSQ; 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 A47E6606A33B for ; Thu, 19 Nov 2026 15:07:36 +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=k2fYgQSQ Received: by smtp.kernel.org (Postfix) with ESMTPSA id CC1821F000C6; Thu, 19 Nov 2026 15:07:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795100856; bh=1f7N9aLXup1qPaKuZOC51GK6RwoSKc2r416Ifcoku5I=; h=From:To:Cc:Subject:Date:Reply-To; b=k2fYgQSQAEkNHrvMHcWtY30U25F6K15iVcFmJwgy7OmhISHPnEmEvLBOT0iHh/sAJ Ci+liXmRvgQ0zfKS1oRDR+BUxJuz7TDXMhH/rfMBSlMH7fHyMEHLmRxPVEm7Tq/ad5 pLrFRQYFK7Y7fcwUNqfPUP8ppjv2Ww+63A1/m1XI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99561: fork: don't create io threads once PF_POSTCOREDUMP is set Date: Thu, 19 Nov 2026 15:27:39 +0100 Message-ID: <2026111929-CVE-2026-99561-d472@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=4740; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=iBrR4reUKtEOUiMyAwUAYPrwceCjlED29jglnIiRgbg=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2eZO+NWzrEzsjlKe6+PuZdMsF5VnMXSnnTjac6Yr4 cP7irwlHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARTleGuYILDNectCh6nR45 QchNdEfxmeTZZQzzq1f7/am3cf0/889CxseCPH9b7j9eAAA= 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: fork: don't create io threads once PF_POSTCOREDUMP is set zap_process() skips every thread that already has PF_POSTCOREDUMP set. Such a thread is past synchronize_group_exit(), so a coredump can't catch it anymore. It isn't counted in core_state->threads_remaining and it isn't sent SIGKILL. do_exit() sets PF_POSTCOREDUMP in synchronize_group_exit() and calls io_uring_files_cancel() right after that. The cancellation runs task work and a create_worker_cb() that io-wq queued before the exit creates a new io-wq worker from there. If another thread started a coredump in the meantime that worker joins a thread-group which is already being dumped. zap_process() never saw it so it was never counted. But when it exits it sees signal->core_state in synchronize_group_exit() and decrements threads_remaining like any other thread. So the count reaches zero one thread early and the dumper leaves coredump_wait_inactive() while a thread it counted is still running. The task has no fatal signal pending because zap_process() deliberately didn't send it one, and it never went through get_signal() so it doesn't have PF_SIGNALED either. Refuse to create an io thread when the creator has PF_POSTCOREDUMP. That costs nothing. io_uring_files_cancel() raises IO_WQ_BIT_EXIT before it runs any task work, so a worker created from there only ever gets to exit again, and io_should_retry_thread() doesn't retry -EINTR. Clearing PF_POSTCOREDUMP for the new thread in copy_process() was the other option. It makes the worker a thread like any other, but it only helps while the dump hasn't started. A worker born after zap_process() has run is invisible to it whatever its flags say and still decrements threads_remaining on the way out. Refusing to create it covers both, and then no task is ever born with the flag, so there is nothing to clear. Moving io_uring_files_cancel() ahead of synchronize_group_exit() closes the same window. It runs the cancellation, and whatever that can block on, before the thread announces itself to the dumper. A thread that blocks there never reaches coredump_task_exit() at all, so the dumper ends up waiting for a thread that never parks. Refusing the creation leaves the cancellation where it is. But it's very ugly to run io_uring work even before we did all the generic exit work. The Linux kernel CVE team has assigned CVE-2026-99561 to this issue. Affected and fixed versions =========================== Issue introduced in 5.16 with commit 92307383082daff5df884a25df9e283efb7ef261 and fixed in 6.12.117 with commit 3a0cdf3eb9c3026b046efe32f01b9090ab4e2d73 Issue introduced in 5.16 with commit 92307383082daff5df884a25df9e283efb7ef261 and fixed in 6.18.61 with commit 64f2a38a1658493d7a53d656bcc483ee4b837623 Issue introduced in 5.16 with commit 92307383082daff5df884a25df9e283efb7ef261 and fixed in 7.2.15 with commit 9dea2e237ffe2a325b9d42ed15ea9ee6561979c7 Issue introduced in 5.16 with commit 92307383082daff5df884a25df9e283efb7ef261 and fixed in 7.3.2 with commit 026aa32c00b0b3ea849d0ae98313274c9d3c7e21 Issue introduced in 5.16 with commit 92307383082daff5df884a25df9e283efb7ef261 and fixed in 7.4-rc1 with commit 1f978881ce6c9ac4f4d4a7b6a6e52339eadcd350 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-99561 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: kernel/fork.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/3a0cdf3eb9c3026b046efe32f01b9090ab4e2d73 https://git.kernel.org/stable/c/64f2a38a1658493d7a53d656bcc483ee4b837623 https://git.kernel.org/stable/c/9dea2e237ffe2a325b9d42ed15ea9ee6561979c7 https://git.kernel.org/stable/c/026aa32c00b0b3ea849d0ae98313274c9d3c7e21 https://git.kernel.org/stable/c/1f978881ce6c9ac4f4d4a7b6a6e52339eadcd350