Skip to contentSkip to conversation

CVE-2026-74389: RDMA/hns: Fix log flood after cmd_mbox failure

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 15

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 log flood after cmd_mbox failure

hns_roce_cmd_mbox() is the command interface between driver and hardware. When hardware is abnormal, the unlimited error printings after hns_roce_cmd_mbox() failure will cause log flood and even system crash.

Replace ibdev_err() and ibdev_warn() with their ratelimited versions in the error handling path after hns_roce_cmd_mbox() (and its wrappers hns_roce_create_hw_ctx/hns_roce_destroy_hw_ctx) fails.

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

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

	Issue introduced in 4.9 with commit 9a4435375cd151e07c0c38fa601b00115986091b and fixed in 6.12.97 with commit 7d9fbee252f84de3e6947a40eec01481c9d8afbb
	Issue introduced in 4.9 with commit 9a4435375cd151e07c0c38fa601b00115986091b and fixed in 6.18.40 with commit 66f44ec974ab372e4e1ee9eac4245237c94e8f68
	Issue introduced in 4.9 with commit 9a4435375cd151e07c0c38fa601b00115986091b and fixed in 7.1.5 with commit f3c9e84268e9fa613d40d6c138fb6969c35879b5
	Issue introduced in 4.9 with commit 9a4435375cd151e07c0c38fa601b00115986091b and fixed in 7.2-rc1 with commit bbd97d71e53e551890e4115ad9de46b5f2ac0858

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

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_cq.c drivers/infiniband/hw/hns/hns_roce_hw_v2.c drivers/infiniband/hw/hns/hns_roce_mr.c drivers/infiniband/hw/hns/hns_roce_srq.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/7d9fbee252f84de3e6947a40eec01481c9d8afbb
	https://git.kernel.org/stable/c/66f44ec974ab372e4e1ee9eac4245237c94e8f68
	https://git.kernel.org/stable/c/f3c9e84268e9fa613d40d6c138fb6969c35879b5
	https://git.kernel.org/stable/c/bbd97d71e53e551890e4115ad9de46b5f2ac0858