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=1792759600; b=MxctM6baPV+R9OqltY8UiaqQ2iUHX2jp6Yu/XlHm1ZVsJUxTqXWue2T6GvjPVXzQFcNS k31sErC9Xylh0VjHN0xSqINWsE3Gpm2x5rqkG8yHKknzKmY4VY+pHtLp+3DKczqVhoqRh 6GBXSP5qh0R5TO3vZN+lkauM55eld+udRhEOIRJM9XOQeSkIh5iqvBF7SL5CWUGuv40M5 WZmUKWT7zoY/nBCiBHyV41+cdh7I8JR+9Yc+IxWOn983A3DMomTVTKNZT0i/ntlEaVaci nbJMjE8M9QAwbn+JQZIypx4XV9XsM0QbMG9S5VGjcUMKAyt7VwfDpJCxrBujzJyCLXg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792759600; 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=CJbO866aHpmh6jB1ndz8mJjK++g/dXg+IePLKG+X7y0=; b=HvrukcTufPQwkQKiH8Fa5/choX3GWBJD0yAAsgCjtxjg2EDluQ93IllmS5hErwz/fsJu ar3Hn5OecYGSSsPafXRTTnWW4B7VhAYI4ILf8XJAAnHZmBW2DzVYNzAzf3PPRlX7buqWE ZU7wsRG44NJRsKU4mtOMd2Vlk+e3F3xHp5CdwSoiQtvt7U0l6CSSnjN98nd/xFkTvHwwq o55sZJKqQMIPctX3Np5mwjnSi5vDsXF7b0BKfcgKF7aaHdGt7QAz9arTWC9anY4m01bLd tjW/LUEkGhchd2Z/SXKodDEAGrv6acBM2dj3c3di4p4R6xbiE4YVoFQdsCbfohTf0Zw== 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=Y0ZV6naW; 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 88EA2606A31A for ; Fri, 23 Oct 2026 12:46:40 +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=Y0ZV6naW Received: by smtp.kernel.org (Postfix) with ESMTPSA id A58EF1F01825; Fri, 23 Oct 2026 12:46:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792759600; bh=CJbO866aHpmh6jB1ndz8mJjK++g/dXg+IePLKG+X7y0=; h=From:To:Cc:Subject:Date:Reply-To; b=Y0ZV6naW3J+gxjW03lA6ddtpKgTskDuBYRkudP8LNoXWLGErO6G0edRaQCfovDPb7 QoEjiSKwbYn6SbBrf6hABnugp7UiONIJfrnErDxJHPbWyymd+8udgnLbFjuBnRQA79 XXCcPUU96Ih662ITLx1z3sjnuXWLjF/yq1na/3Ok= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99085: sched_ext: Fix CPU hotplug hang when a dying CPU's tasks sit in the BPF scheduler Date: Fri, 23 Oct 2026 14:45:18 +0200 Message-ID: <2026102317-CVE-2026-99085-99e4@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=4095; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=1E95BUafooiyDopOjqK4Ot/C8i7f3vZMwOWyqiWlhUg=; b=owGbwMvMwCRo6H6F97bub03G02pJDFm3w+4GbTCcH8h/hCWPx1olIXTxoXn8Sqeez074t2fRD P0L8/e/6IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJxJ1kmMP/MeGHzv39H2zf dwcfWLesek/ci6kM850Sjav2y02ckFJ5/AhX7MaZbFzn2AA= 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: sched_ext: Fix CPU hotplug hang when a dying CPU's tasks sit in the BPF scheduler A CPU going down has to empty its own rq. Its hotplug thread waits in sched_cpu_wait_empty() until nothing else is left, and the only thing that wakes it is balance_push(), which runs from __schedule() on the dying CPU and pushes off the migratable tasks the CPU picks. sched_ext breaks this. A task sitting on a user DSQ or held by the BPF scheduler is still counted on its rq, but an inactive CPU no longer calls ops.dispatch() and can't pull the task back. The dying CPU goes idle with the task still counted, and one of two things happens: - Another CPU consumes the task. The rq empties without a __schedule() on the dying CPU, so the hotplug thread is never woken and cpu_down() hangs holding cpu_hotplug_lock. - The task is affine only to the dying CPU. Nothing can move it, and the offline stalls until the watchdog ejects the BPF scheduler. When the rq goes offline, re-enqueue every task on it that isn't already on the local DSQ. An enqueue on an offline rq lands on the local DSQ, so the dying CPU itself picks the tasks and balance_push() pushes them off, the same as for the other sched classes. From then on no sched_ext path on another CPU can pull a task off the rq. ops.dispatch() currently stops as soon as the CPU goes inactive, and CPU hotplug then waits for an RCU grace period before taking the rq offline. A BPF-held task affine only to the dying CPU and preempted inside an RCU read-side critical section would block that grace period, and the rq would never go offline. Test SCX_RQ_ONLINE directly so that ops.dispatch() keeps running until the rq goes offline. Only the dying CPU's own hotplug thread clears the flag during teardown, and task_can_run_on_remote_rq() still keeps other rqs' tasks off the CPU. The Linux kernel CVE team has assigned CVE-2026-99085 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12 with commit f0e1a0643a59bf1f922fa209cec86a170b784f3f and fixed in 6.12.114 with commit f79cd7a2df3768323fbfb9b0f96adff08fb7eb4c Issue introduced in 6.12 with commit f0e1a0643a59bf1f922fa209cec86a170b784f3f and fixed in 6.18.58 with commit 638ee6bca19750934ea13f9c325f46fd8ae60064 Issue introduced in 6.12 with commit f0e1a0643a59bf1f922fa209cec86a170b784f3f and fixed in 7.2.12 with commit 173ff9d03ec6373c3158b6e630af33a9b36fd216 Issue introduced in 6.12 with commit f0e1a0643a59bf1f922fa209cec86a170b784f3f and fixed in 7.3 with commit d35a535d3e3e71f92a051d94e415f43612c4edfc 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-99085 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/sched/ext/ext.c kernel/sched/ext/inlines.h kernel/sched/ext/sub.c kernel/sched/sched.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/f79cd7a2df3768323fbfb9b0f96adff08fb7eb4c https://git.kernel.org/stable/c/638ee6bca19750934ea13f9c325f46fd8ae60064 https://git.kernel.org/stable/c/173ff9d03ec6373c3158b6e630af33a9b36fd216 https://git.kernel.org/stable/c/d35a535d3e3e71f92a051d94e415f43612c4edfc