CVE-2026-64225: octeontx2-af: CGX: add bounds check to cgx_speed_mbps index

Greg Kroah-Hartman <[email protected]>
Newsgroups org.kernel.vger.linux-cve-announce
Message-ID <2026072417-CVE-2026-64225-a263@gregkh>
From: Greg Kroah-Hartman <[email protected]>

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

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

octeontx2-af: CGX: add bounds check to cgx_speed_mbps index

cgx_speed_mbps has 13 elements but RESP_LINKSTAT_SPEED can yield values
0-15. If it returns a value >= 13, this causes an out-of-bounds array
access. Add a bounds check and default to speed 0 if the index is out of
range.

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


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

	Issue introduced in 4.20 with commit 61071a871ea6eb2125ece91c1a0dbb124a318c8a and fixed in 5.10.259 with commit 94071141f00bc414e8f8f7f5db3b5143d535299f
	Issue introduced in 4.20 with commit 61071a871ea6eb2125ece91c1a0dbb124a318c8a and fixed in 5.15.210 with commit 985b5e38ac4f4d5ff03c8bfd8484353b440a1579
	Issue introduced in 4.20 with commit 61071a871ea6eb2125ece91c1a0dbb124a318c8a and fixed in 6.1.176 with commit 93d3dc81098cd60fb74d434ba7985ddfd9de5acb
	Issue introduced in 4.20 with commit 61071a871ea6eb2125ece91c1a0dbb124a318c8a and fixed in 6.6.143 with commit e043017ac429caee73bd30c5a725659f1a3a4568
	Issue introduced in 4.20 with commit 61071a871ea6eb2125ece91c1a0dbb124a318c8a and fixed in 6.12.92 with commit 8201bf45cc7c1c1a09290c4db8ab1e19801f8fec
	Issue introduced in 4.20 with commit 61071a871ea6eb2125ece91c1a0dbb124a318c8a and fixed in 6.18.34 with commit 47a4cf2229be379cf88f92e32e1240337cd6273f
	Issue introduced in 4.20 with commit 61071a871ea6eb2125ece91c1a0dbb124a318c8a and fixed in 7.0.11 with commit 2c3d26b4a62454945ba9ef3af3174d3e40e7afef
	Issue introduced in 4.20 with commit 61071a871ea6eb2125ece91c1a0dbb124a318c8a and fixed in 7.1 with commit c0bf0a4f3f1f5f57aa83e1400ba4f56f0abfd542

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-64225
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/af/cgx.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/94071141f00bc414e8f8f7f5db3b5143d535299f
	https://git.kernel.org/stable/c/985b5e38ac4f4d5ff03c8bfd8484353b440a1579
	https://git.kernel.org/stable/c/93d3dc81098cd60fb74d434ba7985ddfd9de5acb
	https://git.kernel.org/stable/c/e043017ac429caee73bd30c5a725659f1a3a4568
	https://git.kernel.org/stable/c/8201bf45cc7c1c1a09290c4db8ab1e19801f8fec
	https://git.kernel.org/stable/c/47a4cf2229be379cf88f92e32e1240337cd6273f
	https://git.kernel.org/stable/c/2c3d26b4a62454945ba9ef3af3174d3e40e7afef
	https://git.kernel.org/stable/c/c0bf0a4f3f1f5f57aa83e1400ba4f56f0abfd542
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.