HID: magicmouse: Do not crash on missing msc->input
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 64eb105d7f92fa48798106ac0d8bf17668eb2524 · < 5bbe266272d86c0657e8253600f3d5b74fb7b2ae| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
HID: magicmouse: Do not crash on missing msc->input
Fake USB devices can send their own report descriptors for which the input_mapping() hook does not get called. In this case, msc->input stays NULL, leading to a crash at a later time.
Detect this condition in the input_configured() hook and reject the device.
This is not supposed to happen with actual magic mouse devices, but can be provoked by imposing as a magic mouse USB device.
From the CVE record · Linux
The Linux kernel’s magicmouse HID driver can crash when a USB device posing as a magic mouse supplies a report descriptor that leaves an input pointer unset. An attacker able to present such a USB device can trigger the crash; the description does not specify an authentication requirement.
Engineers running Linux kernels with the magicmouse HID driver should check their kernel version; affected versions were not provided.