Skip to contentSkip to conversation

CVE-2026-74737: net: ethernet: ti: am65-cpsw-nuss: Fix port_id extraction from SRC TAG

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 26

lore
Share & tools
lore
#0 lore raw

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

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

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

net: ethernet: ti: am65-cpsw-nuss: Fix port_id extraction from SRC TAG

On the packet reception path, the ID of the MAC Port on which the packet was received, is embedded in the RX DMA Descriptor's metadata. The ID is extracted using the helper function cppi5_desc_get_tags_ids() which fills in the 16-bit Source Tag into the 'port_id' variable. However, it is only the lower 8-bits of the 16-bit Source Tag that represent the MAC Port ID, while the upper 8-bits are Hardware-Reserved and carry an arbitrary value. With the existing logic, sporadic kernel crash is observed due to the subsequent driver code accessing out-of-bound memory because of an invalid port_id.

Hence, fix the port_id extraction logic to use only the lower 8-bits of the Source Tag as the MAC Port ID.

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

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

	Issue introduced in 5.7 with commit 93a76530316a3d8cc2d82c3deca48424fee92100 and fixed in 5.10.266 with commit 14fc40bf28390e0ebee6a072457c36b82c614100
	Issue introduced in 5.7 with commit 93a76530316a3d8cc2d82c3deca48424fee92100 and fixed in 5.15.217 with commit 1c0e35ce761131f82062222779d8574849790892
	Issue introduced in 5.7 with commit 93a76530316a3d8cc2d82c3deca48424fee92100 and fixed in 6.1.184 with commit 9a220225efd6f58350bbb53fe70bdec08519267f
	Issue introduced in 5.7 with commit 93a76530316a3d8cc2d82c3deca48424fee92100 and fixed in 6.6.153 with commit 551688b410d3fb0dae7739724422f268cd9446d6
	Issue introduced in 5.7 with commit 93a76530316a3d8cc2d82c3deca48424fee92100 and fixed in 6.12.105 with commit 46a8e084a159e638ac2728e96980b65d752d65fd
	Issue introduced in 5.7 with commit 93a76530316a3d8cc2d82c3deca48424fee92100 and fixed in 6.18.46 with commit 72e4e3d7efc3b7d85f86abbe8b94f8e45074abe3
	Issue introduced in 5.7 with commit 93a76530316a3d8cc2d82c3deca48424fee92100 and fixed in 7.1.10 with commit 914e0100df3435bd14d09f397238e891cf9b7dce
	Issue introduced in 5.7 with commit 93a76530316a3d8cc2d82c3deca48424fee92100 and fixed in 7.2 with commit 36a05d2820077bb3955acb8111e1041d39148037

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

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/ti/am65-cpsw-nuss.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/14fc40bf28390e0ebee6a072457c36b82c614100
	https://git.kernel.org/stable/c/1c0e35ce761131f82062222779d8574849790892
	https://git.kernel.org/stable/c/9a220225efd6f58350bbb53fe70bdec08519267f
	https://git.kernel.org/stable/c/551688b410d3fb0dae7739724422f268cd9446d6
	https://git.kernel.org/stable/c/46a8e084a159e638ac2728e96980b65d752d65fd
	https://git.kernel.org/stable/c/72e4e3d7efc3b7d85f86abbe8b94f8e45074abe3
	https://git.kernel.org/stable/c/914e0100df3435bd14d09f397238e891cf9b7dce
	https://git.kernel.org/stable/c/36a05d2820077bb3955acb8111e1041d39148037