Skip to contentSkip to conversation

CVE-2026-46084: RDMA/mana_ib: Disable RX steering on RSS QP destroy

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 27

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_ib: Disable RX steering on RSS QP destroy

When an RSS QP is destroyed (e.g. DPDK exit), mana_ib_destroy_qp_rss() destroys the RX WQ objects but does not disable vPort RX steering in firmware. This leaves stale steering configuration that still points to the destroyed RX objects.

If traffic continues to arrive (e.g. peer VM is still transmitting) and the VF interface is subsequently brought up (mana_open), the firmware may deliver completions using stale CQ IDs from the old RX objects. These CQ IDs can be reused by the ethernet driver for new TX CQs, causing RX completions to land on TX CQs:

WARNING: mana_poll_tx_cq+0x1b8/0x220 [mana] (is_sq == false)
WARNING: mana_gd_process_eq_events+0x209/0x290 (cq_table lookup fails)

Fix this by disabling vPort RX steering before destroying RX WQ objects. Note that mana_fence_rqs() cannot be used here because the fence completion is delivered on the CQ, which is polled by user-mode (e.g. DPDK) and not visible to the kernel driver.

Refactor the disable logic into a shared mana_disable_vport_rx() in mana_en, exported for use by mana_ib, replacing the duplicate code. The ethernet driver's mana_dealloc_queues() is also updated to call this common function.

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

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

	Issue introduced in 6.2 with commit 0266a177631d4c6b963b5b12dd986a8c5abdbf06 and fixed in 6.6.140 with commit 6a2d6273b6c3581ce7b90ce17b5cbb4efd19438f
	Issue introduced in 6.2 with commit 0266a177631d4c6b963b5b12dd986a8c5abdbf06 and fixed in 6.12.86 with commit f1ccc4d500a0b87a5599343fc2f798048836e184
	Issue introduced in 6.2 with commit 0266a177631d4c6b963b5b12dd986a8c5abdbf06 and fixed in 6.18.27 with commit 8ba804869382ce307f2a15f5f6f2adfd791f41dc
	Issue introduced in 6.2 with commit 0266a177631d4c6b963b5b12dd986a8c5abdbf06 and fixed in 7.0.4 with commit 3be5ed233de03b00ae868cfc06e95331d8d9007c
	Issue introduced in 6.2 with commit 0266a177631d4c6b963b5b12dd986a8c5abdbf06 and fixed in 7.1-rc1 with commit dbeb256e8dd87233d891b170c0b32a6466467036

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

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 drivers/net/ethernet/microsoft/mana/mana_en.c include/net/mana/mana.h

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/6a2d6273b6c3581ce7b90ce17b5cbb4efd19438f
	https://git.kernel.org/stable/c/f1ccc4d500a0b87a5599343fc2f798048836e184
	https://git.kernel.org/stable/c/8ba804869382ce307f2a15f5f6f2adfd791f41dc
	https://git.kernel.org/stable/c/3be5ed233de03b00ae868cfc06e95331d8d9007c
	https://git.kernel.org/stable/c/dbeb256e8dd87233d891b170c0b32a6466467036