HID: nintendo: fix rumble worker null pointer deref
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: nintendo: fix rumble worker null pointer deref
We can dereference a null pointer trying to queue work to a destroyed workqueue.
If the device is disconnected, nintendo_hid_remove is called, in which the rumble_queue is destroyed. Avoid using that queue to defer rumble work once the controller state is set to JOYCON_CTLR_STATE_REMOVED.
This eliminates the null pointer dereference.
From the CVE record · Linux
The Linux kernel’s Nintendo HID rumble worker can dereference a null pointer if it tries to queue work after a controller disconnect destroys the workqueue. The input does not specify how an attacker could trigger this condition or whether authentication or user interaction is required.
Engineers running the Linux kernel with Nintendo HID controller support should check their systems; affected versions are not specified.