CVE-2026-98501: HID: alps: fix use-after-free on input2 registration failure

Published Oct 18, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

HID: alps: fix use-after-free on input2 registration failure

alpsinputconfigured() stores data->input2 before calling inputregisterdevice(). If registration fails, inputfreedevice() frees the input device but data->input2 still points to the freed memory. alpsinputconfigured() calls hidhwopen() before allocating input2, so URBs are already active and rawevent can fire during the failure window. A U1SPABSOLUTEREPORTID report arriving then causes u1rawevent() to dereference the freed data->input2 -> use-after-free.

Fix by only storing input2 into drvdata after successful registration and adding a NULL guard in the rawevent path.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In the HID Alps driver, assign data->input2 only after input_register_device() succeeds; call input_free_device() when registration fails, and add a NULL guard in the raw_event path to prevent dereferencing freed data->input2 while URBs are active.

Event History

Oct 18, 2026
CVE Published
via MITRE·03:16 PM
Data Sourced
via MITRE·03:16 PM
Description
Data Sourced
via NVD·04:17 PM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203