CVE-2026-31492: RDMA/irdma: Initialize free_qp completion before using it
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
RDMA/irdma: Initialize free_qp completion before using it
In irdma_create_qp, if ib_copy_to_udata fails, it will call irdma_destroy_qp to clean up which will attempt to wait on the free_qp completion, which is not initialized yet. Fix this by initializing the completion before the ib_copy_to_udata call.
The Linux kernel CVE team has assigned CVE-2026-31492 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.14 with commit b48c24c2d710cf34810c555dcef883a3d35a9c08 and fixed in 6.1.168 with commit ac1da7bd224d406b6f1b84414f0f652ab43b6bd8 Issue introduced in 5.14 with commit b48c24c2d710cf34810c555dcef883a3d35a9c08 and fixed in 6.6.131 with commit af310407f79d5816fc0ab3638e1588b6193316dd Issue introduced in 5.14 with commit b48c24c2d710cf34810c555dcef883a3d35a9c08 and fixed in 6.12.80 with commit cd1534c8f4984432382c240f6784408497f5bb0a Issue introduced in 5.14 with commit b48c24c2d710cf34810c555dcef883a3d35a9c08 and fixed in 6.18.21 with commit 3cb88c12461b71c7d9c604aa2e6a9a477ecfa147 Issue introduced in 5.14 with commit b48c24c2d710cf34810c555dcef883a3d35a9c08 and fixed in 6.19.11 with commit f72996834f7bdefc2b95e3eec30447ee195df44e Issue introduced in 5.14 with commit b48c24c2d710cf34810c555dcef883a3d35a9c08 and fixed in 7.0 with commit 11a95521fb93c91e2d4ef9d53dc80ef0a755549b
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-31492
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/ac1da7bd224d406b6f1b84414f0f652ab43b6bd8 https://git.kernel.org/stable/c/af310407f79d5816fc0ab3638e1588b6193316dd https://git.kernel.org/stable/c/cd1534c8f4984432382c240f6784408497f5bb0a https://git.kernel.org/stable/c/3cb88c12461b71c7d9c604aa2e6a9a477ecfa147 https://git.kernel.org/stable/c/f72996834f7bdefc2b95e3eec30447ee195df44e https://git.kernel.org/stable/c/11a95521fb93c91e2d4ef9d53dc80ef0a755549b