HID: hid-thrustmaster: fix OOB read in thrustmaster_interrupts
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 |
|
|
5.15.295.16.155.17In the Linux kernel, the following vulnerability has been resolved:
HID: hid-thrustmaster: fix OOB read in thrustmaster_interrupts
Syzbot reported an slab-out-of-bounds Read in thrustmaster_probe() bug. The root case is in missing validation check of actual number of endpoints.
Code should not blindly access usb_host_interface::endpoint array, since it may contain less endpoints than code expects.
Fix it by adding missing validaion check and print an error if number of endpoints do not match expected number
From the CVE record · Linux
The Linux kernel's hid-thrustmaster driver does not check that a USB interface has the expected number of endpoints. If the interface has fewer endpoints than expected, the driver can read beyond the endpoint array during device probing. The input does not specify authentication requirements or whether user interaction is needed.
Engineers running Linux kernels with the hid-thrustmaster driver should check their versions; affected versions are not specified.