KernelScan.io

HIGH Introduced in 4.14

cgroup Cpuset UAF

CVE-2026-98972

CVSS 7.0 / 10.0 KernelScan AI

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

01

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

02

Engine v0.9.0

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.

Affectedkernel/cgroup/cpuset.c (cgroup/cpuset subsystem)

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.

03

BranchIntroducedFixed inPatch commit
7.24.147.2.11988bf67a1389
mainline4.147.3e06b678e3b4e

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Affected — no CIP fix yet (latest 6.12.118-cip136)
cip/6.1Affected — no CIP fix yet (latest 6.1.190-cip62)
cip/6.1-rtAffected — no CIP fix yet (latest 6.1.189-cip61-rt32)
cip/5.10Affected — no CIP fix yet (latest 5.10.272-cip79)
cip/5.10-rtAffected — no CIP fix yet (latest 5.10.272-cip79-rt35)
cip/4.19Affected — no CIP fix yet (latest 4.19.325-cip137)
cip/4.19-rtAffected — no CIP fix yet (latest 4.19.325-cip137-rt51)