From mboxrd@z Thu Jan 1 00:00:00 1970 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 47C0357D20A for ; Fri, 11 Sep 2026 19:54:52 +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=1789156500; cv=none; b=U76p1pnCVSL+IMYeP+xPBgEhTN+/U2dEkL/PBUwwGnj881m8XMFn2gvSzpRyaN28OW1NkLBCuIVsrelxModv/nohtQ1Oh+huWkdWm99vg2t0bSel9/ooWGtzzegN6O0GKD6z6f2CtFXtQG1yWjS8hUFU/UL5pVte3lGmVK7nqwY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789156500; c=relaxed/simple; bh=4cFtJ7NcULw008pb9LVoY2CUF++p+9HcWROiMNpyqxE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CAf9eGQcYkK9jGRTI9HhBdmykP1LVDJfPCMB6QLTzhgyseH+w3g6qlEx/rEo3kMXF5o9RVRg+FWOoPkZXXBR81jmg0FSzvGD23Eunb+2DCjomz7mFdxAs4ARojRe6O8QP0xxQLdFf/sImID9M54ZyaHshNsD8uNQfGGZ6fg2uvg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=SeK1e932; 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="SeK1e932" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F9FB1F0089A; Fri, 11 Sep 2026 19:54:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789156491; bh=Z8TJzOB5TNV88VCnm3kgkMi67UKNX5ukpdG+292bRAU=; h=From:To:Cc:Subject:Date:Reply-To; b=SeK1e932rCf8aJq1kdwIKto8Gy/TcwXUow2S5wsQh05PAO657+19qe3f9/ZJKvz4i ib0M0YgP8l1vdmx3ImHEuX86PjWJ6Y0yXSOu/HvYf1IIG6IcKDAjowbzNWyv4ZoJ1A 6Dke3dVjqJ2/K6+a/HMjX5mL2bNo/Es4FhxnAgzE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-89535: svcrdma: Reorder rpcrdma_rn_unregister before rdma_destroy_id Date: Fri, 11 Sep 2026 21:43:44 +0200 Message-ID: <2026091117-CVE-2026-89535-e1a8@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=2756; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=i7HBRWIMUZC1S8VkitMpp1ieFV8xJtlokxg7RaW/SaY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlLIuN8tnu1fl9rwV69ZOGbRIFMa77p7nkzg7eYL2Fa/ 2pqtsiLjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiISj3D/JLrrz4XHli6adbv GW0vVuzzMF+zS45hwS5unV0/Baf1Rf6LMrEQ/d9Yu675MAA= 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: svcrdma: Reorder rpcrdma_rn_unregister before rdma_destroy_id svc_rdma_free() caches rdma->sc_cm_id->device before teardown, then calls rdma_destroy_id(sc_cm_id) which frees the cm_id. rpcrdma_rn_unregister() follows, but between those two calls the transport's sc_rn entry is still installed in the device's rd_xa. A concurrent ib_unregister_device walk can dispatch svc_rdma_xprt_done() against the now-freed sc_cm_id. Move rpcrdma_rn_unregister() before rdma_destroy_id() so the transport's notification entry is removed from the xarray before the cm_id it references is destroyed. Also guard the sc_cm_id dereference with a NULL check: the following patches introduce paths that reach svc_rdma_free() with sc_cm_id == NULL (listener create failure, ADDR_CHANGE replacement failure). The Linux kernel CVE team has assigned CVE-2026-89535 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12 with commit c4de97f7c45434985e5dbf2d6ccc9eca676e37fe and fixed in 6.18.51 with commit 9f2f5d0999364c7070306cd422d8babc2621070d Issue introduced in 6.12 with commit c4de97f7c45434985e5dbf2d6ccc9eca676e37fe and fixed in 7.2.4 with commit cfca6eb3345ba4a23cf9a1153ad09bf19faabfc9 Issue introduced in 6.12 with commit c4de97f7c45434985e5dbf2d6ccc9eca676e37fe and fixed in 7.3-rc1 with commit 4488e912973773d64368828acf3b8e39d93650ae 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-89535 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/sunrpc/xprtrdma/svc_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/9f2f5d0999364c7070306cd422d8babc2621070d https://git.kernel.org/stable/c/cfca6eb3345ba4a23cf9a1153ad09bf19faabfc9 https://git.kernel.org/stable/c/4488e912973773d64368828acf3b8e39d93650ae