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 3DDB03DFC80 for ; Tue, 6 Oct 2026 10:26:09 +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=1791282370; cv=none; b=M0ARjQWLjQ0G+q8UMC8/64DjMpah7bDundmumgMN3ZuNAi/offm+1Uxn9JSA0/5AvxGZ6qbmy9+e2DQEqHSOWViUsJqoDKNBGGeHuTEkJ2M0ch/PSv2w/AwIlsy2qrgsdXl6K/1h0kN3/fQXOnl0RM4VbFTlyIPlSFo/cWJOpAA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791282370; c=relaxed/simple; bh=drHdyOuSxoBPzoSY88j6IgDxz+6qqn1p83zLmASog7I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uw9nMLFO53yLMOL2YYE0ykxoNSpVIQdt787lzKtIr1RVSN0B4QsvmJkmIYIDxB4PWlel8Hm0jRNVsLvSO6sWiiQNs71AUFd+ft47xjvJRKOV2Uwa4lbAHIWjQaMCAh8GopJGMoFQDQNRi3ZWANvPvyBD9+jlmrlfC0g+qlsOStk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Awvfa5Ys; 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="Awvfa5Ys" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 92DCB1F000FF; Tue, 6 Oct 2026 10:26:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791282369; bh=1mRz3TE4nTHllwYTRkGVJWNEa8zpAdUo8AWF9cbds8Q=; h=From:To:Cc:Subject:Date:Reply-To; b=Awvfa5Ysr1pgFqpW53lwRDqNz5r4Mu3QatIeZcM3KsnxA9WuKb+7qDSP1GGZ8+xBh /WA5fPH9K9caIJXDNaItPW7SHNnJvk2KV7628gHSr0HAfgtMJBzSYvNBzV6oBXZ+9c P94VJWdOeO6PIMo4uXGnM6ERWUmXYCv6FzGWD+LY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98257: rds: ib: use rds_conn_drop() on protocol version mismatch Date: Tue, 6 Oct 2026 10:45:58 +0200 Message-ID: <2026100657-CVE-2026-98257-12de@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=3944; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=k0UegODZ7ZGKoloo/HvTb7fMyMXvExJatcdfcDEGi3I=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlHtnKWeizPTil6sSn3kSkDl8ruPf6LN1c86GI/u0LY/ V5reNP9jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIMQ2G+RnV8R3xG1dz3vh2 bivz6VthkRxukxnm2bQcftikuGPvneTVJ/oOLygUc9jMBgA= 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: rds: ib: use rds_conn_drop() on protocol version mismatch rds_ib_cm_connect_complete() runs from the RDMA-CM event handler with conn->c_cm_lock held. When the peer negotiates a protocol version older than RDS_PROTOCOL_COMPAT_VERSION, the handler calls rds_conn_destroy(), which is only safe in the rmmod path: it synchronously tears the connection down and flush_work()es the shutdown work cp_down_w. That shutdown work (rds_conn_shutdown()) needs cp_cm_lock, which is the very lock the event handler still holds, so the flush never completes: the two workers wait on each other and the RDS connection workqueues stall for good. All other RDMA-CM failure paths (REJECTED, CONNECT_ERROR, DISCONNECTED) use rds_conn_drop(), which marks the connection RDS_CONN_ERROR and schedules the shutdown work asynchronously. Use it here as well. The Linux kernel CVE team has assigned CVE-2026-98257 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.37 with commit f147dd9ecabf23fd63d2562ffe64252a0453ecde and fixed in 5.10.271 with commit 424019be3f637da76b74f44a40034669acbb166f Issue introduced in 2.6.37 with commit f147dd9ecabf23fd63d2562ffe64252a0453ecde and fixed in 5.15.222 with commit 14fb90067d13f4494cff0f03243fae3cf2911cbc Issue introduced in 2.6.37 with commit f147dd9ecabf23fd63d2562ffe64252a0453ecde and fixed in 6.1.189 with commit 344c72a0bc2703a6de4918ed935850e07dae3af2 Issue introduced in 2.6.37 with commit f147dd9ecabf23fd63d2562ffe64252a0453ecde and fixed in 6.6.158 with commit b5c9f2951d330d4a198a64d6e60f79b4bd6ef078 Issue introduced in 2.6.37 with commit f147dd9ecabf23fd63d2562ffe64252a0453ecde and fixed in 6.12.112 with commit d392b16acd0908f077289aad8bba066ff16de336 Issue introduced in 2.6.37 with commit f147dd9ecabf23fd63d2562ffe64252a0453ecde and fixed in 6.18.54 with commit 65ca0a5037152a5a80b8fe6aac80eb80458be573 Issue introduced in 2.6.37 with commit f147dd9ecabf23fd63d2562ffe64252a0453ecde and fixed in 7.2.8 with commit 7d8c22cb2cb1efb5e830a4545c76abf7b35cc2e8 Issue introduced in 2.6.37 with commit f147dd9ecabf23fd63d2562ffe64252a0453ecde and fixed in 7.3-rc4 with commit f97d8c7bab7843631206a114986c9059da03efeb 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-98257 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/ib_cm.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/424019be3f637da76b74f44a40034669acbb166f https://git.kernel.org/stable/c/14fb90067d13f4494cff0f03243fae3cf2911cbc https://git.kernel.org/stable/c/344c72a0bc2703a6de4918ed935850e07dae3af2 https://git.kernel.org/stable/c/b5c9f2951d330d4a198a64d6e60f79b4bd6ef078 https://git.kernel.org/stable/c/d392b16acd0908f077289aad8bba066ff16de336 https://git.kernel.org/stable/c/65ca0a5037152a5a80b8fe6aac80eb80458be573 https://git.kernel.org/stable/c/7d8c22cb2cb1efb5e830a4545c76abf7b35cc2e8 https://git.kernel.org/stable/c/f97d8c7bab7843631206a114986c9059da03efeb