---
id: CVE-2026-98289
title: |-
  In the Linux kernel, the following vulnerability has been resolved:

  af_unix: Unify scc_index when finalising SCC in __unix_walk_scc().

  Commit bfdb01283ee8 ("af_unix: Assign a unique index to SCC.")
  changed Tarjan's algorithm to update …
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  af_unix: Unify scc_index when finalising SCC in __unix_walk_scc().

  Commit bfdb01283ee8 ("af_unix: Assign a unique index to SCC.")
  changed Tarjan's algorithm to update …
severity: medium
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 4090fa373f0e763c43610853d2774b5979915959 <
    b8f71d69380a5fbc734c868acbeb560f1de1766f
  - >-
    Linux >= 4090fa373f0e763c43610853d2774b5979915959 <
    be550ee108ad80828aa61280400bedfc7e7c39d3
  - >-
    Linux >= 4090fa373f0e763c43610853d2774b5979915959 <
    4a4263dfeabad72f95e8ab6e15146861fa4144dd
  - Linux 5dfd283f4651d04dbb70ceb9ae5c4a30eda3c52a
  - Linux de7921631ff323369aa63a4324695ab54ea4047e
  - Linux >= 6.1.141 < 6.2
  - Linux >= 6.6.93 < 6.7
  - Linux 6.10
published: '2026-10-06'
updated: '2026-10-06'
sourceUpdated: '2026-10-06T09:18:19.177'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-98289'
references:
  - url: 'https://git.kernel.org/stable/c/4a4263dfeabad72f95e8ab6e15146861fa4144dd'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/b8f71d69380a5fbc734c868acbeb560f1de1766f'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/be550ee108ad80828aa61280400bedfc7e7c39d3'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-98289.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-98289'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2546528'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-98289'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-98289'
  - url: >-
      https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2026/CVE-2026-98289.mbox
tags:
  - nvd
  - cve.org
  - csaf
  - vex
  - red-hat
ingestedAt: '2026-10-06T08:50:17.420Z'
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'
cvssSource: vendor
cwe:
  - CWE-772
epss: 0.00166
epssPercentile: 0.05776
---

## Overview

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

af_unix: Unify scc_index when finalising SCC in __unix_walk_scc().

Commit bfdb01283ee8 ("af_unix: Assign a unique index to SCC.")
changed Tarjan's algorithm to update lowlink with lowlink,
which is called lowpoint (unix_vertex.scc_index).

unix_vertex_dead() assumes all vertices in an SCC share the same
lowpoint, but this is not always true if an SCC has two or more
back edges, depending on the order of DFS.

For example, the graph below has two back edges from B to A
and from C to B.

  A --> B --> C
  ^    | ^    |
  `----' `----'

If DFS walks through A -> B -> C -> B (-> C -> B) -> A (-> B -> A),
each index and scc_index will be updated as follows.

  A --> B --> C    C = (3, 3)  (index, scc_index)
                   B = (2, 2)
                   A = (1, 1)

  A ... B ... C    C = (3, 2)<-.
         ^    |    B = (2, 2) -'
         `----'    A = (1, 1)

  A ... B ... C    C = (3, 2)
  ^    | .    .    B = (2, 1)<-.
  `----'  ....     A = (1, 1) -'

Then, unix_vertex_dead() thinks that B is passed to another
SCC with scc_index 2, and the SCC is not garbage-collected.

This does not happen if DFS walks in a different order below
or starts from B.

    1      3
  A --> B --> C
  ^    | ^    |
  `----' `----'
     2      4

Let's unify scc_index across the SCC when finalising it.

Note that updating v->index was previously done in unix_scc_dead(),
when called from __unix_walk_scc(), just to save one loop.  Since
__unix_walk_scc() now iterates over the SCC anyway, the update is
moved back to __unix_walk_scc() and 'fast' argument is dropped.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **Red Hat VEX** · Low · affected: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 6 · no fix planned: Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 10 · updated 2026-10-09 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-98289.json)
