HID: huawei: fix missing hid_is_usb() check
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 |
|
|
7.1.117.2.17.3In the Linux kernel, the following vulnerability has been resolved:
HID: huawei: 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’s Huawei HID driver uses to_usb_interface() without checking whether the device has a USB parent. A locally created uhid device can claim to be on the USB bus without having a USB parent, triggering a kernel splat in an ASAN build. Authentication requirements are not specified.
Engineers running Linux kernels with the affected Huawei HID driver should check their versions; affected versions are not specified.