Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-98542 Overview
CVE-2026-98542 is a Linux kernel vulnerability in the cgroup/cpuset subsystem. The flaw allows a remote partition to be enabled on CPUs already claimed by an ancestor local partition through the subpartitions_cpus mask. The issue was introduced by commit 86888c7bd117 ("cgroup/cpuset: Add warnings to catch inconsistency in exclusive CPUs"), which replaced an explicit cpumask_intersects() error check in remote_partition_enable() with a WARN_ON_ONCE(). As a result, the kernel emits a warning but still proceeds to create a conflicting active root partition, leaving two cgroups claiming exclusive ownership of the same CPU.
Critical Impact
Conflicting cpuset root partitions can both claim ownership of the same exclusive CPU, breaking cgroup isolation guarantees relied on by container runtimes and workload schedulers.
Affected Products
- Linux kernel (reproduced on 7.3.0-rc3)
- Linux kernel stable branches referenced by commits 0751ab665cb3, 241e67b60308, and 31c88350b7dd
- Systems using cgroup v2 cpuset partitions with exclusive CPU assignments
Discovery Timeline
- 2026-10-18 - CVE-2026-98542 published to NVD
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-98542
Vulnerability Analysis
The vulnerability resides in kernel/cgroup/cpuset.c at the remote_partition_enable() function (line 1594). When a user creates a remote partition beneath an existing local partition via a non-partition intermediate cgroup (state PRS_MEMBER), update_prstate() observes parent->partition_root_state == PRS_MEMBER and routes the request through remote_partition_enable().
Before the regression, the function validated that the requested tmp->new_cpus did not intersect subpartitions_cpus, which tracks CPUs already assigned to existing partitions. The replacement with WARN_ON_ONCE() degraded this hard error into a non-fatal warning. The function continues execution and activates the new partition even though the CPU is already owned by an ancestor partition.
The reproducer provided in the kernel changelog creates partition /tmp/cg1/A as a root partition owning CPU 1, then creates /tmp/cg1/A/B/D as a nested root partition also claiming CPU 1. Both cgroups end up as active root partitions simultaneously, violating the exclusivity invariant.
Root Cause
The root cause is a weakened validation check in remote_partition_enable(). The prior cpumask_intersects(tmp->new_cpus, subpartitions_cpus) conditional returned an error; the regression converted it to WARN_ON_ONCE() without the corresponding early return. This is a logic error in input validation [CWE-20] within the cgroup partition state machine.
Attack Vector
Exploitation requires local privileges sufficient to mount and configure cgroup v2 hierarchies and to write cpuset partition configuration files. The attack is executed by writing a sequence of values to cpuset.cpus, cpuset.cpus.exclusive, and cpuset.cpus.partition across nested cgroups. No network vector exists. The impact is denial of correct isolation rather than code execution.
The vulnerability is described in prose only; see the upstream patch at Kernel Git Commit 0751ab665cb3 for the authoritative fix.
Detection Methods for CVE-2026-98542
Indicators of Compromise
- Kernel log entries containing WARNING: kernel/cgroup/cpuset.c:1594 at remote_partition_enable+0x1c1/0x300.
- Multiple cgroups reporting root in cpuset.cpus.partition while sharing CPUs listed in cpuset.cpus.exclusive.
- Unexpected scheduling behavior or workload interference between containers that should be CPU-isolated.
Detection Strategies
- Audit /sys/fs/cgroup hierarchies to enumerate every cgroup where cpuset.cpus.partition reads root and compare their exclusive CPU masks for overlap.
- Monitor dmesg and journald output for remote_partition_enable warnings generated at runtime.
- Correlate workload performance anomalies with cgroup partition state transitions logged by orchestration systems.
Monitoring Recommendations
- Forward kernel ring buffer messages to a central log pipeline and alert on the specific warning string from cpuset.c.
- Add periodic health checks that parse cpuset partition state across the cgroup v2 tree.
- Track container runtime and Kubernetes CPU manager events that invoke exclusive CPU pinning operations.
How to Mitigate CVE-2026-98542
Immediate Actions Required
- Apply the upstream patch series referenced by commits 0751ab665cb3, 241e67b60308, and 31c88350b7dd to affected kernel builds.
- Rebuild and redeploy custom kernels, then validate using tools/testing/selftests/cgroup/test_cpuset_prs.sh.
- Inventory production hosts that use cgroup v2 exclusive partitions and prioritize them for patching.
Patch Information
The fix restores the intersection check by returning PERR_NOCPUS from remote_partition_enable() when tmp->new_cpus intersects subpartitions_cpus, matching the error returned by remote_cpus_update() for the same conflict. A regression test case was added to tools/testing/selftests/cgroup/test_cpuset_prs.sh. See Kernel Git Commit 241e67b60308 and Kernel Git Commit 31c88350b7dd.
Workarounds
- Avoid creating nested root partitions through non-partition intermediate cgroups until the kernel is patched.
- Restrict access to cgroup v2 control files to trusted orchestration components only.
- Validate container runtime and scheduler configurations to prevent overlapping exclusive CPU assignments between parent and descendant cgroups.
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

