net: usb: sr9700: include receive overhead in the length check
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ c9b37458e95629b1d1171457afdcc1bf1eb7881d · < 6ab6c9d120b30c94579192ef83a581a3dda6d79c| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: usb: sr9700: include receive overhead in the length check
The receive fixup subtracts the Ethernet CRC from the reported packet length, but compares that payload length against the whole remaining receive buffer. The following copy starts after the three-byte header, and the cursor advance consumes both that header and the four-byte CRC.
Require the payload to fit after SR_RX_OVERHEAD before copying it or advancing to the next packet. The loop already ensures that the remaining buffer is larger than the overhead, so the subtraction is safe.
The issue was found by our static-analysis tool.
From the CVE record · Linux
The Linux kernel's sr9700 USB network driver checks packet length without accounting for the receive header and CRC, so receive processing can copy beyond the remaining buffer. The input does not specify how an attacker could trigger this, whether authentication or user interaction is needed, or the impact beyond the faulty copy.
Engineers running Linux kernels with the sr9700 USB network driver should check their versions; affected versions were not provided.