Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793187751; b=To6vRqQZRCzpEZk+NTlPwKgai72DHObUhOvGJetcbcYE8SnL1ftVYebwyjuzKPlijgM6 +ryDbYOUB67XrVqSna7n0NRtIEnIm83kY9FJ7YZCgSmh4OAipQDyWkVdQXgJR6jC4SiC2 jZuidc1CH5B7lDBd5DOCjfAkmv+PEaJXKtwVhgeEdA5tY3OUnSKbtzUFjLQlGAjweBPAR 13ANlgkf94nnwasNEfZN0Yk/WjWTLYYSfR7moXkXEE6nbiLsQltfq4Zui0NCE+GwQLPJK ay/Sby5ybIwmEGs5iM+iuqXVgs4f2UYtaJ0ky2T5iD8RyxOft61NnVCPZ7l5uG/3d9A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793187751; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=mZ7cDpkMJJJ04MglSpGWLCrw7nYHKLxwLVBTnLXS2B0=; b=lpcLTZDJKYBpGG9ZnQL9rqg0bJKS5eHfi5zitcqsfHYyX3mLiGO9NFnz7qLr13rupkGD 55XnP8rJOlsUe8J4rt5rSMtgdg/BJg6Xl9qjF5GQdNN7UtUEthg3eOVVxzvrBv4M50xIQ uNpHub1AENDYGzlmDWxTZ8NUKfqMNss+DbinIqaVzpsCV0Ub+6U5GCg2GaNSD89DHz2+m B8a/HJpO+jBMAPmq5PjU1h4AM5VtkaOU6rAUdwKlB7PWyBLKrNNIGMMrU5jP0iH60BRDt dpLZ8z5FQCc4uOWu0VyN/Zwm6djkqj/kELVtllFHVGv972t8mKLkVaM4BFkd1VdFd1Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=ugaldPVe; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 86761606A31F for ; Wed, 28 Oct 2026 11:42:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=ugaldPVe Received: by smtp.kernel.org (Postfix) with ESMTPSA id A00241F01825; Wed, 28 Oct 2026 11:42:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793187751; bh=mZ7cDpkMJJJ04MglSpGWLCrw7nYHKLxwLVBTnLXS2B0=; h=From:To:Cc:Subject:Date:Reply-To; b=ugaldPVezXXwZs78DvCkCceyOBMN99GyRh0rnWjPo0h1z+hln3MIgl+CixJFGnoQT a3vPF77fbuN4Bx5dXEvUoeYTeqA6b5iuPHj5YMjvm4/oFKp8TmGbiSX6K03V2n+vP7 s5JkrehedI5oPAKsRCn0rSOL2YMdU8V3TrERwh+U= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99212: net/rds: don't let the rdma_cm destroy an id RDS still owns on route failure Date: Wed, 28 Oct 2026 11:36:39 +0100 Message-ID: <2026102816-CVE-2026-99212-3eab@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2864; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=POhsmOdZKUTz9/osaqjLYfTF9YGobez8xZy8nifzvJ8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkPzz+ZnmIrP13V0KS/8kjYjOXfhHZbCr7XviXvt+sjf 1PYF5uPHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARk2sM850XMX48GHCawbDg nbXh7dWrGx59tmSYp/LbWPZElJrkpNTri9R2VrzXrZc5BAA= 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: don't let the rdma_cm destroy an id RDS still owns on route failure rds_rdma_cm_event_handler_cmn() hands the return value of rdma_resolve_route() straight back to the rdma_cm on RDMA_CM_EVENT_ADDR_RESOLVED. A synchronous failure there - -ENOMEM from the route work allocation, an SA query that cannot be set up, a RoCE route with no usable device - makes addr_handler() destroy the id the event was delivered on. That id is ic->i_cm_id, and nothing clears the pointer: the connection sits in RDS_CONN_CONNECTING with a freed id until its shutdown calls rdma_disconnect() and rdma_destroy_id() on it. The ROUTE_RESOLVED case already avoids this: rds_ib_cm_initiate_connect() forces a zero return while ic->i_cm_id == cm_id, as the comment there explains. Do the same here - drop the connection and return 0 - so the id stays RDS's to destroy from the shutdown, and the reconnect gets a fresh one. The Linux kernel CVE team has assigned CVE-2026-99212 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.30 with commit 55b7ed0b582f9ff4bf3b9b44969cddda8c6763ea and fixed in 6.18.59 with commit a7c7d0ff876377fea7ae876a28d6df8d9349df57 Issue introduced in 2.6.30 with commit 55b7ed0b582f9ff4bf3b9b44969cddda8c6763ea and fixed in 7.2.13 with commit 91ece3efa064f0b3b3c67b9b045d9eeb4a034e43 Issue introduced in 2.6.30 with commit 55b7ed0b582f9ff4bf3b9b44969cddda8c6763ea and fixed in 7.3 with commit 98d446b7c013254a8a7b49720557676a3a851fde 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-99212 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/rdma_transport.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/a7c7d0ff876377fea7ae876a28d6df8d9349df57 https://git.kernel.org/stable/c/91ece3efa064f0b3b3c67b9b045d9eeb4a034e43 https://git.kernel.org/stable/c/98d446b7c013254a8a7b49720557676a3a851fde