bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-98972

—unknown

linux6.18.60 · 6.18.54 · 6.18.8 · 6.12.21in 4 of 4 releases

Not yet analysed by NVD. Matched on the vendor's record; this may change when NVD has analysed it.

Reach linux · 8 builds in 4 of 4 releases

full reviewcross-check✓ a member decided

Description · NVD

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

Published 2026-10-23NVD

References 2
Review Av26.10.0x86_64Not affectedFable 5.2 · medium confidence · 2026-11-19

The upstream fix is not in this tree: is_in_v2_mode() in kernel/cgroup/cpuset.c still reads cpuset_cgrp_subsys.root->flags, and no applied patch touches cpuset or cgroup.

However, the stale-pointer read cannot happen in this build because CONFIG_CPUSETS_V1 is not set. cpuset_v2() therefore returns true as a compile-time constant, and the || in is_in_v2_mode() short-circuits before the cpuset_cgrp_subsys.root dereference, which is the only such access in kernel/cgroup/.

The vulnerable feature (the legacy v1 cpuset cpuset_v2_mode path) is effectively not compiled in, so reachability was not assessed further.

Evidence 11
  1. `is_in_v2_mode()` returns `cpuset_v2() || (cpuset_cgrp_subsys.root->flags & CGRP_ROOT_CPUSET_V2_MODE)`: the unfixed form, with the root dereference only on the right-hand side of `||`.

    output/build/linux-6.18.60/kernel/cgroup/cpuset.c:349-353

  2. `cpuset_v2()` returns `!IS_ENABLED(CONFIG_CPUSETS_V1) || cgroup_subsys_on_dfl(cpuset_cgrp_subsys)`, which is constant true when `CONFIG_CPUSETS_V1` is off.

    output/build/linux-6.18.60/kernel/cgroup/cpuset.c:335-339

  3. `CONFIG_CPUSETS=y` and `# CONFIG_CPUSETS_V1 is not set`.

    output/build/linux-6.18.60/.config:213-214

  4. The defconfig sets only `CONFIG_CPUSETS=y`; it does not enable `CONFIG_CPUSETS_V1`.

    board/x86_64/linux_defconfig:24

  5. `config CPUSETS_V1` is `default n`, so it stays off unless explicitly selected.

    output/build/linux-6.18.60/init/Kconfig:1266-1269

  6. `BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES=""`: no config fragment could turn `CONFIG_CPUSETS_V1` on.

    output/.config:462

  7. The only access to `cpuset_cgrp_subsys.root` is `cpuset.c:352`; there is no other stale-root read in the cgroup code.

    output/build/linux-6.18.60/kernel/cgroup/ (search for `cpuset_cgrp_subsys.root`)

  8. `cpuset_bind()` calls `is_in_v2_mode()` and writes no separate `cpuset_v2_mode` flag, confirming the fix commit is not applied.

    output/build/linux-6.18.60/kernel/cgroup/cpuset.c:3793-3810

  9. No applied patch name contains `cpuset` or `cgroup`.

    output/build/linux-6.18.60/.applied_patches_list

  10. `kernel/cgroup/cpuset.o` is built, so the file is compiled, but the flagged expression is dead under this config.

    output/objects.txt:22069

  11. Kernel source is 6.18.60.

    output/build/linux-6.18.60/Makefile:2-4

Version and patches

The source is 6.18.60 and does not contain the fix: is_in_v2_mode() still dereferences cpuset_cgrp_subsys.root, and cpuset_bind() sets no cpuset_v2_mode flag. None of the applied patches in .applied_patches_list names cpuset or cgroup.

I could not confirm the affected range or the fixed stable version, because the upstream commits (988bf67a1389, e06b678e3b4e) and the NVD record are not available in the tree.

The not-affected finding rests on configuration (CONFIG_CPUSETS_V1 unset), not on a fix being present.

Recommendation

Document as not applicable for the x86_64 build, with the reason that CONFIG_CPUSETS_V1 is disabled.

No backport is needed now. Take the fix through the next routine stable kernel bump, and re-evaluate if CONFIG_CPUSETS_V1 is ever enabled.

This review covers only board/x86_64/linux_defconfig; check CONFIG_CPUSETS_V1 in the kernel configs of the other Infix architectures separately.

Open questions

The upstream fix commits and the affected version range could not be checked offline, so I could not confirm which 6.18.y release carries the fix.

The claim that the dereference is eliminated is read from the source (IS_ENABLED() constant folding and || short-circuiting); I did not inspect the compiled object, which is not unpacked in this tree.

Other board kernel configs (for example aarch64) were not reviewed.

Members of Kernel Kit decide. Sign in if you are one.