net: bcmasp: fix tx_spb_ring_full() checking same slot cnt times
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: bcmasp: fix tx_spb_ring_full() checking same slot cnt times
The loop initialised next_index from intf->tx_spb_index on every iteration, so incr_ring() always produced the same result and only one slot was ever tested. Move the initialisation before the loop so each iteration advances next_index and the function correctly checks that cnt consecutive descriptor slots are available before allowing a new transmission.
From the CVE record · Linux
The bcmasp transmit-ring check tests the same descriptor slot repeatedly instead of checking consecutive slots before allowing a transmission. The input does not specify an attacker action or whether exploitation requires network or local access, authentication, or user interaction.
Engineers running Linux kernels with the bcmasp component should check their versions; affected versions are not specified.