media: rc: igorplugusb: fix control request setup packet
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 0adac0ee2c42027d80bac02ea9b576a88f8955d3 · < f33b5a61673bd220fdaaf4202cf1013d6d66c943| No fix yet |
| Linux Linux |
| No fix yet |
In the Linux kernel, the following vulnerability has been resolved:
media: rc: igorplugusb: fix control request setup packet
Commit eac69475b01f ("media: rc: igorplugusb: heed coherency rules") changed the control request storage from an embedded struct to an allocated pointer so it can obey DMA coherency rules.
However, the driver still passes &ir->request to usb_fill_control_urb(). That points the URB setup packet at the pointer field itself rather than at the allocated struct usb_ctrlrequest.
USB core then interprets pointer bytes as the setup packet. This can produce an invalid bRequestType and trigger the control direction warning reported by syzbot:
usb 2-1: BOGUS control dir, pipe 80003580 doesn't match bRequestType 0
Pass ir->request itself as the setup packet.
From the CVE record · Linux
The Linux kernel's igorplugusb driver passes a pointer field instead of the allocated control request to the USB core. When the driver submits a control request, the USB core can interpret pointer bytes as the setup packet, producing an invalid request type and a control-direction warning. The input does not specify an attacker action, authentication requirement, or user interaction.
Engineers running Linux kernels with the igorplugusb driver should check whether their kernel includes the affected change; affected versions are not specified.