CRITICAL Introduced in 5.7
am65-cpsw PortId OOB
CVE-2026-74737
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
KernelScan AI9.8CRITICAL
01Description
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.
02KernelScan AI Analysis
Risk summary
A bug in the TI AM65x/J721E CPSW Ethernet driver causes sporadic kernel crashes when receiving network packets. The driver uses a 16-bit hardware metadata field as an array index without masking to the valid 8-bit port ID, leading to out-of-bounds memory access. Any device using this specific TI SoC with an active Ethernet interface is at risk of denial of service from normal or malicious network traffic.
Vulnerability analysis
The TI AM65x/J721E CPSW Ethernet driver extracts the MAC port identifier from a 16-bit Source Tag field in the receive DMA descriptor metadata, but only the lower 8 bits represent the actual port ID — the upper 8 bits are hardware-reserved and contain arbitrary values set by the hardware. Using the full 16-bit value as an index into the port array causes sporadic out-of-bounds memory accesses, resulting in kernel crashes. The fix masks the Source Tag to its lower 8 bits before using it as a port index, ensuring only the valid portion of the field is used. The vulnerable code path is the packet reception handler, reached whenever the network interface processes incoming traffic; any network participant who can send packets to the device's Ethernet interface can trigger the receive path, though the crash itself is sporadic and depends on hardware state rather than packet content. This issue requires specific TI AM65x/J721E SoC hardware with the CPSW NUSS Ethernet subsystem active.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 5.15 | 5.7 | 5.15.217 | 1c0e35ce7611 |
| 5.10 | 5.7 | 5.10.266 | 14fc40bf2839 |
| 6.1 | 5.7 | 6.1.184 | 9a220225efd6 |
| 6.12 | 5.7 | 6.12.105 | 46a8e084a159 |
| 6.18 | 5.7 | 6.18.46 | 72e4e3d7efc3 |
| mainline | 5.7 | 7.2 | 36a05d282007 |
| 6.6 | 5.7 | 6.6.153 | 551688b410d3 |
| 7.1 | 5.7 | 7.1.10 | 914e0100df34 |
| cip/5.10 | 5.7 | 5.10.268-cip77 | 14fc40bf2839 |
| cip/5.10-rt | 5.7 | 5.10.268-cip77-rt34 | 14fc40bf2839 |
| cip/6.1 | 5.7 | 6.1.187-cip60 | 9a220225efd6 |
| cip/6.12 | 5.7 | 6.12.108-cip31 | 46a8e084a159 |