HID: hid-thrustmaster: fix stack-out-of-bounds read in usb_check_int_endpoints()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
| No fix yet |
In the Linux kernel, the following vulnerability has been resolved:
HID: hid-thrustmaster: fix stack-out-of-bounds read in usb_check_int_endpoints()
Syzbot[1] has detected a stack-out-of-bounds read of the ep_addr array from hid-thrustmaster driver. This array is passed to usb_check_int_endpoints function from usb.c core driver, which executes a for loop that iterates over the elements of the passed array. Not finding a null element at the end of the array, it tries to read the next, non-existent element, crashing the kernel.
To fix this, a 0 element was added at the end of the array to break the for loop.
[1] https://syzkaller.appspot.com/bug?extid=9c9179ac46169c56c1ad
From the CVE record · Linux
The Linux kernel's hid-thrustmaster driver passes an array without a terminating zero to usb_check_int_endpoints(), causing an out-of-bounds stack read. When the endpoint check runs, the read can crash the kernel. The input does not establish whether an attacker can trigger this remotely or locally, or whether authentication or user interaction is required.
Anyone running a Linux kernel with the hid-thrustmaster driver should check their version; affected versions were not specified.