net: ethernet: cortina: Make RX SKB per-port
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 4d5ae32f5e1e13f7f36d6439ec3257993b9f5b88 · < cfd62907f3cdbc3b6da8f49ba907c0390018fe5e| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: ethernet: cortina: Make RX SKB per-port
The SKB used to assemble packets from fragments in gmac_rx() is static local, but the Gemini has two ethernet ports, meaning there can be races between the ports on a bad day if a device is using both.
Make the RX SKB a per-port variable and carry it over between invocations in the port struct instead.
Zero the pointer once we call napi_gro_frags(), on error (after calling napi_free_frags()) or if the port is stopped.
Zero it in some place where not strictly necessary just to emphasize what is going on.
This was found by Sashiko during normal patch review.
From the CVE record · Linux
The Linux kernel's Cortina Ethernet driver uses a shared packet buffer while assembling received fragments. A race can occur when a Gemini device uses both Ethernet ports. The input does not establish an attacker action, authentication requirement, or user interaction requirement.
Engineers running Linux on Gemini devices that use both Ethernet ports should check their kernel; affected versions were not provided.