Skip to contentSkip to conversation

CVE-2026-80647: RDMA/hns: Fix warning in poll cq direct mode

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 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/hns: Fix warning in poll cq direct mode

CQs allocated by ib_alloc_cq() always have a comp_handler. Though in direct mode this handler is never expected to be called, it is still called when the driver is reset, triggering the following WARN_ONCE():

Call trace:
ib_cq_completion_direct+0x38/0x60
hns_roce_cq_completion+0x54/0x90 (hns_roce_hw_v2]
hns_roce_handle_device_err+Ox1c8/0x340 [hns_roce_hw_v2]
hns_roce_hw_v2_uninit_instance.constprop.0+0x34/0x70 [hns_roce_hw_v2]
hns_roce_hw_v2_reset_notify+0xc4/0xe0 [hns_roce_hw_v2]
hclge_notify_roce_client+0x60/0xbc [hclge]
hclge_reset_rebuild+0x48/0x34c [hclge]
hclge_reset_subtask+0xcc/0xec [hclge]
hclge_reset_service_task+0x80/0x160 [hclge]
hclge_service_task+0x50/0x80 (hclge]
process_one_work+0x1cc/0x4d0
worker_thread+0x154/0x414
kthread+0x104/0x144
ret_from_fork+0x10/0x18

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

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

	Issue introduced in 5.5 with commit f295e4cece5cb4c60715fed539abcd62468f9ef1 and fixed in 5.10.261 with commit 95b2e44bc1e5c5d93bb58e178d914dd99a3baa6f
	Issue introduced in 5.5 with commit f295e4cece5cb4c60715fed539abcd62468f9ef1 and fixed in 5.15.212 with commit e7d363c0ffa836ac1d89657686cad241392c5eb2
	Issue introduced in 5.5 with commit f295e4cece5cb4c60715fed539abcd62468f9ef1 and fixed in 6.1.178 with commit c028c1977b6e61eee26bb69332453efb6513f83b
	Issue introduced in 5.5 with commit f295e4cece5cb4c60715fed539abcd62468f9ef1 and fixed in 6.6.145 with commit a075a7acd155ffdd058e72eb3f4cce1207ebafa1
	Issue introduced in 5.5 with commit f295e4cece5cb4c60715fed539abcd62468f9ef1 and fixed in 6.12.97 with commit 9f05319149c14acedb83e2c2842ec4b38992ad9f
	Issue introduced in 5.5 with commit f295e4cece5cb4c60715fed539abcd62468f9ef1 and fixed in 6.18.40 with commit 16138ea9833d6bb1bed37a3321f282242704bf02
	Issue introduced in 5.5 with commit f295e4cece5cb4c60715fed539abcd62468f9ef1 and fixed in 7.1.5 with commit 1e56f8886d64288cf88d80af44c7b9148aeaa98b
	Issue introduced in 5.5 with commit f295e4cece5cb4c60715fed539abcd62468f9ef1 and fixed in 7.2 with commit 3f19c2a3852e6ba75f3e92dd5edc4e07f3d07f4a

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

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/hns/hns_roce_main.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/95b2e44bc1e5c5d93bb58e178d914dd99a3baa6f
	https://git.kernel.org/stable/c/e7d363c0ffa836ac1d89657686cad241392c5eb2
	https://git.kernel.org/stable/c/c028c1977b6e61eee26bb69332453efb6513f83b
	https://git.kernel.org/stable/c/a075a7acd155ffdd058e72eb3f4cce1207ebafa1
	https://git.kernel.org/stable/c/9f05319149c14acedb83e2c2842ec4b38992ad9f
	https://git.kernel.org/stable/c/16138ea9833d6bb1bed37a3321f282242704bf02
	https://git.kernel.org/stable/c/1e56f8886d64288cf88d80af44c7b9148aeaa98b
	https://git.kernel.org/stable/c/3f19c2a3852e6ba75f3e92dd5edc4e07f3d07f4a