HIGH Introduced in 4.14
cgroup Cpuset UAF
CVE-2026-98972
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
01Description
In the Linux kernel, the following vulnerability has been resolved: cgroup/cpuset: Don't access cpuset_cgrp_subsys.root in is_in_v2_mode() After seeing the patch [1] to guard is_in_v2_mode() with RCU, it makes me realize that is_in_v2_mode() may be called in a context where a new cgroup filesystem is being rebound with stale cpuset_cgrp_subsys.root pointer. Avoid this potential UaF situation by adding a new cpuset_v2_mode flag which is set when the cpuset_v2_mode mount option is used. This flag is written into only when cpuset_bind() is being called with a stable cpuset_cgrp_subsys.root value. The is_in_v2_mode() helper is modified to read the new cpuset_v2_mode flag instead of accessing cpuset_cgrp_subsys.root directly. [1] https://lore.kernel.org/lkml/20260929084124.626693-2-arighi@nvidia.com
02KernelScan AI Analysis
Risk summary
A local unprivileged user can trigger a use-after-free in the cpuset controller by racing cgroup filesystem rebind operations with code paths that check the v2 mode flag. This can lead to kernel memory corruption, privilege escalation, or denial of service. The vulnerability is reachable from containers and user namespaces where cgroup hierarchies can be manipulated.
Vulnerability analysis
The cpuset controller's is_in_v2_mode() helper originally read the CGRP_ROOT_CPUSET_V2_MODE flag directly from cpuset_cgrp_subsys.root. During a cgroup filesystem rebind, the root pointer can be updated while another thread is still accessing the old root structure, creating a use-after-free window. The fix introduces a dedicated cpuset_v2_mode flag that is cached atomically at bind time when the root pointer is stable. The helper now reads this cached flag instead of dereferencing the potentially stale root pointer, eliminating the race condition.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 7.2 | 4.14 | 7.2.11 | 988bf67a1389 |
| mainline | 4.14 | 7.3 | e06b678e3b4e |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Affected — no CIP fix yet (latest 6.12.118-cip136) |
| cip/6.1 | Affected — no CIP fix yet (latest 6.1.190-cip62) |
| cip/6.1-rt | Affected — no CIP fix yet (latest 6.1.189-cip61-rt32) |
| cip/5.10 | Affected — no CIP fix yet (latest 5.10.272-cip79) |
| cip/5.10-rt | Affected — no CIP fix yet (latest 5.10.272-cip79-rt35) |
| cip/4.19 | Affected — no CIP fix yet (latest 4.19.325-cip137) |
| cip/4.19-rt | Affected — no CIP fix yet (latest 4.19.325-cip137-rt51) |