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=1795100538; b=fTO47BfnRC6vMOHEIORxkr2wXfljrw4/QI+kWHH847IkMWvZPt9SJEJk1gQDz3+bqnVB Cgt5RlNiAOABnXaz5T9GPkuXANCSfdm+A7eo3pZCThnEQ+r59+PK08QcGQ7dSjwGEVpSz 9hXE5bj3xc5lbARYuPinOzU1/ecaBUwZqFtw5VCP6D/Gx3MSC+K2S5LsbuEOLfz9IUmVt npt5wyvr95S2P5jpoQG5TeCa/IHYArnWai5ueNZMdauwgMwkPlzz12tKZ9VNPdnyff4M7 qdm9f53iWcTfKRORx7VAm/FGOq3ItcioVSOnE5UxwjHd95msrh7vxAUCuLoKAcKvkbA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795100538; 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=2zN3ObrzrxVtvW5kMVuE0+EhureijhzFS4zurk3Ixgs=; b=daqZ/TFzZLkRe397FeSgxAhi50g4t6XzeQiob1zCdOVloTYWF3po51cocmw4nmDIzTAt dyV9O3znuPpwndqIJ3Dgi+1ws43GD3eRfHAKVFxZ4ZZm0wAgz1/p13/eG3qF5SbM561n8 yqyCWivIsh+u4rq9TeOwYj2fM9oskznCzz3qd3hHRjaoKTeq7HQvElnw3diFQihVHoJFo 2BbDEinZO1ul8EaxkiDh4KxEZmo1V9DIOLcqxUFPwyeRZtejzhJ/a1sRWFBciO5DLIfRJ Gz+VuBuguxbQow6ob0GID/FffyDOkLOivehn0KASJG9XBP1EyusB3yZ2+dAjPlRiTuA== 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=V7aLgFwn; 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 6DF65606A320 for ; Thu, 19 Nov 2026 15:02:18 +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=V7aLgFwn Received: by smtp.kernel.org (Postfix) with ESMTPSA id 714ED1F000C4; Thu, 19 Nov 2026 15:02:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795100538; bh=2zN3ObrzrxVtvW5kMVuE0+EhureijhzFS4zurk3Ixgs=; h=From:To:Cc:Subject:Date:Reply-To; b=V7aLgFwnbBTaK+jJcMltAhoWt4ptR0yk8E2JxlpTe9fAb1ZQu1jNjfGgsxVmRWUmm Sujv8phUkn/zs1F4Xo0y6sAYKFNJ4jKYzqBK3oHGHi06CVSV/SgtBZa7sTWNaq5lW1 0cvCVnHYj7dEgmj8z/P5d/PPN8AjzJ4g2+flANSM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99524: sched_ext: Fix use-after-free of a local reenq node left on an inactive cpu Date: Thu, 19 Nov 2026 15:27:02 +0100 Message-ID: <2026111920-CVE-2026-99524-5fe9@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=3420; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Vr9WSOTOcR3dWPwhLIGdv8lVFNW3huhTsJ+DigbOvY4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2aYsecX96+Z9zWLh+sfJnjavf/sGTI3jcJ85s0iuo EB8R/qTjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZgI53+GuSIttziXNE9cqXPc 5VhcW9ytdafPKzPMM/9UunDq3Xefyrp/57nuro0KljmVDgA= 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 use-after-free of a local reenq node left on an inactive cpu A local DSQ reenq is queued on the rq through a per-sched node and run from deferred work. When the reenq is requested from dispatch, the work is a balance callback queued once dispatch is done. A cpu going down installs balance push early in its teardown, and queue_balance_callback() refuses new callbacks from then on. ops.dispatch() keeps running on that cpu until the rq goes offline after an RCU grace period, so a reenq it requests in that window may never run. The IMMED handling in dispatch_one() requests one the same way. A reenq requested from elsewhere for a cpu that is already offline goes through irq_work_queue_on(), which warns, and its work doesn't run until the cpu comes back. Either way the node stays on the rq's list. When the scheduler is freed, scx_sched_free_rcu_work() warns and frees the pcpu with the node still linked, and the list is walked again once the cpu comes back. An inactive cpu's local DSQ holds only tasks that are bound to it or are being moved off, so the reenq is pointless. Ignore reenqs of an inactive cpu's local DSQ. The test is lockless. The hotplug thread of a cpu going down runs on that cpu, and it marks the cpu inactive before it installs balance push. A dispatch on the cpu runs to completion before that thread can run there, so a dispatch that saw the cpu active has queued its callback by then. Requests from outside dispatch run from the wakeup path or through irq_work, which balance push doesn't affect. The grace period after the cpu goes inactive waits for any requester that saw it active, so that irq_work is queued while the cpu is online. The Linux kernel CVE team has assigned CVE-2026-99524 to this issue. Affected and fixed versions =========================== Issue introduced in 7.1 with commit 238eba8c210d02ec2908d9c9143db4edcea3bfa1 and fixed in 7.3.2 with commit 0b5282963734a51b6dad978ccfe0fa22c4d4fb17 Issue introduced in 7.1 with commit 238eba8c210d02ec2908d9c9143db4edcea3bfa1 and fixed in 7.4-rc1 with commit 43e1ef14a47257ebf7e3bb3ab9a6df9c6f817c5f 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-99524 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 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/0b5282963734a51b6dad978ccfe0fa22c4d4fb17 https://git.kernel.org/stable/c/43e1ef14a47257ebf7e3bb3ab9a6df9c6f817c5f