Skip to contentSkip to conversation

CVE-2026-46145: RDMA/mana: Validate rx_hash_key_len

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: Validate rx_hash_key_len

Sashiko points out that rx_hash_key_len comes from a uAPI structure and is blindly passed to memcpy, allowing the userspace to trash kernel memory. Bounds check it so the memcpy cannot overflow.

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

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

	Issue introduced in 6.2 with commit 0266a177631d4c6b963b5b12dd986a8c5abdbf06 and fixed in 6.6.141 with commit 7d7c9f0fcd19c4d2f0164347c58d49cafa961b72
	Issue introduced in 6.2 with commit 0266a177631d4c6b963b5b12dd986a8c5abdbf06 and fixed in 6.12.88 with commit 11c1431d641e0e4e0529e96957995820600c7287
	Issue introduced in 6.2 with commit 0266a177631d4c6b963b5b12dd986a8c5abdbf06 and fixed in 6.18.30 with commit 012796f9541fcd0c1fa8ae4da7eb4d83931ef838
	Issue introduced in 6.2 with commit 0266a177631d4c6b963b5b12dd986a8c5abdbf06 and fixed in 7.0.7 with commit 7d94f155f354b961c598f71bafa804dceded513f
	Issue introduced in 6.2 with commit 0266a177631d4c6b963b5b12dd986a8c5abdbf06 and fixed in 7.1-rc3 with commit 6dd2d4ad9c8429523b1c220c5132bd551c006425

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

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/7d7c9f0fcd19c4d2f0164347c58d49cafa961b72
	https://git.kernel.org/stable/c/11c1431d641e0e4e0529e96957995820600c7287
	https://git.kernel.org/stable/c/012796f9541fcd0c1fa8ae4da7eb4d83931ef838
	https://git.kernel.org/stable/c/7d94f155f354b961c598f71bafa804dceded513f
	https://git.kernel.org/stable/c/6dd2d4ad9c8429523b1c220c5132bd551c006425