net: ethernet: cortina: Fix budget accounting
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 4d5ae32f5e1e13f7f36d6439ec3257993b9f5b88 · < 0ef8eaef5806c84db2334111d6f299c246a592bc| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: ethernet: cortina: Fix budget accounting
The gmac_rx() function returns the remaining NAPI budget, but its caller treats the return value as the number of packets received. An idle poll therefore reports a full budget and remains scheduled.
Return the number of received packets instead. Preserve the existing free queue refill accounting by adding that count directly; continuing to subtract it from the budget would invert the refill behavior.
From the CVE record · Linux
The Cortina Ethernet driver's gmac_rx() returns the remaining NAPI budget, but its caller treats that value as the number of packets received. An idle poll can therefore remain scheduled; the input does not specify an attacker, access conditions, or user interaction.
Engineers running Linux kernels with the Cortina Ethernet driver should check their versions; affected versions are not specified.