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-98289 Overview
CVE-2026-98289 affects the Linux kernel's af_unix subsystem, specifically Tarjan's strongly connected component (SCC) algorithm used for garbage collection of UNIX domain sockets. The flaw stems from inconsistent scc_index (lowpoint) values across vertices within a single SCC when the graph contains multiple back edges. As a result, unix_vertex_dead() can misclassify a dead SCC as reachable from another component, preventing garbage collection of UNIX domain socket file descriptors passed via SCM_RIGHTS. The resolved commit unifies scc_index across all vertices when finalising an SCC inside __unix_walk_scc().
Critical Impact
Local processes passing file descriptors through UNIX domain sockets can trigger kernel memory accumulation by preventing garbage collection of socket graphs containing cyclic references.
Affected Products
- Linux kernel versions containing commit bfdb01283ee8 ("af_unix: Assign a unique index to SCC.")
- Mainline Linux kernel prior to the fix commits referenced in the stable tree
- Downstream Linux distributions shipping the affected af_unix garbage collector
Discovery Timeline
- 2026-10-06 - CVE-2026-98289 published to NVD
- 2026-10-06 - Last updated in NVD database
Technical Details for CVE-2026-98289
Vulnerability Analysis
The Linux kernel's af_unix subsystem uses Tarjan's algorithm to detect strongly connected components among UNIX domain sockets that reference each other through in-flight file descriptors. Each vertex is assigned an index and a scc_index (lowpoint). The garbage collector in unix_vertex_dead() assumes every vertex inside a given SCC shares the same scc_index.
That assumption breaks when the depth-first search encounters multiple back edges. Depending on DFS traversal order, two vertices within the same SCC can end up with different scc_index values. The garbage collector then interprets the mismatch as evidence that the SCC still has an external reference, skips reclamation, and leaks the associated socket structures.
Root Cause
The regression was introduced by commit bfdb01283ee8 ("af_unix: Assign a unique index to SCC."), which modified Tarjan's algorithm to propagate lowlink using lowlink values instead of index values. For the example graph A -> B -> C with back edges C -> B and B -> A, DFS can leave B with scc_index = 1 while C retains scc_index = 2, even though both belong to the same SCC rooted at A.
Attack Vector
The affected code path is reachable by any local, unprivileged process that creates UNIX domain sockets and exchanges file descriptors via SCM_RIGHTS ancillary messages. By constructing socket graphs with specific cyclic topologies and multiple back edges, a local user can prevent kernel garbage collection and cause progressive kernel memory consumption. The fix moves the v->index update back into __unix_walk_scc() and iterates the SCC to assign a single, unified scc_index to every member vertex.
No verified public exploit code is available. Refer to the upstream patches for technical details: Kernel Git Change 4a4263d, Kernel Git Change b8f71d, and Kernel Git Change be550ee.
Detection Methods for CVE-2026-98289
Indicators of Compromise
- Sustained growth of unix slab allocations visible in /proc/slabinfo without a matching rise in active connections.
- Increasing counts of in-flight UNIX file descriptors reported by ss -xp or /proc/net/unix that are never released.
- Processes repeatedly invoking sendmsg() with SCM_RIGHTS ancillary data across looped socket pairs.
Detection Strategies
- Monitor kernel memory consumption trends on multi-tenant Linux hosts and correlate spikes with user-space processes exercising UNIX domain sockets.
- Enable kmemleak or SLUB debugging in test environments to surface unreclaimed unix_sock allocations.
- Audit workloads that pass file descriptors between processes to confirm they do not generate pathological socket graphs.
Monitoring Recommendations
- Alert on anomalous local processes creating large numbers of AF_UNIX sockets combined with SCM_RIGHTS traffic.
- Track kernel version inventory to confirm every host carries a kernel built from one of the fix commits.
- Collect dmesg output for OOM events on systems running pre-patch kernels where garbage collection stalls can trigger reclaim pressure.
How to Mitigate CVE-2026-98289
Immediate Actions Required
- Apply the upstream kernel patches 4a4263dfeabad72f95e8ab6e15146861fa4144dd, b8f71d69380a5fbc734c868acbeb560f1de1766f, and be550ee108ad80828aa61280400bedfc7e7c39d3 from the stable tree.
- Rebuild and reboot into a kernel that includes the unified scc_index logic in __unix_walk_scc().
- Track distribution-specific advisories for backported fixes and schedule patching on affected hosts.
Patch Information
The fix is distributed across three commits in the Linux stable tree. See Kernel Git Change 4a4263d, Kernel Git Change b8f71d, and Kernel Git Change be550ee. The patches drop the fast argument and move the v->index update back into __unix_walk_scc(), iterating each SCC to assign a consistent lowpoint.
Workarounds
- Restrict untrusted local workloads from creating arbitrary UNIX domain socket graphs with in-flight file descriptors where feasible.
- Apply resource controls through cgroups memory limits and RLIMIT_NOFILE to constrain how many file descriptors a single process can accumulate.
- Monitor and recycle long-running services that heavily use SCM_RIGHTS until a patched kernel is 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

