net: ethernet: ti: am65-cpsw-nuss: Fix port_id extraction from SRC TAG
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 93a76530316a3d8cc2d82c3deca48424fee92100 · < 72e4e3d7efc3b7d85f86abbe8b94f8e45074abe3| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s am65-cpsw-nuss Ethernet driver can use hardware-reserved bits from a received packet’s metadata as part of a MAC port ID. The resulting out-of-bounds access can cause a sporadic kernel crash. The input does not establish whether an attacker can trigger this over a network, or whether authentication or user interaction is required.
Teams running Linux kernels with the am65-cpsw-nuss Ethernet driver should check their exposure; affected versions were not provided.