# CVE-2026-98163: cgroup: Avoid iteration of dying tasks with zero refcount

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.11% (percentile 1, 2026-11-28)
- **CWE:** CWE-362, CWE-416
- **Published:** 2026-09-26T08:31:50.899Z
- **Modified:** 2026-10-19T10:18:16.653Z

## Who should check

- Anyone running Linux \>= 260fbcb92bbeacfcd050410fdc2d24ab15044400, \< 828938118d6c2bb711301748c3e39e4bed6a62f5; \>= 260fbcb92bbeacfcd050410fdc2d24ab15044400, \< 057dac23d329d5c5ed62352f2659a39fd46c6d4a
- Anyone running Linux 6.19

## Description

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

cgroup: Avoid iteration of dying tasks with zero refcount

The commit 260fbcb92bbea ("cgroup: Move dying\_tasks cleanup from
cgroup\_task\_release() to cgroup\_task\_free()") extended the lifetime of
tasks on the dying\_tasks list.
The iterators have provision to go through dying\_tasks because of
dying threadgroup leaders or explicit CSS\_TASK\_ITER\_WITH\_DEAD, however,
it was expected that such tasks can obtain a new reference (that is
possible before cgroup\_task\_release()/put\_task\_struct\_rcu\_user()).
The tasks after cgroup\_task\_release() and before cgroup\_task\_free()
are subject to race when they may or may not have -\>usage count \> 0.

The race window is between css\_task\_iter\_next() invocations
when css\_set\_lock is released and we may arrive at a new -\>task\_pos.
The iterator should not attempt to resurrect tasks whose -\>usage count
dropped to zero. (When that happens, \_\_put\_task\_struct\_rcu\_cb() is
already imminent and the returned task\_struct would could be used
after free.)

As for the fix, we cannot simply check the signal-\>live count of a task
on the dying list because that won't distinguish regular zombies waiting
to be reaped from RCU remnant tasks that are going to be free'd.
Therefore add an extra check to rule out -\>usage==0 tasks from any
iteration.

The repeat: loop in css\_task\_iter\_advance() doesn't consider -\>usage
count, so add a new loop to css\_task\_iter\_next() to skip de-used tasks
on the dying\_list.

Rough illustration of the possible race

  R (reader of cgroup.procs)         T (thread)                       L (group leader)
  ---------------------------------  -------------------------------- --------------------------------
                                                                      L exits, signal-\>live \> 0
                                                                      cgroup\_task\_dead(L)
                                                                        css\_set\_skip\_task\_iters() // skips only cset-\>tasks
                                                                        list\_add\_tail(&L-\>cg\_list, &cset-\>dying\_tasks)
  css\_task\_iter\_next()
    take css\_set\_lock
    css\_task\_iter\_advance()
      leader && signal-\>live != 0
      =\> it-\>task\_pos = &L-\>cg\_list
    release css\_set\_lock
                                     T exits
                                     --signal-\>live == 0
				     cgroup\_task\_dead(T) // css\_set\_lock
                                     release\_task(T)
                                       cgroup\_task\_release(T)
                                       release\_task(L) // zap\_leader
                                         cgroup\_task\_release(L)
                                         put\_task\_struct\_rcu\_user(L)
                                         ...RCU...
                                         put\_task\_struct(L)
                                           L-\>usage = 0
                                           /\* L still on dying\_tasks \*/
                                           ...RCU...
                                           \_\_put\_task\_struct(L)
  css\_task\_iter\_next() // another iteration
    take css\_set\_lock
    it-\>task\_pos = &L-\>cg\_list
    get\_task\_struct(L)
      =\> addition on 0
    drop css\_set\_lock
                                           cgroup\_task\_free(L)
                                             css\_set\_skip\_task\_iters() // dying skip comes too late
                                           free\_task(L)
  cgroup\_procs\_show()
    task\_pid\_vnr(L)

## Affected and fixed versions

- Linux: \>= 260fbcb92bbeacfcd050410fdc2d24ab15044400, \< 828938118d6c2bb711301748c3e39e4bed6a62f5; \>= 260fbcb92bbeacfcd050410fdc2d24ab15044400, \< 057dac23d329d5c5ed62352f2659a39fd46c6d4a (cvelist)
- Linux: 6.19 (cvelist)

## Mitigation

- Upgrade Linux to 057dac23d329d5c5ed62352f2659a39fd46c6d4a or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-98163.md
Affected: Linux >= 260fbcb92bbeacfcd050410fdc2d24ab15044400, < 828938118d6c2bb711301748c3e39e4bed6a62f5; >= 260fbcb92bbeacfcd050410fdc2d24ab15044400, < 057dac23d329d5c5ed62352f2659a39fd46c6d4a; Linux 6.19
Fixed in: Linux 828938118d6c2bb711301748c3e39e4bed6a62f5, Linux 057dac23d329d5c5ed62352f2659a39fd46c6d4a

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-98163 being exploited?

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

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

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 260fbcb92bbeacfcd050410fdc2d24ab15044400, \< 828938118d6c2bb711301748c3e39e4bed6a62f5; \>= 260fbcb92bbeacfcd050410fdc2d24ab15044400, \< 057dac23d329d5c5ed62352f2659a39fd46c6d4a; Linux 6.19.

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

Yes. Fixed in Linux 828938118d6c2bb711301748c3e39e4bed6a62f5, Linux 057dac23d329d5c5ed62352f2659a39fd46c6d4a. Upgrade Linux to 057dac23d329d5c5ed62352f2659a39fd46c6d4a or later.

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

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/828938118d6c2bb711301748c3e39e4bed6a62f5>
- patch: <https://git.kernel.org/stable/c/057dac23d329d5c5ed62352f2659a39fd46c6d4a>

## 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-98163>

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