usb: misc: usbio: check ibuf_len against rxbuf_len in bulk msg
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.457.1.97.2In the Linux kernel, the following vulnerability has been resolved:
usb: misc: usbio: check ibuf_len against rxbuf_len in bulk msg
ibuf_len is the bulk IN (receive) buffer size, but the EMSGSIZE check in usbio_bulk_msg() compares it against txbuf_len — the bulk OUT endpoint size. Both are taken independently from different endpoints in usbio_probe(), so the check is wrong when they differ.
Use rxbuf_len for the IN direction. This matches the buffer that actually holds the response data.
From the CVE record · Linux
The Linux kernel usbio driver compares the bulk IN buffer length against the bulk OUT buffer size instead of the receive buffer size. When the endpoint sizes differ, this can make the EMSGSIZE check incorrect; the input does not establish an attacker capability or specify access or user-interaction requirements.
Teams running the Linux kernel should check whether their kernel includes the affected usbio code; affected versions are not specified.