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-98163 Overview
CVE-2026-98163 is a use-after-free vulnerability in the Linux kernel's cgroup subsystem. The flaw affects iteration of tasks on the dying_tasks list after commit 260fbcb92bbea extended the lifetime of these tasks. A race window between cgroup_task_release() and cgroup_task_free() allows the iterator in css_task_iter_next() to call get_task_struct() on a task whose ->usage refcount has already dropped to zero. The resulting pointer references memory that is about to be freed by __put_task_struct_rcu_cb(), enabling a use-after-free when readers of cgroup.procs dereference the task.
Critical Impact
Local processes reading cgroup.procs can trigger a kernel use-after-free on task_struct, leading to memory corruption or denial of service on affected Linux kernels.
Affected Products
- Linux kernel versions containing commit 260fbcb92bbea ("cgroup: Move dying_tasks cleanup from cgroup_task_release() to cgroup_task_free()")
- Upstream Linux kernel cgroup subsystem prior to the fixes in commits 057dac23d329 and 828938118d6c
- Downstream distribution kernels that have backported the referenced cleanup change
Discovery Timeline
- 2026-09-26 - CVE-2026-98163 published to the National Vulnerability Database (NVD)
- 2026-09-30 - Last updated in NVD database
Technical Details for CVE-2026-98163
Vulnerability Analysis
The Linux kernel's control group (cgroup) subsystem maintains a dying_tasks list used by iterators that walk a cgroup's membership. The commit 260fbcb92bbea deferred cleanup from cgroup_task_release() to cgroup_task_free(), extending the window in which tasks remain on dying_tasks after their reference count can reach zero.
During iteration, css_task_iter_next() releases css_set_lock between invocations. A task that was valid when selected as it->task_pos may be released by another CPU before the iterator reacquires the lock. The iterator then calls get_task_struct() on a task_struct whose ->usage is already zero, performing an increment on a doomed object scheduled for RCU-based freeing via __put_task_struct_rcu_cb().
The subsequent dereference in callers such as cgroup_procs_show() through task_pid_vnr() operates on memory that free_task() will reclaim, producing a classic use-after-free [CWE-416] bounded by a race condition [CWE-362].
Root Cause
The root cause is a missing refcount sanity check during iteration of dying_tasks. The existing repeat: loop in css_task_iter_advance() validates thread-group leader state and signal->live, but neither distinguishes a reapable zombie from an RCU remnant whose task_struct->usage has already dropped to zero. The cleanup via css_set_skip_task_iters() runs only inside cgroup_task_free(), which is too late to prevent concurrent iterators from latching onto a dead pointer.
Attack Vector
The vulnerability is reachable from local unprivileged contexts that can read cgroup.procs or otherwise trigger css_task_iter_next() while tasks are exiting. An attacker races a reader against group-leader and thread exit paths (release_task(), cgroup_task_release(), put_task_struct_rcu_user()) to land it->task_pos on a leader whose refcount transitions to zero before get_task_struct() executes. Successful exploitation yields a dangling task_struct reference, which can produce memory corruption, kernel panic, or potentially privilege escalation depending on heap state when the freed object is reused.
No verified public exploit code is available. The upstream commit messages and race illustration in the advisory describe the mechanism in detail; see the Kernel Git Commit 057dac2 and Kernel Git Commit 8289381 for the authoritative fix.
Detection Methods for CVE-2026-98163
Indicators of Compromise
- Unexpected kernel oops or general protection fault originating from cgroup_procs_show, task_pid_vnr, or get_task_struct in dmesg.
- KASAN reports flagging use-after-free on task_struct allocations during cgroup iteration.
- Repeated short-lived processes reading /sys/fs/cgroup/**/cgroup.procs concurrently with heavy process exit activity.
Detection Strategies
- Enable CONFIG_KASAN and CONFIG_DEBUG_LIST on test kernels to surface use-after-free conditions during fuzzing or stress runs.
- Review kernel crash telemetry for stack traces containing css_task_iter_next paired with get_task_struct or __put_task_struct_rcu_cb.
- Correlate process-exit storms with cgroup.procs reads using eBPF tracing on cgroup_task_release and cgroup_task_free.
Monitoring Recommendations
- Ingest /var/log/kern.log and journalctl -k output into a centralized logging pipeline and alert on oops signatures referencing cgroup iteration symbols.
- Monitor for abnormal panics or soft lockups on multi-tenant hosts, container platforms, and Kubernetes nodes where cgroup churn is high.
- Track kernel package versions across the fleet and flag hosts running kernels that contain commit 260fbcb92bbea without the corrective patches.
How to Mitigate CVE-2026-98163
Immediate Actions Required
- Identify Linux hosts running kernels that include commit 260fbcb92bbea but not the fixes 057dac23d329 and 828938118d6c.
- Apply the vendor-supplied kernel update that incorporates the upstream patch and schedule a reboot through standard change control.
- Prioritize patching on multi-tenant systems, container hosts, and Kubernetes worker nodes where untrusted workloads can read cgroup.procs.
Patch Information
The fix adds an explicit check that skips tasks on dying_tasks whose ->usage is zero, preventing the iterator from calling get_task_struct() on a doomed object. A new loop in css_task_iter_next() iterates past de-used tasks before releasing css_set_lock. Apply the upstream commits Kernel Git Commit 057dac2 and Kernel Git Commit 8289381, or install the distribution kernel package that backports them.
Workarounds
- Restrict local access on affected hosts and avoid running untrusted code until kernels are patched.
- Reduce exposure by limiting unprivileged read access to cgroup.procs through container runtime policies and user namespace restrictions.
- Where feasible, boot a prior stable kernel that does not contain commit 260fbcb92bbea until the fix can be deployed.
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

