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 3A0783E1692 for ; Sat, 22 Aug 2026 15:40:36 +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=1787413237; cv=none; b=LZMeUceoL+RyfoflQ56klBXFhBdiRHIQaH+G3grliBaPw/1xq0vLVLAm2yUMpL1opIFKmDaOqVLHZZxZ+5rkskz7+V5sqqCzRabtS47/gXp2T4Wy8UL5s/7e2WsCe8DGWT5akcntanBiC3MrnnoUZKmDy9iNyWX3TM6Y3s/gcSQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787413237; c=relaxed/simple; bh=p2ywgp94S9YC6kCWTmKCBMaXrAAxfjBDSJDY09lQs5I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OLYvVupCEM5uJnT2fsV9D4RHOwhebQv9VpUZMeQCcSY9vEv1Am09EipwfWw0nt7clwYHVf2mEuiPitLymdanMe4KVYfWQrjz06mSNx6K4NRl5LQW5zoIChQN4LuHdjxZUfAPdrNqvLu1hXDbg91dTrqU/GwALz61Bxa3gnzcEek= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=iGDQuBZP; 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="iGDQuBZP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8BD4B1F000E9; Sat, 22 Aug 2026 15:40:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1787413236; bh=Q6BmtYSaEm+EkAAcO4LlcrAIt/wIwlmxzro675E0Kqk=; h=From:To:Cc:Subject:Date:Reply-To; b=iGDQuBZPSscqhr1OrRGdfFaxVYeIuTm9+8uQld5YDif6CJJkllw5EhV8m79uJiGwC enkkhxoOsI7WctHaKkKI/391FJ2dpfnzDy6nBK/V+LlISq+XpQzURJUO1CI3dkSIHo qO91FSnLpJCfuUKS+vAeeXypyTFo1OIv4cibQkPk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-74731: sched_ext: Skip sub-disable teardown for never-linked sub-schedulers Date: Sat, 22 Aug 2026 17:33:35 +0200 Message-ID: <2026082242-CVE-2026-74731-9884@gregkh> X-Mailer: git-send-email 2.55.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=2657; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=qfP+QVHVcT3KoNzRejfaNc467tQqLrBoFq2eW8vcP2E=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmdB+6dqT21Kluj5t0hjZkHFBfqb/5S/d/iiPqaqFWb/ BTqPBcYd8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE1N8xzC8NXxA07bhU3OOZ V7b5tEp8WHq5qZJhwbJDVgs+TL6+sVLH9fUeFe7U1563swA= 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: Skip sub-disable teardown for never-linked sub-schedulers A sub-scheduler enable can fail before scx_link_sched() links the sched into the hierarchy, e.g. when the parent is already being disabled, and cleanup still runs the full scx_sub_disable(). That is racy against root disable: drain_descendants() is the only ordering between a sub's disable-time task walk and root disable's all-task teardown, and an unlinked sub is invisible to it. Root's teardown can thus run between the never-linked sub's drain and its walk, exiting every task to no scheduler. The walk then trips the membership WARN and re-homes the exited tasks onto the dying hierarchy, a use-after-free. Skip the cgroup ownership reset and the task walk if @sch was never linked, indicated by the empty ->sibling as unlinking only happens later in the same function. The membership WARN remains valid: a linked sub is always waited on by an ancestor's drain. The Linux kernel CVE team has assigned CVE-2026-74731 to this issue. Affected and fixed versions =========================== Issue introduced in 7.1 with commit 337ec00b1d9c676f637651c2cefddb8612b867ee and fixed in 7.1.9 with commit 6428093a4a986c38c9089b5eb32b56d914ef437a Issue introduced in 7.1 with commit 337ec00b1d9c676f637651c2cefddb8612b867ee and fixed in 7.2 with commit 8c13364db9c9a43ed286f3a8d0fb9477b1adc43c 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-74731 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/6428093a4a986c38c9089b5eb32b56d914ef437a https://git.kernel.org/stable/c/8c13364db9c9a43ed286f3a8d0fb9477b1adc43c