Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C153C3DDDDB for ; Tue, 6 Oct 2026 10:24:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791282281; cv=none; b=rDQffuadzVyy1THI1P2mKgc1cEgY4z624XbFqjhOquFeF0B1ZriOSVciRNOBZ9fwUoY3YhU2eTBYCggIJjHea0O9Qn9xlaDC1lfK7DhytcZk/Ej51b4oAM7ZIfp0+FMtxP2kBcVQbFODj8F1KXuuNiWW+z3ip93H3f0D5V/x9Xo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791282281; c=relaxed/simple; bh=MUr8jdTJb9DgIlATemILZ7PblckLBhDckyTWKgyA7zQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SKvGhGBKVlLB1snyBqrP+XWrRzY2B3YfzucDcTNWYZV+wgrbONRTSF2uZeEoWEROIEgWAxBUia8YKwr4Ni+3ffHctd1TwEl1fAIwt3xblRSA1JA96x7wnDCyXsgp+lVHlVqdoKIBDl5Sp8skW48E2Jtgky7moUC8CmZwoF9DLuU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IM7hr13R; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="IM7hr13R" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 016D01F000FF; Tue, 6 Oct 2026 10:24:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791282280; bh=HiV9sJyBgOx3iQ9sDFbkZHe+LImFs0FhVuuezqC51mI=; h=From:To:Cc:Subject:Date:Reply-To; b=IM7hr13RogdZ9lbsxDVCDQSVyg2Jo1zm5p4SyYIBBHsPhtWREePcos5I9Tl8FAHIs Au/fyiNKO9cNxrY8R04Vxm9lZGuaOtv+dmG0+v2wH8KtWApuG84HHJXhS9E9MldRav 306ksgojxlX5OOQCfvUEs2hIAUHOVgfo7sN8+11k= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98219: sched_ext: Close the pre-enable ops error claim window Date: Tue, 6 Oct 2026 10:45:20 +0200 Message-ID: <2026100641-CVE-2026-98219-0098@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2860; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=mU4YI1YSzGqetYANl0GYk3b/c/wiyVDkMazLV9SBatE=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlHtvya5uF4SDHxQvrX/y99gg4nfTgjebux/LRuOyN7X wxTy9dXHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRH5EM8xRMnA6WP/xi87rI /8oJ8T2hQQFLlzPMz3F0Uim6aj3rxeYLETUiGws4+SftBgA= 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: Close the pre-enable ops error claim window scx_alloc_and_add_sched() publishes ops->priv before scx_root_enable_workfn() switches the state to SCX_ENABLING. An error claimed via scx_bpf_error_bstr() from an associated BPF program in that window is consumed by scx_disable_workfn(), which takes the pre-enable shortcut in scx_root_disable(). The shortcut returns without any teardown and restores SCX_DISABLED with an unconditional scx_set_enable_state() xchg racing the enable workfn's own transition. The enable then completes with the claim consumed: the scheduler stays up but can never be disabled again, and bpf_scx_unreg() frees it while still in use, resulting in a use-after-free. Both WARN_ON_ONCE()s fire back to back: WARNING: kernel/sched/ext/ext.c:7522 at scx_root_enable_workfn+0xeec/0x1be0, CPU#3: scx_enable_help/276 WARNING: kernel/sched/ext/ext.c:6398 at scx_root_disable+0xb50/0xdb8, CPU#0: sched_ext_helpe/664 scx_root_enable_workfn() switches to SCX_ENABLING before the scheduler allocation, so ops->priv is never visible while SCX_DISABLED. The allocation failure path restores SCX_DISABLED. The Linux kernel CVE team has assigned CVE-2026-98219 to this issue. Affected and fixed versions =========================== Issue introduced in 7.1 with commit 105dcd005be2ac1d5541921db8feb1d0f98d59d5 and fixed in 7.2.8 with commit 959c66dc4a915be306c35691095c787c61dc7df9 Issue introduced in 7.1 with commit 105dcd005be2ac1d5541921db8feb1d0f98d59d5 and fixed in 7.3-rc4 with commit c7a1c6e8004ab12a9c9bfdcb603f60f9bf4a3cee 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-98219 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/959c66dc4a915be306c35691095c787c61dc7df9 https://git.kernel.org/stable/c/c7a1c6e8004ab12a9c9bfdcb603f60f9bf4a3cee