# CVE-2026-139270: cgroup/cpuset: Properly disabling partition when partition state switching fails

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2026-11-30T13:33:11.644Z
- Modified: 2026-11-30T14:18:49.743Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

cgroup/cpuset: Properly disabling partition when partition state switching fails

Before commit 103b08709e8a ("cgroup/cpuset: Fail if isolated and nohz_full
don't leave any housekeeping"), the partition state can be freely switched
from "root" to "isolated" and vice versa. After that commit, the switch
from "root" to "isolated" can fail if it exhausts all the housekeeping
CPUs. Later on, the switch from "isolated" to "root" can also fail if
some of the partition CPUs are boot-time isolated by "isolcpus".

A local or remote partition is made invalid when the switch fails.
However there are 2 problems with the existing invalidation code.

 1) Both the subpartitions_cpus and isolated_cpus are not properly
    updated.
 2) In the case of remote partition with remote_partition flag set, it
    is not cleared.

Fix this by calling the proper partition disabling function in this case.

On an x86 test system with boot option "isolcpus=10 cgroup_debug" set
and more than 16 cores, the following commands were executed after boot.

  # cd /sys/fs/cgroup
  # echo +cpuset > cgroup.subtree_control
  # cat cpuset.cpus.isolated
  10
  # mkdir A
  # echo 10-12 > A/cpuset.cpus
  # echo isolated > A/cpuset.cpus.partition
  # cat A/cpuset.cpus.partition
  isolated

Before the patch:

  # echo root > A/cpuset.cpus.partition
  # cat A/cpuset.cpus.partition
  root invalid (partition config conflicts with housekeeping setup)
  # cat cpuset.cpus.isolated .__DEBUG__.cpuset.cpus.subpartitions
  10-12
  10-12

After the patch:

  # echo root > A/cpuset.cpus.partition
  # cat A/cpuset.cpus.partition
  root invalid (partition config conflicts with housekeeping setup)
  # cat cpuset.cpus.isolated .__DEBUG__.cpuset.cpus.subpartitions
  10

(As written by CVE List.)

## Affected

- Linux Linux: from 4a74e418881f26cdeae1011453acd66cedc8ad2c before 52e75bbfc1942e275b71eb7402acdfbb65ece5c1; from 4a74e418881f26cdeae1011453acd66cedc8ad2c before 5ba729165a9ec590b0a3fde98c24cd063711b89a; from 4a74e418881f26cdeae1011453acd66cedc8ad2c before db27a748a399e24af715c54c12a7e928e32d15b0; 6.7 (not affected: before 6.7; from 6.18.66 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/52e75bbfc1942e275b71eb7402acdfbb65ece5c1>
- <https://git.kernel.org/stable/c/5ba729165a9ec590b0a3fde98c24cd063711b89a>
- <https://git.kernel.org/stable/c/db27a748a399e24af715c54c12a7e928e32d15b0>

## Sources

- CVE List: [CVE-2026-139270](https://www.cve.org/CVERecord?id=CVE-2026-139270), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139270](https://nvd.nist.gov/vuln/detail/CVE-2026-139270), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139270 · Whole record: https://cve.day/CVE-2026-139270.json · Rebuilt by cve.day 2026-11-30T14:33:21.002Z
