Linux: HID: alps: unregister DualPoint Stick input device on remove
What fixes it
- 1170ebfba562b3938ff7749b2e42e4420f19436dLinuxCVE List
- 978e801750c7b0859e87eae619f7d88fcd88333eLinuxCVE List
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Description
In the Linux kernel, the following vulnerability has been resolved:
HID: alps: unregister DualPoint Stick input device on remove
alps_input_configured() allocates a second input device ("DualPoint Stick") with input_allocate_device() and registers it, but the alps_driver struct has no .remove handler and input2 is not tracked in hdev->inputs. The default remove path (hid_hw_stop -> hidinput_disconnect) only iterates hdev->inputs, so input2 is never unregistered and leaks on every device removal.
Add a .remove handler that stops the device first (preventing URB callbacks from touching input2 during teardown) and then unregisters input2.
Text from CVE List
Affected versions 12
- Linuxaffected: 2562756dde550901c224e3805102bdfc17e7d13a before bd9571812d02242b6bba2637fba924a78a5c6fa8CVE List
- Linuxaffected: 2562756dde550901c224e3805102bdfc17e7d13a before 1170ebfba562b3938ff7749b2e42e4420f19436dCVE List
- Linuxaffected: 2562756dde550901c224e3805102bdfc17e7d13a before aa4845a710ae9fee6a3831f5c338904cea77c3aaCVE List
- Linuxaffected: 2562756dde550901c224e3805102bdfc17e7d13a before 978e801750c7b0859e87eae619f7d88fcd88333eCVE List
- Linuxaffected: 2562756dde550901c224e3805102bdfc17e7d13a before aa9dde93e05a837645fdfd577eea71f0733f0694CVE List
- Linuxaffected: 4.8CVE List
- Linuxunaffected: all versions before 4.8CVE List
- Linuxunaffected: 6.6.160 through 6.6.*CVE List
- Linuxunaffected: 6.12.112 through 6.12.*CVE List
- Linuxunaffected: 6.18.55 through 6.18.*CVE List
- Linuxunaffected: 7.2.9 through 7.2.*CVE List
- Linuxunaffected: 7.3CVE List
References 5
- git.kernel.org/stable/c/bd9571812d02242b6bba2637fba924a78a5c6fa8Referencevia CVE List
- git.kernel.org/stable/c/1170ebfba562b3938ff7749b2e42e4420f19436dReferencevia CVE List
- git.kernel.org/stable/c/aa4845a710ae9fee6a3831f5c338904cea77c3aaReferencevia CVE List
- git.kernel.org/stable/c/978e801750c7b0859e87eae619f7d88fcd88333eReferencevia CVE List
- git.kernel.org/stable/c/aa9dde93e05a837645fdfd577eea71f0733f0694Referencevia CVE List