net: bcmgenet: fix off-by-one in bcmgenet_put_txcb
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 876dbadd53a7102e2a84afc84ea2bd3ee6dc5636 · < 4cab761fc51c65aef741fcece4a18f3554edbc09| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: bcmgenet: fix off-by-one in bcmgenet_put_txcb
The write_ptr points to the next open tx_cb. We want to return the tx_cb that gets rewinded, so we must rewind the pointer first then return the tx_cb that it points to. That way the txcb can be correctly cleaned up.
From the CVE record · Linux
An off-by-one error in the Linux kernel's bcmgenet transmit-buffer handling can prevent a transmit control block from being cleaned up correctly. The input does not establish what an attacker could do or whether exploitation requires network access, local access, authentication, or user interaction.
Engineers running Linux kernels with the bcmgenet network driver should check whether their versions are affected; no affected versions are specified.