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 B4CDC3AEF3A for ; Thu, 28 May 2026 09:39:58 +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=1779961199; cv=none; b=RYIRYPQO/HwJC+I/bNWXBjSj1bDp1PNgF4LeoiF6wq+/4Ln3YNR5kSfcuD4Bsoj42ESAQ4CV40ypUTY6yu92l7HHiL+Iz4vntOuy4hkIFRbhIYRky7UE9eOG2sfbBasl3Ephm84z7OZ1lD27UvLMUSaehYQvweo0WfwIaHzXAHI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779961199; c=relaxed/simple; bh=CWrOmiYT/WrZaW8Qeclu1STAtQPlwnhWDKglxLamrWs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=eCz7LaJcUsRL82uxh5FkHh6VcWmuYLhQga7x8o+WwdvXSBuAEabeqLxdw6dqrMkPWUgHo6cDjdlZpDEz873/Y2DxBGO0iIttb3hTCP7jDqxqd1yViwogaFs0e6RgUZyMt3O86Svp/aRQUF3PHJXScv1j/xZqoDrw73v+h2q55tM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=p+xK1cHR; 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="p+xK1cHR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 168601F000E9; Thu, 28 May 2026 09:39:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779961198; bh=rsKiASxarnqpXM71gBsRvBYIFB3Ia846jOLJyW8JnJU=; h=From:To:Cc:Subject:Date:Reply-To; b=p+xK1cHR2/CPbfGSsTkOlysujhz2DWeBP/sHLkT0gszoWXaYTkytnsEs4jTfw4s8j L9E+5buMa2rtdwoHPzM7c24jNoIWyiqvir0yUhw6fIvnN5ZjTvcBmA39ZS3z6c4r/g 3UZMwaXJ/rdeBiXMNZJBsagmm4/fexQTFJUBpYw4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46154: sched_ext: Read scx_root under scx_cgroup_ops_rwsem in cgroup setters Date: Thu, 28 May 2026 11:36:59 +0200 Message-ID: <2026052823-CVE-2026-46154-3357@gregkh> X-Mailer: git-send-email 2.54.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=2623; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=eji+/9q+c+qLWYXVY7caPIu76OEHBjUXIFitcnq6Sk0=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkSPNOnLYt6qu3kcMZmx3Hjs5NmqFXs/nrmuXRvK5vSr NZrszamdsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEOksYFjR8vyoxPWfW0jce Hw9u+8Rs73xdI5FhDq/dW/m3OVZ9aaGT5Xw2d92us+1KBgA= 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: Read scx_root under scx_cgroup_ops_rwsem in cgroup setters scx_group_set_{weight,idle,bandwidth}() cache scx_root before acquiring scx_cgroup_ops_rwsem, so the pointer can be stale by the time the op runs. If the loaded scheduler is disabled and freed (via RCU work) and another is enabled between the naked load and the rwsem acquire, the reader sees scx_cgroup_enabled=true (the new scheduler's) but dereferences the freed one - UAF on SCX_HAS_OP(sch, ...) / SCX_CALL_OP(sch, ...). scx_cgroup_enabled is toggled only under scx_cgroup_ops_rwsem write (scx_cgroup_{init,exit}), so reading scx_root inside the rwsem read section correlates @sch with the enabled snapshot. The Linux kernel CVE team has assigned CVE-2026-46154 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18 with commit a5bd6ba30b3364354269b81ac55c2edca9a96d6d and fixed in 6.18.32 with commit ce9aaa3af445c391735c9d000c4db60dfd5640d4 Issue introduced in 6.18 with commit a5bd6ba30b3364354269b81ac55c2edca9a96d6d and fixed in 7.0.7 with commit 0f54f6355575971673d8aac7da107ec4178e45bd Issue introduced in 6.18 with commit a5bd6ba30b3364354269b81ac55c2edca9a96d6d and fixed in 7.1-rc2 with commit 80afd4c84bc8f5e80145ce35279f5ce53f6043db 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-46154 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.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/ce9aaa3af445c391735c9d000c4db60dfd5640d4 https://git.kernel.org/stable/c/0f54f6355575971673d8aac7da107ec4178e45bd https://git.kernel.org/stable/c/80afd4c84bc8f5e80145ce35279f5ce53f6043db