Skip to contentSkip to conversation

CVE-2026-46126: RDMA/mana: Fix mana_destroy_wq_obj() cleanup in mana_ib_create_qp_rss()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 28

lore
Share & tools
lore
#0 lore raw

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

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

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

RDMA/mana: Fix mana_destroy_wq_obj() cleanup in mana_ib_create_qp_rss()

Sashiko points out there are two bugs here in the error unwind flow, both related to how the WQ table is unwound.

First there is a double i-- on the first failure path due to the while loop having a i--, remove it.

Second if mana_ib_install_cq_cb() fails then mana_create_wq_obj() is not undone due to the above i--.

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

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

	Issue introduced in 6.8 with commit c15d7802a42402a87880a17eee89ff023e49ecc0 and fixed in 6.12.88 with commit 8f23eb6c50f1a4bf32fc4d62cfb9fc39e8e586cf
	Issue introduced in 6.8 with commit c15d7802a42402a87880a17eee89ff023e49ecc0 and fixed in 6.18.30 with commit bb9cb36eaefa4dcb7c0d9f7a01e5c739abdd53a8
	Issue introduced in 6.8 with commit c15d7802a42402a87880a17eee89ff023e49ecc0 and fixed in 7.0.7 with commit 9a05a6798177e44dfbe18393be2c1ebb89ab06fd
	Issue introduced in 6.8 with commit c15d7802a42402a87880a17eee89ff023e49ecc0 and fixed in 7.1-rc3 with commit 34ecf795692ee57c393109f4a24ccc313091e137

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

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/mana/qp.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/8f23eb6c50f1a4bf32fc4d62cfb9fc39e8e586cf
	https://git.kernel.org/stable/c/bb9cb36eaefa4dcb7c0d9f7a01e5c739abdd53a8
	https://git.kernel.org/stable/c/9a05a6798177e44dfbe18393be2c1ebb89ab06fd
	https://git.kernel.org/stable/c/34ecf795692ee57c393109f4a24ccc313091e137