Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9E04F3E1CE5 for ; Tue, 6 Oct 2026 10:28:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791282484; cv=none; b=HSy+LOKmhC4crVapqeYJNa9be1JibQP1Bl/umcqDBofunkiarGJs3e/6hj9oES6pGYd9n8GN94KoMBZowaB3BfQSSJNGnDJp5tZE/4fNtskJcPzUQelQxCoOfenafOA/PPSKD9N5zH+n0GxUQN7TniF+py9VvgSKehhUcoIn54A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791282484; c=relaxed/simple; bh=p2wab+OLVv6p1YId02IMZ1VGycExY2QmKPWOVG/UvRQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ifeW3YWXFPxnQDSeXrIwrDr2GuDnc7M6YE6PJA+NHCdI8aGrtL2tiD9blVBTEu4JXJ6AcH9aQeuSunDGKWZ27oanj2U0t+Aoci6q7QsvuhoboriO8c11vKgbJeGCs1TOWcaCuLbjInumckWaGZQvKnabZLIOIag9Mai59TfvJY0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=r5tGZ3xT; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="r5tGZ3xT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 01B1D1F000FF; Tue, 6 Oct 2026 10:28:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791282483; bh=j7Q7h69iPkqySGKEjzSbt+femcjTYF4SvC2bXSNrehk=; h=From:To:Cc:Subject:Date:Reply-To; b=r5tGZ3xTyBEcO6FpcSghmlmKL1g5NbXhCTcrjC1wghIVTR4vyCWCmORS54c0/0XFC HX4ZrCAJPcLDC7Fp+zg2Dz9P7FOnXbyrkijrWv2hiAZ3vQ9FDpF30hmVsTEjMlvC89 Ye1jhOqPbjnkvbnjKNyFuNi6QfMgKV9WSYR2hMMs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98289: af_unix: Unify scc_index when finalising SCC in __unix_walk_scc(). Date: Tue, 6 Oct 2026 10:46:30 +0200 Message-ID: <2026100606-CVE-2026-98289-50d0@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3709; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=TCGelsEF29SghkygPe3dC8VONWGo1N+4txYpapQ14ns=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlHtgoFLtKWUVLhODTPIrGK70m/o8iep3naon/zn6clT A9Uuc3YEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABOJ/sCwYH6kvUSlOo8JtzhD 9stTPFyZNqtPMcyvXHrbxt5a+rL2UqW1r9pcco5vnsoEAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== 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. The Linux kernel CVE team has assigned CVE-2026-98289 to this issue. Affected and fixed versions =========================== Issue introduced in 6.10 with commit 4090fa373f0e763c43610853d2774b5979915959 and fixed in 6.18.54 with commit b8f71d69380a5fbc734c868acbeb560f1de1766f Issue introduced in 6.10 with commit 4090fa373f0e763c43610853d2774b5979915959 and fixed in 7.2.8 with commit be550ee108ad80828aa61280400bedfc7e7c39d3 Issue introduced in 6.10 with commit 4090fa373f0e763c43610853d2774b5979915959 and fixed in 7.3-rc4 with commit 4a4263dfeabad72f95e8ab6e15146861fa4144dd Issue introduced in 6.1.141 with commit 5dfd283f4651d04dbb70ceb9ae5c4a30eda3c52a Issue introduced in 6.6.93 with commit de7921631ff323369aa63a4324695ab54ea4047e Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-98289 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: net/unix/garbage.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/b8f71d69380a5fbc734c868acbeb560f1de1766f https://git.kernel.org/stable/c/be550ee108ad80828aa61280400bedfc7e7c39d3 https://git.kernel.org/stable/c/4a4263dfeabad72f95e8ab6e15146861fa4144dd