# CVE-2026-43439: cgroup: fix race between task migration and iteration

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.7
- **CVSS:** 4.7 (v3.1, NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.09% (percentile 0, 2026-12-04)
- **CWE:** CWE-362
- **Published:** 2026-05-08T14:22:08.626Z
- **Modified:** 2026-11-11T20:10:00.273Z

## Who should check

- Anyone running Linux \>= b636fd38dc40113f853337a7d2a6885ad23b8811, \< 7c85debc35e6d131bd29c64f2ae78c6ede0e55c4; \>= b636fd38dc40113f853337a7d2a6885ad23b8811, \< 3b95abab7369235a37b15eaec6e1a0b443bba7c7; \>= b636fd38dc40113f853337a7d2a6885ad23b8811, \< 4a9654a2b46cfdaae287fb8995f536245635e467; \>= b636fd38dc40113f853337a7d2a6885ad23b8811, \< 3dfd1328c05234e8d8fa61948b2ba82680594988; \>= b636fd38dc40113f853337a7d2a6885ad23b8811, \< 9cca530c7cc1b3e02cb8fa7f80060dd4b38562ce; \>= b636fd38dc40113f853337a7d2a6885ad23b8811, \< 86ceaccfdfa16dad05addb33dc206e03589bcfd1; \>= b636fd38dc40113f853337a7d2a6885ad23b8811, \< 9dc76f6fc0d28d2382583715bc4ec22f28104845; \>= b636fd38dc40113f853337a7d2a6885ad23b8811, \< 5ee01f1a7343d6a3547b6802ca2d4cdce0edacb1; b0af004fd58ded5f898630db008c5b824c27d7db; 370b9e6399da09fe10005fe455878b356de7b85f; …
- Anyone running Linux 5.2

## Description

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

cgroup: fix race between task migration and iteration

When a task is migrated out of a css\_set, cgroup\_migrate\_add\_task()
first moves it from cset-\>tasks to cset-\>mg\_tasks via:

    list\_move\_tail(&task-\>cg\_list, &cset-\>mg\_tasks);

If a css\_task\_iter currently has it-\>task\_pos pointing to this task,
css\_set\_move\_task() calls css\_task\_iter\_skip() to keep the iterator
valid. However, since the task has already been moved to -\>mg\_tasks,
the iterator is advanced relative to the mg\_tasks list instead of the
original tasks list. As a result, remaining tasks on cset-\>tasks, as
well as tasks queued on cset-\>mg\_tasks, can be skipped by iteration.

Fix this by calling css\_set\_skip\_task\_iters() before unlinking
task-\>cg\_list from cset-\>tasks. This advances all active iterators to
the next task on cset-\>tasks, so iteration continues correctly even
when a task is concurrently being migrated.

This race is hard to hit in practice without instrumentation, but it
can be reproduced by artificially slowing down cgroup\_procs\_show().
For example, on an Android device a temporary
/sys/kernel/cgroup/cgroup\_test knob can be added to inject a delay
into cgroup\_procs\_show(), and then:

  1) Spawn three long-running tasks (PIDs 101, 102, 103).
  2) Create a test cgroup and move the tasks into it.
  3) Enable a large delay via /sys/kernel/cgroup/cgroup\_test.
  4) In one shell, read cgroup.procs from the test cgroup.
  5) Within the delay window, in another shell migrate PID 102 by
     writing it to a different cgroup.procs file.

Under this setup, cgroup.procs can intermittently show only PID 101
while skipping PID 103. Once the migration completes, reading the
file again shows all tasks as expected.

Note that this change does not allow removing the existing
css\_set\_skip\_task\_iters() call in css\_set\_move\_task(). The new call
in cgroup\_migrate\_add\_task() only handles iterators that are racing
with migration while the task is still on cset-\>tasks. Iterators may
also start after the task has been moved to cset-\>mg\_tasks. If we
dropped css\_set\_skip\_task\_iters() from css\_set\_move\_task(), such
iterators could keep task\_pos pointing to a migrating task, causing
css\_task\_iter\_advance() to malfunction on the destination css\_set,
up to and including crashes or infinite loops.

The race window between migration and iteration is very small, and
css\_task\_iter is not on a hot path. In the worst case, when an
iterator is positioned on the first thread of the migrating process,
cgroup\_migrate\_add\_task() may have to skip multiple tasks via
css\_set\_skip\_task\_iters(). However, this only happens when migration
and iteration actually race, so the performance impact is negligible
compared to the correctness fix provided here.

## Affected and fixed versions

- Linux: \>= b636fd38dc40113f853337a7d2a6885ad23b8811, \< 7c85debc35e6d131bd29c64f2ae78c6ede0e55c4; \>= b636fd38dc40113f853337a7d2a6885ad23b8811, \< 3b95abab7369235a37b15eaec6e1a0b443bba7c7; \>= b636fd38dc40113f853337a7d2a6885ad23b8811, \< 4a9654a2b46cfdaae287fb8995f536245635e467; \>= b636fd38dc40113f853337a7d2a6885ad23b8811, \< 3dfd1328c05234e8d8fa61948b2ba82680594988; \>= b636fd38dc40113f853337a7d2a6885ad23b8811, \< 9cca530c7cc1b3e02cb8fa7f80060dd4b38562ce; \>= b636fd38dc40113f853337a7d2a6885ad23b8811, \< 86ceaccfdfa16dad05addb33dc206e03589bcfd1; \>= b636fd38dc40113f853337a7d2a6885ad23b8811, \< 9dc76f6fc0d28d2382583715bc4ec22f28104845; \>= b636fd38dc40113f853337a7d2a6885ad23b8811, \< 5ee01f1a7343d6a3547b6802ca2d4cdce0edacb1; b0af004fd58ded5f898630db008c5b824c27d7db; 370b9e6399da09fe10005fe455878b356de7b85f; … (cvelist)
- Linux: 5.2 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-43439. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-43439.md
Affected: Linux >= b636fd38dc40113f853337a7d2a6885ad23b8811, < 7c85debc35e6d131bd29c64f2ae78c6ede0e55c4; >= b636fd38dc40113f853337a7d2a6885ad23b8811, < 3b95abab7369235a37b15eaec6e1a0b443bba7c7; >= b636fd38dc40113f853337a7d2a6885ad23b8811, < 4a9654a2b46cfdaae287fb8995f536245635e467; >= b636fd38dc40113f853337a…
Fixed in: Linux 7c85debc35e6d131bd29c64f2ae78c6ede0e55c4, Linux 3b95abab7369235a37b15eaec6e1a0b443bba7c7, Linux 4a9654a2b46cfdaae287fb8995f536245635e467, Linux 3dfd1328c05234e8d8fa61948b2ba82680594988, Linux 9cca530c7cc1b3e02cb8fa7f80060dd4b38562ce, Linux 86ceaccfdfa16dad05addb33dc206e03589bcfd1, Linux 9dc76…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-43439 being exploited?

There is no confirmed exploitation: CVE-2026-43439 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.09% chance of exploitation in the next 30 days (as of 2026-12-04).

### How serious is CVE-2026-43439?

Medium: CVSS 4.7 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-43439?

Linux \>= b636fd38dc40113f853337a7d2a6885ad23b8811, \< 7c85debc35e6d131bd29c64f2ae78c6ede0e55c4; \>= b636fd38dc40113f853337a7d2a6885ad23b8811, \< 3b95abab7369235a37b15eaec6e1a0b443bba7c7; \>= b636fd38dc40113f853337a7d2a6885ad23b8811, \< 4a9654a2b46cfdaae287fb8995f536245635e467; \>= b636fd38dc40113f853337a7d2a6885ad23b8811, \< 3dfd1328c05234e8d8fa61948b2ba82680594988; \>= b636fd38dc40113f853337a7d2a6885ad23b8811, \< 9cca530c7cc1b3e02cb8fa7f80060dd4b38562ce; \>= b636fd38dc40113f853337a7d2a6885ad23b8811, \< 86ceaccfdfa16dad05addb33dc206e03589bcfd1; \>= b636fd38dc40113f853337a7d2a6885ad23b8811, \< 9dc76f6fc0d28d2382583715bc4ec22f28104845; \>= b636fd38dc40113f853337a7d2a6885ad23b8811, \< 5ee01f1a7343d6a3547b6802ca2d4cdce0edacb1; b0af004fd58ded5f898630db008c5b824c27d7db; 370b9e6399da09fe10005fe455878b356de7b85f; …; Linux 5.2.

### Is there a fix for CVE-2026-43439?

Yes. Fixed in Linux 7c85debc35e6d131bd29c64f2ae78c6ede0e55c4, Linux 3b95abab7369235a37b15eaec6e1a0b443bba7c7, Linux 4a9654a2b46cfdaae287fb8995f536245635e467, Linux 3dfd1328c05234e8d8fa61948b2ba82680594988, Linux 9cca530c7cc1b3e02cb8fa7f80060dd4b38562ce, Linux 86ceaccfdfa16dad05addb33dc206e03589bcfd1, Linux 9dc76f6fc0d28d2382583715bc4ec22f28104845, Linux 5ee01f1a7343d6a3547b6802ca2d4cdce0edacb1. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-43439?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/7c85debc35e6d131bd29c64f2ae78c6ede0e55c4>
- patch: <https://git.kernel.org/stable/c/3b95abab7369235a37b15eaec6e1a0b443bba7c7>
- patch: <https://git.kernel.org/stable/c/4a9654a2b46cfdaae287fb8995f536245635e467>
- patch: <https://git.kernel.org/stable/c/3dfd1328c05234e8d8fa61948b2ba82680594988>
- patch: <https://git.kernel.org/stable/c/9cca530c7cc1b3e02cb8fa7f80060dd4b38562ce>
- patch: <https://git.kernel.org/stable/c/86ceaccfdfa16dad05addb33dc206e03589bcfd1>
- patch: <https://git.kernel.org/stable/c/9dc76f6fc0d28d2382583715bc4ec22f28104845>
- patch: <https://git.kernel.org/stable/c/5ee01f1a7343d6a3547b6802ca2d4cdce0edacb1>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-43439>

HTML: <https://flawdb.com/CVE-2026-43439> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-43439>
