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 97259495AE4 for ; Fri, 25 Sep 2026 10:35:38 +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=1790332540; cv=none; b=ssm2GnMDwF2+S6dk/gFcMjVgURSiEYrF9ZBaQ3S2cD59PnRdi0HeN9reEt4fCp4s8ZyXEY4nHgsfRkb1uzZD+uJgYOJWvuyNG3QRCq8+UoAD925EwUfiJoyuoiLGo6LAE3urHQnDlq4n+822npIpkpsb93QRi5N1ZdBd2FndQ68= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332540; c=relaxed/simple; bh=BEiEuJnbvdacmdFGqniUAnvlg7ObTRC3EDNlTQuU6Qg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YgGJoSAOMsMTMIaDJzgbF8PHO8vyUyDtQBnqrc5E/0yyVfQrltoCyySP2Rk7Zj0xzsPDqKNtxZLeRz5iVd5a1aF9Xr8hL6T+sb5pV5FWnrQYYzAPvKPVsr22wQXugzrL9PCMwVdJxDNTbvZZiWXUfyP7NOTqHguAKoD10lV1aWs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=M8QS6drh; 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="M8QS6drh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F08D21F000FF; Fri, 25 Sep 2026 10:35:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332538; bh=Bn7t4ncEgCP5L6WgZnwkicMlQx0Huviue1yJwwPrIR8=; h=From:To:Cc:Subject:Date:Reply-To; b=M8QS6drhAvWmvGQbf2QeNdvuCbCYeWYwXB3vM71nTn2/LU23rfaAH9XoW8TgD/Olx HstDjb0wlvroIC0NF1oK8DzY6xKDpTrxVDZS8PryTmDbKiTpg9v+uidStyqFXNih/R 4Mu9g4QC3pLpBkGPWNAkB+26cJnsY6il9EsQ63Ao= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98071: net/rds: clear cp_flags bits individually in rds_conn_path_reset() Date: Fri, 25 Sep 2026 12:26:13 +0200 Message-ID: <2026092536-CVE-2026-98071-afbe@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=4055; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Z00l4GUX7xYI1Ujx7zt6HATh+yJPwEfUW1uB0Wok+Xw=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvHMKlfbu7w9Q7b68cN8d158dLMvWXHyWtfR79+aip W0Vzsv6O2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiD64xzNP6+nSdzMXFV7M2 cB9Kcqyd8vyj7myG+fEGqya57p8x61Nf1Kb7S8+UHpkmdxUA 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: clear cp_flags bits individually in rds_conn_path_reset() rds_conn_path_reset() wipes the whole flag word with a plain cp->cp_flags = 0 store. Every other accessor of that word uses atomic bitops, and some of them can run concurrently with the reset: RDS_LL_SEND_FULL is set from rds_send_xmit() and cleared from the transport completion paths, neither of which holds anything that excludes the shutdown worker. A plain store racing an atomic read-modify-write on the same word is a data race, and whichever side loses has its update silently discarded. Clear the two bits the reset is actually responsible for instead. RDS_IN_XMIT and RDS_RECV_REFILL need no store at all here: they belong to the caller, rds_conn_shutdown(), which waits for both to be clear before calling the transport shutdown and this reset. This also gives every bit in cp_flags a single well-defined writer discipline, which the following patches rely on when they turn RDS_IN_XMIT and RDS_RECV_REFILL into bit locks held across the teardown: a blanket store mid-teardown would destroy lock ownership that an atomic clear preserves. Oracle UEK carries the same conversion ("net/rds: Preserve essential connection state flags"), motivated by its asynchronous shutdown state machine, whose progress and destroy flags must survive the reset. UEK's variant also clears RDS_IN_XMIT and RDS_RECV_REFILL because there the reset runs as the final step of a teardown that owns both bits, making those clears its unlock. Upstream that release belongs in rds_conn_shutdown(): once a later patch in this series turns the two bits into locks held across the teardown, ending ownership needs release semantics and a wake-up that a plain clear inside the reset would not provide. Based on Oracle UEK commit "net/rds: Preserve essential connection state flags" by Gerd Rausch. The Linux kernel CVE team has assigned CVE-2026-98071 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.30 with commit 00e0f34c616603ba6500f41943cbf89eb4a8a5be and fixed in 6.12.111 with commit ed3ee0ac4aafda50c2f4381eb973beefeb7879ac Issue introduced in 2.6.30 with commit 00e0f34c616603ba6500f41943cbf89eb4a8a5be and fixed in 6.18.53 with commit 6b8d7563c28b8112e6e54abe413b028ef3f8c549 Issue introduced in 2.6.30 with commit 00e0f34c616603ba6500f41943cbf89eb4a8a5be and fixed in 7.2.7 with commit cb62aa8f04655a4df487913949719c0a1266ed73 Issue introduced in 2.6.30 with commit 00e0f34c616603ba6500f41943cbf89eb4a8a5be and fixed in 7.3-rc2 with commit 103c4b13c4f50322910078d1c02f29334a574122 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-98071 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/connection.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/ed3ee0ac4aafda50c2f4381eb973beefeb7879ac https://git.kernel.org/stable/c/6b8d7563c28b8112e6e54abe413b028ef3f8c549 https://git.kernel.org/stable/c/cb62aa8f04655a4df487913949719c0a1266ed73 https://git.kernel.org/stable/c/103c4b13c4f50322910078d1c02f29334a574122