Skip to main content
Vulnerability Database/CVE-2026-98501

CVE-2026-98501: Linux Kernel HID Alps Use-After-Free

CVE-2026-98501 is a use-after-free vulnerability in the Linux kernel HID Alps driver that can be triggered during input device registration failure. This post covers technical details, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-98501 Overview

CVE-2026-98501 is a use-after-free vulnerability in the Linux kernel's HID driver for ALPS input devices. The flaw resides in alps_input_configured(), which stores a pointer to data->input2 before calling input_register_device(). When registration fails, input_free_device() releases the memory, but the stale pointer remains in driver data. Because hid_hw_open() is invoked before input2 allocation, USB Request Blocks (URBs) are already active and can trigger raw_event processing during the failure window. A U1_SP_ABSOLUTE_REPORT_ID report arriving at this moment causes u1_raw_event() to dereference freed memory.

Critical Impact

Successful exploitation can corrupt kernel memory, leading to denial of service or potential local privilege escalation on systems with vulnerable ALPS HID devices attached.

Affected Products

  • Linux kernel (upstream) — HID ALPS driver (drivers/hid/hid-alps.c)
  • Linux stable kernel branches referenced by the backport commits
  • Distributions shipping affected kernel versions prior to applying the fix

Discovery Timeline

  • 2026-10-18 - CVE-2026-98501 published to NVD
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-98501

Vulnerability Analysis

The defect is a classic use-after-free [CWE-416] in the Linux kernel HID subsystem. The alps_input_configured() function assigns data->input2 to a newly allocated input device prior to registration. If input_register_device() fails, the kernel invokes input_free_device() to release the allocation, but the driver's private data structure retains the dangling pointer.

The exposure window is created by ordering: hid_hw_open() runs earlier in the configuration path, meaning URB callbacks are already servicing hardware input. A device transmitting a U1_SP_ABSOLUTE_REPORT_ID HID report during the failure window reaches u1_raw_event(), which reads data->input2 and dispatches input events through the freed structure.

Root Cause

The root cause is a lifecycle mismatch between pointer publication and object validity. The driver publishes data->input2 into shared state before confirming successful registration, violating the invariant that pointers in driver data must reference live objects. The absence of a NULL check in u1_raw_event() compounds the issue by trusting the pointer unconditionally.

Attack Vector

Triggering the condition requires an ALPS HID device whose input_register_device() call fails while hardware input is actively generating reports. An attacker with physical access, or control over a crafted or malicious USB device, could present HID descriptors and timing designed to race the registration failure. The patch resolves the race by storing input2 into driver data only after successful registration and adding a NULL guard in the raw_event path. Technical details are available in the upstream fix at Kernel Git Commit 2e55d76.

Detection Methods for CVE-2026-98501

Indicators of Compromise

  • Kernel oops or panic traces referencing u1_raw_event or hid-alps with KASAN: use-after-free reports
  • Unexpected system crashes correlated with USB HID device insertion or ALPS touchpad activity
  • Dmesg entries showing input_register_device() failures followed by HID report processing

Detection Strategies

  • Enable Kernel Address Sanitizer (KASAN) on test or canary kernels to catch use-after-free dereferences in the HID path
  • Audit installed kernel versions across the fleet and compare against the fixed commits listed in the upstream references
  • Monitor crash dump collectors for stack traces including hid_alps, u1_raw_event, or alps_input_configured

Monitoring Recommendations

  • Track USB device insertion events and correlate with kernel ring buffer anomalies
  • Centralize kernel logs and alert on registration-failure patterns from the HID subsystem
  • Review package management telemetry to confirm patched kernel packages have been deployed and systems rebooted

How to Mitigate CVE-2026-98501

Immediate Actions Required

  • Apply the upstream kernel patch or vendor-provided kernel update that incorporates the fix
  • Reboot affected systems after installing the patched kernel to activate the corrected driver
  • Inventory endpoints with ALPS touchpads or devices binding to the hid-alps driver for prioritized remediation

Patch Information

The fix stores input2 into drvdata only after input_register_device() succeeds and adds a NULL guard inside u1_raw_event(). Backports are available across multiple stable branches: Kernel Git Commit 2e55d76, Kernel Git Commit 443f6b93, Kernel Git Commit 47e5e177, Kernel Git Commit 5a8ad631, Kernel Git Commit 64f824dc, Kernel Git Commit 925da1d2, Kernel Git Commit d3aba344, and Kernel Git Commit ef8ca5bb.

Workarounds

  • Blacklist the hid-alps kernel module on systems that do not require ALPS touchpad support until a patched kernel is installed
  • Restrict physical access and USB port usage on sensitive systems to reduce exposure to malicious HID devices
  • Enforce USB device allow-lists through endpoint policy to prevent untrusted HID devices from binding to the driver

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.