CVE-2026-31565: RDMA/irdma: Fix deadlock during netdev reset with active connections
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
RDMA/irdma: Fix deadlock during netdev reset with active connections
Resolve deadlock that occurs when user executes netdev reset while RDMA applications (e.g., rping) are active. The netdev reset causes ice driver to remove irdma auxiliary driver, triggering device_delete and subsequent client removal. During client removal, uverbs_client waits for QP reference count to reach zero while cma_client holds the final reference, creating circular dependency and indefinite wait in iWARP mode. Skip QP reference count wait during device reset to prevent deadlock.
The Linux kernel CVE team has assigned CVE-2026-31565 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.15.116 with commit 0b3c392b82cdf867808a8ea7c6760d3c7e6b6627 and fixed in 5.15.203 with commit 009831768faeca3fb5950ce63f1b49594ec82389 Issue introduced in 6.1.33 with commit 07322c8a12d6c796450faacb8be9e5e3c278ec84 and fixed in 6.1.168 with commit adf0de36e52a48681eb58cbd7cbf6c8d200caa2b Issue introduced in 6.4 with commit c8f304d75f6c6cc679a73f89591f9a915da38f09 and fixed in 6.6.131 with commit acb060bc2609c2eab49263968be59c7d59d497bc Issue introduced in 6.4 with commit c8f304d75f6c6cc679a73f89591f9a915da38f09 and fixed in 6.12.80 with commit a8a1c7621127a15a02494b96ee376406c064237b Issue introduced in 6.4 with commit c8f304d75f6c6cc679a73f89591f9a915da38f09 and fixed in 6.18.21 with commit cd8bcec2de5e24e05c34c9391940fda6f50e79b4 Issue introduced in 6.4 with commit c8f304d75f6c6cc679a73f89591f9a915da38f09 and fixed in 6.19.11 with commit 464bbb844ba5b68e038220c34019069a0a9f1581 Issue introduced in 6.4 with commit c8f304d75f6c6cc679a73f89591f9a915da38f09 and fixed in 7.0 with commit 6f52370970ac07d352a7af4089e55e0e6425f827 Issue introduced in 6.3.7 with commit 6ee53f82540769a6d6e77e40b901f9b9edfa5ff2
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-31565
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:
drivers/infiniband/hw/irdma/verbs.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/009831768faeca3fb5950ce63f1b49594ec82389 https://git.kernel.org/stable/c/adf0de36e52a48681eb58cbd7cbf6c8d200caa2b https://git.kernel.org/stable/c/acb060bc2609c2eab49263968be59c7d59d497bc https://git.kernel.org/stable/c/a8a1c7621127a15a02494b96ee376406c064237b https://git.kernel.org/stable/c/cd8bcec2de5e24e05c34c9391940fda6f50e79b4 https://git.kernel.org/stable/c/464bbb844ba5b68e038220c34019069a0a9f1581 https://git.kernel.org/stable/c/6f52370970ac07d352a7af4089e55e0e6425f827