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=1793635492; b=eROFEBk3o29PYs9SL/03AaI6Iksv7klB05VRpADty+rwGxFkK4wGBjyqAabVqYo0vpUL qCqjI6Ryf3aKg1MOhrNqpPQurlUENOFIWleVbqCgnVkTa6u4omYOvhLuDhXnq/FbYzc+z n0Lnjlf62Nna7/ePfIN3PCmYBSxZ/IrwZkugc7nRiDW7FbX8ZARnUB4qEuTmf28W4ySXA 6k68w8rcF/fr103sMNZwrKk1ltkw8qA0PUmf6iVfwUKbdcPGbCdFaDLrxjXqTfdtYJU9v X1uW+Q8JUTWvw8K99TB0m00m6xV1vCSmLfI+VeihXtwyAyDei+EIhS23P0HUdLygLzA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793635492; 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=GI64ddH6FgA637mve6eVqBmBGfNL9qQgto+wlO/bT98=; b=pZqGkkNcufPA/X4HuBl5r6JD2ok+z6Qn2KCT1wk4YDtW6rMji9lar5tlXHM3ARF2kP6/ fUtFhLToyKhRXQBD3N5ltu/KTP05eNnQsBLLgGQvcmAFtMVMVnn4LbH5xph5iywZjufkO ZSUxsgxAsjCKec919baLSodDi4KOLXgHzgCCGH952xcZnuv29O/YDcuJb8sVg2LOGsGaH tY8zkFltIUpsXlQJq7s4/nWSbNoNcirWPPCFWgJpiINs9gX8iVGHZ0G4VYK3Dc5UaLFJ+ l0UHStOdtfZ8tcs0IgXC3HCWErJDjaUx5E4ZzGATqcc5D8fcGtcILud6LQOiLsm/PMg== 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=AHlaePUk; 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 6174C60703A3 for ; Mon, 2 Nov 2026 16:04:52 +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=AHlaePUk Received: by smtp.kernel.org (Postfix) with ESMTPSA id AEA761F00A16; Mon, 2 Nov 2026 16:04:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793635492; bh=GI64ddH6FgA637mve6eVqBmBGfNL9qQgto+wlO/bT98=; h=From:To:Cc:Subject:Date:Reply-To; b=AHlaePUki8YxVKt5FgM6Nam9NZjukEKVGcXm1cigDCmW29AUYW18y72Gp9Zkg+5cj 22F96GXYNobtOQ4+5RugKMInM6AoLgLJsXBma0vIJMxPYhdgq/WNJlI1Wp1hoEWorD w6Hxp8zYmZBFoCqgS7+QrFTTgHjX4+CVe5FzsSSM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99217: fork: release the files of a failed fork after sched_cancel_fork() Date: Mon, 2 Nov 2026 17:04:00 +0100 Message-ID: <2026110259-CVE-2026-99217-88ac@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=2963; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=NvqE6+EP9ixcT4iJVjjwB5pRrcyFXa+F+UUQ4QXbWCk=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkvtuTvP75QxL6HQTzbrLG6m4N9b+/WhZd/Ru+1Ynrsf jh7xTKhjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIj/MM83MSrBneLHjF/v5N R7iP4cuobztFpRnm+6StjdCbvuBQPNOsd50GprPyS/6YAwA= 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: release the files of a failed fork after sched_cancel_fork() Reorder copy_process() cleanup so sched_fork() taking scx_fork_rwsem scx_pre_fork() is safe and isn't held around exiting files. Right now, a fork that fails while another thread closed the bpf link fd will deadlock against its own read side. It also blocks every fork on the system: copy_process() holds scx_fork_rwsem for read exit_files() close_files() filp_close_sync() bpf_scx_unreg() kthread_flush_work() waits for the disable work scx_root_disable() percpu_down_write(&scx_fork_rwsem) Simply release the child's files after sched_cancel_fork() dropped the lock. The task starts out as a copy of its parent so p->files points to the parent's table until copy_files() replaces it. exit_files() must not run for a fork that failed before that. Clear p->files up front so exit_files() is a no-op for those and make copy_files() set it explicitly for CLONE_FILES. The Linux kernel CVE team has assigned CVE-2026-99217 to this issue. Affected and fixed versions =========================== Fixed in 6.12.115 with commit 27e1cbf8ec5f7117f6bb2d2e44030ac055f09097 Fixed in 6.18.60 with commit f7ac8500d58e7684d37403553b1dea90ee2b27b1 Fixed in 7.2.14 with commit 14c7de6ca239326b79fd3f7aee55dfada1bb72ab Fixed in 7.3.1 with commit afa8eb069694bd9f845e5e44eac6e81cbc06780e 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-99217 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/27e1cbf8ec5f7117f6bb2d2e44030ac055f09097 https://git.kernel.org/stable/c/f7ac8500d58e7684d37403553b1dea90ee2b27b1 https://git.kernel.org/stable/c/14c7de6ca239326b79fd3f7aee55dfada1bb72ab https://git.kernel.org/stable/c/afa8eb069694bd9f845e5e44eac6e81cbc06780e https://git.kernel.org/stable/c/296a98c1fa50778c3b31eebed1a3f903f9684349