What’s Vulnerable › Vulnerabilities
CVE-2026-46154: sched_ext: Read scx_root under scx_cgroup_ops_rwsem in cgroup setters
- Severity: high (CVSS 7.0 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.1% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-05-28 · updated 2026-06-17
- Weakness: CWE-416
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.
Affected products
- Linux kernel: from 6.18 before 6.18.32; from 6.19 before 7.0.7; 7.1-rc1 — fixed in 6.18.32, 7.0.7
How to fix
Upgrade to a fixed version: Linux kernel 6.18.32, 7.0.7. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/0f54f6355575971673d8aac7da107ec4178e45bd
- https://git.kernel.org/stable/c/80afd4c84bc8f5e80145ce35279f5ce53f6043db
- https://git.kernel.org/stable/c/ce9aaa3af445c391735c9d000c4db60dfd5640d4
Get alerted when CVE-2026-46154 or the next vulnerability affects your stack