Skip to contentSkip to conversation

CVE-2026-89534: svcrdma: Clear sc_cm_id when ADDR_CHANGE replacement fails

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 11

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

svcrdma: Clear sc_cm_id when ADDR_CHANGE replacement fails

When svc_rdma_listen_handler() handles RDMA_CM_EVENT_ADDR_CHANGE, it creates a replacement listener cm_id and returns 1, telling the CM core to destroy the old one. If the replacement allocation fails, sc_cm_id still points at the old cm_id that the CM core is about to destroy. Any subsequent dereference of sc_cm_id -- such as svc_rdma_detach()'s rdma_disconnect() call -- is a use-after-free.

NULL sc_cm_id on the failure path and guard svc_rdma_detach()'s rdma_disconnect() call against NULL so that the listener can be torn down safely when the server shuts down.

The Linux kernel CVE team has assigned CVE-2026-89534 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.11 with commit d1b586e75ec619dde1af47e21a41a6b1b51874c2 and fixed in 7.2.4 with commit 673e358ab7c11f8cec223c6a36a793056a67facd
	Issue introduced in 6.11 with commit d1b586e75ec619dde1af47e21a41a6b1b51874c2 and fixed in 7.3-rc1 with commit 01500306e1d50de7ca7a2cdcdfa28ac0523eb747

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-89534

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/673e358ab7c11f8cec223c6a36a793056a67facd
	https://git.kernel.org/stable/c/01500306e1d50de7ca7a2cdcdfa28ac0523eb747