HID: hid-ntrig: fix unable to handle page fault in ntrig_report_version()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 0277873c05158c5efc97c23d52e6aec6250bde0f · < 98520a9a3d69a530dd1ee280cbe0abc232a35bff| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
HID: hid-ntrig: fix unable to handle page fault in ntrig_report_version()
in ntrig_report_version(), hdev parameter passed from hid_probe(). sending descriptor to /dev/uhid can make hdev->dev.parent->parent to null if hdev->dev.parent->parent is null, usb_dev has invalid address(0xffffffffffffff58) that hid_to_usb_dev(hdev) returned when usb_rcvctrlpipe() use usb_dev,it trigger page fault error for address(0xffffffffffffff58)
add null check logic to ntrig_report_version() before calling hid_to_usb_dev()
From the CVE record · Linux
The Linux kernel’s hid-ntrig driver can dereference a null parent device in ntrig_report_version(). Someone able to send a descriptor to /dev/uhid can trigger a page fault; the input does not specify authentication requirements or user interaction.
Engineers running Linux kernels with the hid-ntrig driver should check their exposure; affected versions are not specified.