Linux
net: ethernet: ti: am65-cpsw-nuss: Fix port_id extraction from SRC TAG
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 93a76530316a3d8cc2d82c3deca48424fee92100, < 14fc40bf28390e0ebee6a072457c36b82c614100
- >= 93a76530316a3d8cc2d82c3deca48424fee92100, < 1c0e35ce761131f82062222779d8574849790892
- >= 93a76530316a3d8cc2d82c3deca48424fee92100, < 9a220225efd6f58350bbb53fe70bdec08519267f
- >= 93a76530316a3d8cc2d82c3deca48424fee92100, < 551688b410d3fb0dae7739724422f268cd9446d6
- >= 93a76530316a3d8cc2d82c3deca48424fee92100, < 46a8e084a159e638ac2728e96980b65d752d65fd
- >= 93a76530316a3d8cc2d82c3deca48424fee92100, < 72e4e3d7efc3b7d85f86abbe8b94f8e45074abe3
- >= 93a76530316a3d8cc2d82c3deca48424fee92100, < 914e0100df3435bd14d09f397238e891cf9b7dce
- >= 93a76530316a3d8cc2d82c3deca48424fee92100, < 36a05d2820077bb3955acb8111e1041d39148037
Fixed in 14fc40bf28390e0ebee6a072457c36b82c614100, 1c0e35ce761131f82062222779d8574849790892, 9a220225efd6f58350bbb53fe70bdec08519267f, 551688b410d3fb0dae7739724422f268cd9446d6, 46a8e084a159e638ac2728e96980b65d752d65fd, 72e4e3d7efc3b7d85f86abbe8b94f8e45074abe3, 914e0100df3435bd14d09f397238e891cf9b7dce, 36a05d2820077bb3955acb8111e1041d39148037
- 5.7
Fixed in 0, 5.10.266, 5.15.217, 6.1.184, 6.6.153, 6.12.105, 6.18.46, 7.1.10, 7.2
Mitigation
Upgrade Linux to 14fc40bf28390e0ebee6a072457c36b82c614100 or 1c0e35ce761131f82062222779d8574849790892 or 9a220225efd6f58350bbb53fe70bdec08519267f or 551688b410d3fb0dae7739724422f268cd9446d6 or 46a8e084a159e638ac2728e96980b65d752d65fd or 72e4e3d7efc3b7d85f86abbe8b94f8e45074abe3 or 914e0100df3435bd14d09f397238e891cf9b7dce or 36a05d2820077bb3955acb8111e1041d39148037 or later.
Upgrade Linux to 0 or 5.10.266 or 5.15.217 or 6.1.184 or 6.6.153 or 6.12.105 or 6.18.46 or 7.1.10 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.