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 F1452495AD9 for ; Fri, 25 Sep 2026 10:35:35 +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=1790332537; cv=none; b=Jr+6szbb7P+jfWeQby7LPScQyHj5uJm+y5cUEJPbT2MfzF+scN51B/chlaS1uqla32gsK+IfD9lgX+ggCbj3uGDuCBe8ZObgV4Xa54kVSVHMx1bi6kzJYf1QPrYnbBOhQSSM2aXhWHGR/8thDRc2Js6JIl/9w7M3k+XmPbd+T/I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332537; c=relaxed/simple; bh=4EJVSGuwlmExPhSPesFqTYffugkNmDQJMsGbIRXrxBU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FsDuDv5eK9aOyWbv28Lap09j2eufd7+37FuTlPTwtomXq7e4qecIgAiPPJgTtqmO73mnc1jOZzYoJjePH9veqsmK8LKyqNwyM2H4UXSzX0f/MsCedHKQC+o39I6CS5z1x8gTuO+QDYtsAc5liGKCwQAFPl9lV1pxnVQgRliNyF4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KY7Pv5Vs; 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="KY7Pv5Vs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0FA911F000FF; Fri, 25 Sep 2026 10:35:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332535; bh=0f9STsLOjA52OOVOTpi4tyOcGpW/CDDvQiIQzgecdlk=; h=From:To:Cc:Subject:Date:Reply-To; b=KY7Pv5VsENW6cXEmbwfoUaz55C3ih42JbaCuTHLgKAYAAarYA40V3JJN2X2d8tI7/ eovUkY+0GyPpU5KdW54ABYcICpIpi1uGfPEimtMr/atT5FsGd/Ne3kevw+M0zJChXF 9l2Wtq64BvQ0AwAFAD5Bq5eoVNb8S+RDBwHDFq48= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98070: net/rds: acquire RDS_IN_XMIT in rds_tcp_reset_callbacks() Date: Fri, 25 Sep 2026 12:26:12 +0200 Message-ID: <2026092536-CVE-2026-98070-5fca@gregkh> X-Mailer: git-send-email 2.55.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=4865; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ekTFKFOxL1/qSlrL/dPmTjQ0Wjk3ta0VkScise7WH8I=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvHP+eRqnvtc4WOw95UZi88nP5cGvH909Z7Dy/RLn0 CeJnt+YOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiy+wZ5uct7XwZYC/tLPvR 4t8/J7+jrd3LNBjmO94Xs/0U8/n8Gt6PuY+uT046/DJsDgA= 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: net/rds: acquire RDS_IN_XMIT in rds_tcp_reset_callbacks() rds_tcp_reset_callbacks() quiesces the transmit path by setting the path state to RDS_CONN_RESETTING and then waiting for RDS_IN_XMIT to be sampled clear before swapping the underlying socket and calling rds_send_path_reset(). Sampling the bit clear is not the same as owning it: rds_send_xmit() can re-acquire RDS_IN_XMIT right after the wait_event() returns. Its state recheck after taking the lock is a store-buffering pattern (the resetter writes the state and reads the bit, the sender writes the bit and reads the state) and acquire_in_xmit() is only an acquire operation, so on weakly ordered architectures both sides can miss each other's write and the transmit path then runs concurrently with rds_send_path_reset() rewriting cp_xmit_* state - which is exactly what the comment above rds_send_path_reset() tells its callers to prevent. Take the lock instead, hold it across the socket swap and rds_send_path_reset(), and release it with a wake-up at the end. The lock-ordering constraint documented above the wait still holds: the lock is acquired before lock_sock(), so a sender inside tcp_sendmsg() can never be waited on while we hold the socket lock. Two details of the old code go away with the same change: - t_sock is now read only after the lock is acquired. The old code cached it before waiting; the teardown in rds_conn_shutdown() releases that socket and clears t_sock, so a pointer cached before the wait can be stale by the time the accept path resumes. Reading it under RDS_IN_XMIT is what makes the exclusion complete once the teardown owns the same lock, which the next patch arranges; until then the teardown still only samples the bit, and the two paths remain as exposed to each other as they are today. - The old !osock early path called rds_send_path_reset() with no serialization at all. It now runs under the lock like the normal path. The conditional RDS_CONN_RESETTING transition of the previous patch happens before the socket check either way: a path found without a socket is either still connecting (its reconnect worker blocked on t_conn_path_lock) and legitimately goes RESETTING -> UP on the new socket, or it has been torn down meanwhile and is dropped. The in-function comment describing the old wait-based quiesce is rewritten to describe the lock-based one, and the stale block comment above the function (which still described a return value and an incomplete list of t_sock writers) is refreshed to name all four writers - the connect, accept, teardown and swap paths - and what serializes each of them. The Linux kernel CVE team has assigned CVE-2026-98070 to this issue. Affected and fixed versions =========================== Issue introduced in 4.7 with commit 335b48d980f631fbc5b233cbb3625ac0c86d67cb and fixed in 6.12.111 with commit d625112564c3e980e02504270222b49b82690cee Issue introduced in 4.7 with commit 335b48d980f631fbc5b233cbb3625ac0c86d67cb and fixed in 6.18.53 with commit 8e4c3b7844c906c7097b4cfedd9dd1f48c9a6a92 Issue introduced in 4.7 with commit 335b48d980f631fbc5b233cbb3625ac0c86d67cb and fixed in 7.2.7 with commit 062d9e008c67289e8e1b221ecdd8f9d60566d012 Issue introduced in 4.7 with commit 335b48d980f631fbc5b233cbb3625ac0c86d67cb and fixed in 7.3-rc2 with commit 02c5f9dc2efd823e061954d564ce00bacd1bebeb 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-98070 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/rds/tcp.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/d625112564c3e980e02504270222b49b82690cee https://git.kernel.org/stable/c/8e4c3b7844c906c7097b4cfedd9dd1f48c9a6a92 https://git.kernel.org/stable/c/062d9e008c67289e8e1b221ecdd8f9d60566d012 https://git.kernel.org/stable/c/02c5f9dc2efd823e061954d564ce00bacd1bebeb