KernelScan.io

HIGH Introduced in 4.8

hid AlpsStick UAF

CVE-2026-98501

CVSS 7.1 / 10.0 NVD

CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

KernelScan AI6.3MEDIUM

01

In the Linux kernel, the following vulnerability has been resolved: HID: alps: fix use-after-free on input2 registration failure alps_input_configured() stores data->input2 before calling input_register_device(). If registration fails, input_free_device() frees the input device but data->input2 still points to the freed memory. alps_input_configured() calls hid_hw_open() before allocating input2, so URBs are already active and raw_event can fire during the failure window. A U1_SP_ABSOLUTE_REPORT_ID report arriving then causes u1_raw_event() 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 raw_event path.

02

Engine v0.9.0

Risk summary

A use-after-free exists in the Alps I2C HID touchpad-stick driver during device initialization. If the second input device (the pointing stick) fails to register, its memory is freed but a dangling pointer remains in the driver data. Since hardware URBs are already active, an incoming stick report can dereference the freed object, potentially allowing a local attacker with root privileges (to reload the module) or physical access at boot to achieve kernel code execution.

Affecteddrivers/hid/hid-alps.c (HID Alps I2C driver)

Vulnerability analysis

During initialization of the Alps touchpad-stick device, the driver activates the hardware interface before completing registration of the pointing stick input device. The driver stores a pointer to this device prematurely; if registration subsequently fails, the input subsystem frees the device but the pointer remains dangling. Because the hardware is already active, an incoming pointing stick report can trigger a use-after-free by accessing the freed memory. The fix ensures the pointer is stored only after successful registration and adds a safety check to ignore stick reports before the device is ready. Exploitation requires either physical interaction with the trackpoint during boot or local root privileges to reload the driver, combined with precise timing to hit the narrow failure window.

03

BranchIntroducedFixed inPatch commit
5.104.85.10.27164f824dccfd3
5.154.85.15.2222e55d76e6e8a
6.14.86.1.189ef8ca5bb4c8b
6.124.86.12.11247e5e177e9e4
6.184.86.18.55925da1d2a247
6.64.86.6.1585a8ad6315816
7.24.87.2.9443f6b93442b
mainline4.87.3d3aba3442798
cip/5.104.85.10.271-cip7864f824dccfd3
cip/5.10-rt4.85.10.272-cip79-rt3564f824dccfd3
cip/6.14.86.1.189-cip61ef8ca5bb4c8b
cip/6.1-rt4.86.1.189-cip61-rt32ef8ca5bb4c8b
cip/6.124.86.12.112-cip3347e5e177e9e4

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.112-cip33
cip/6.1Fixed in 6.1.189-cip61
cip/6.1-rtFixed in 6.1.189-cip61-rt32
cip/5.10Fixed in 5.10.271-cip78
cip/5.10-rtFixed in 5.10.272-cip79-rt35
cip/4.19Affected — no CIP fix yet (latest 4.19.325-cip136)
cip/4.19-rtAffected — no CIP fix yet (latest 4.19.325-cip136-rt50)