CVE-2026-31625: HID: alps: fix NULL pointer dereference in alps_raw_event()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
HID: alps: fix NULL pointer dereference in alps_raw_event()
Commit ecfa6f34492c ("HID: Add HID_CLAIMED_INPUT guards in raw_event callbacks missing them") attempted to fix up the HID drivers that had missed the previous fix that was done in 2ff5baa9b527 ("HID: appleir:
Fix potential NULL dereference at raw event handle"), but the alps driver was missed.
Fix this up by properly checking in the hid-alps driver that it had been claimed correctly before attempting to process the raw event.
The Linux kernel CVE team has assigned CVE-2026-31625 to this issue.
Affected and fixed versions
===========================
Fixed in 6.12.83 with commit 8eed7bce7a4c41ab28ee4891103623a12fd41611 Fixed in 6.18.24 with commit 0091dfa542a362c178a7e9393097138a57d327d1 Fixed in 6.19.14 with commit 4b618248d2307a219d9431a730cfe1156c8e3386 Fixed in 7.0.1 with commit ee2cb3ddfdca949dbc0c3f796ed5a439f0efc9f6
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-31625
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/hid/hid-alps.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/8eed7bce7a4c41ab28ee4891103623a12fd41611 https://git.kernel.org/stable/c/0091dfa542a362c178a7e9393097138a57d327d1 https://git.kernel.org/stable/c/4b618248d2307a219d9431a730cfe1156c8e3386 https://git.kernel.org/stable/c/ee2cb3ddfdca949dbc0c3f796ed5a439f0efc9f6 https://git.kernel.org/stable/c/1badfc4319224820d5d890f8eab6aa52e4e83339