CVE-2026-46154

sched_ext: Read scx_root under scx_cgroup_ops_rwsem in cgroup setters

State
Published
Severity
7.0 High
Published
May 28, 2026
Updated
Aug 5, 2026
Reserved
May 13, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.0 HighCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • a5bd6ba30b3364354269b81ac55c2edca9a96d6d to before ce9aaa3af445c391735c9d000c4db60dfd5640d4Affected
  • a5bd6ba30b3364354269b81ac55c2edca9a96d6d to before 0f54f6355575971673d8aac7da107ec4178e45bdAffected
  • a5bd6ba30b3364354269b81ac55c2edca9a96d6d to before 80afd4c84bc8f5e80145ce35279f5ce53f6043dbAffected
LinuxLinux
  • 6.18Affected
  • before 6.18Not affected
  • 6.18.32 through 6.18.*Not affected
  • 7.0.7 through 7.0.*Not affected
  • 7.1 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.