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.
https://git.kernel.org/stable/c/e1f5b74edccf4c9b671b6bce4435a98746fe5167
https://git.kernel.org/stable/c/c06bde80ae7a7b595732f7cabcb92cf08db9d56a
https://git.kernel.org/stable/c/baf07d5153d3af8f98e65e2d3566bc0d50c4e3ac
https://git.kernel.org/stable/c/9b59b00890c5dea355b4cc8795ab8eeafc044e48
https://git.kernel.org/stable/c/92d88c88390fc62444c00a1a22078f838e03891f
https://git.kernel.org/stable/c/8488779d9bddbdb33588c9fc2c0657a3da773f61
https://git.kernel.org/stable/c/6ab6c9d120b30c94579192ef83a581a3dda6d79c
https://git.kernel.org/stable/c/05b442709bd5256c6c0e11fe56b9a0cb2455c245