Skip to contentSkip to conversation

CVE-2025-71137: octeontx2-pf: fix "UBSAN: shift-out-of-bounds error"

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jan 14

lore
Share & tools
lore
#0 lore raw

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

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

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

octeontx2-pf: fix "UBSAN: shift-out-of-bounds error"

This patch ensures that the RX ring size (rx_pending) is not set below the permitted length. This avoids UBSAN shift-out-of-bounds errors when users passes small or zero ring sizes via ethtool -G.

The Linux kernel CVE team has assigned CVE-2025-71137 to this issue.

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

	Issue introduced in 5.6 with commit d45d8979840d9c9ac93d3fe8cfc8e794b7228445 and fixed in 6.1.160 with commit 658caf3b8aad65f8b8e102670ca4f68c7030f655
	Issue introduced in 5.6 with commit d45d8979840d9c9ac93d3fe8cfc8e794b7228445 and fixed in 6.6.120 with commit b23a2e15589466a027c9baa3fb5813c9f6a6c6dc
	Issue introduced in 5.6 with commit d45d8979840d9c9ac93d3fe8cfc8e794b7228445 and fixed in 6.12.64 with commit aa743b0d98448282b2cb37356db8db2a48524624
	Issue introduced in 5.6 with commit d45d8979840d9c9ac93d3fe8cfc8e794b7228445 and fixed in 6.18.4 with commit 442848e457f5a9f71a4e7e14d24d73dae278ebe3
	Issue introduced in 5.6 with commit d45d8979840d9c9ac93d3fe8cfc8e794b7228445 and fixed in 6.19-rc4 with commit 85f4b0c650d9f9db10bda8d3acfa1af83bf78cf7

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-2025-71137

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/net/ethernet/marvell/octeontx2/nic/otx2_ethtool.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/658caf3b8aad65f8b8e102670ca4f68c7030f655
	https://git.kernel.org/stable/c/b23a2e15589466a027c9baa3fb5813c9f6a6c6dc
	https://git.kernel.org/stable/c/aa743b0d98448282b2cb37356db8db2a48524624
	https://git.kernel.org/stable/c/442848e457f5a9f71a4e7e14d24d73dae278ebe3
	https://git.kernel.org/stable/c/85f4b0c650d9f9db10bda8d3acfa1af83bf78cf7