HID: magicmouse: fix NULL-deref on disconnect
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 |
|
|
In the Linux kernel, the following vulnerability has been resolved:
HID: magicmouse: fix NULL-deref on disconnect
Commit 9d7b18668956 ("HID: magicmouse: add support for Apple Magic Trackpad 2") added a sanity check for an Apple trackpad but returned success instead of -ENODEV when the check failed. This means that the remove callback will dereference the never-initialised driver data pointer when the driver is later unbound (e.g. on USB disconnect).
From the CVE record · Linux
The Linux kernel’s HID magicmouse driver can return success when a sanity check for an Apple trackpad fails, leaving driver data uninitialized. When the driver is later unbound, such as on USB disconnect, its remove callback dereferences a NULL pointer. The input does not specify authentication requirements.
Engineers running the Linux kernel with the HID magicmouse driver should check their systems; affected versions are not specified.