HID: asus: fix missing hid_is_usb() check
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
02d5431198f10e7c6e31f4138c14cfe400ec55a7| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
HID: asus: fix missing hid_is_usb() check
to_usb_interface() can only be used on a hid_device whose parent is really USB; uhid can create devices that identify as being on BUS_USB, but don't actually have a USB parent. Fix the use of to_usb_interface() without a hid_is_usb() check.
I have verified that it is currently possible to trigger a kernel splat due to this bug in an ASAN build, and that this commit fixes the issue.
From the CVE record · Linux
The Linux kernel HID asus driver uses to_usb_interface() without checking whether a device has a USB parent. A locally created uhid device that identifies as BUS_USB but lacks a USB parent can trigger a kernel splat in an ASAN build; authentication requirements are not specified.
Engineers running Linux kernels with the HID asus driver should check their versions; affected versions are not specified.