В ядре Linux устранена следующая уязвимость: HID: alps: unregister DualPoint Stick input device on remove alps_input_configured() выделяет второе устройство ввода («DualPoint Stick») с input_allocate_device() и регистрирует его, но структура alps_driver не имеет обработчика .remove, а input2 не отслеживается в hdev->inputs. Путь удаления по умолчанию (hid_hw_stop -> hidinput_disconnect) итерирует только hdev->inputs, поэтому input2 никогда не регистрируется и протекает при каждом удалении устройства. Добавьте обработчик .remove, который сначала останавливает устройство (предотвращая повторные вызовы URB от касания input2 во время разборки), а затем отменяет регистрацию input2.
Показать оригинальное описание (EN)
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.