CVE-2026-99491: HID: wacom: Fix Use-After-Free in wacom_intuos_pad
In the Linux kernel, the following vulnerability has been resolved:
HID: wacom: Fix Use-After-Free in wacomintuospad
wacomintuospad() accesses wacom->shared->touchinput locklessly inside the interrupt handler context. If the Touch sibling device is disconnected, wacomremoveshareddata() clears 'touchinput' outside any lock, creating a Time-of-Check to Time-of-Use (TOCTOU) race condition where a preempted reader in interrupt context dereferences the freed pointer, leading to a Use-After-Free.
Resolve this by introducing RCU protection for the touchinput pointer:
- Annotate 'touchinput' in wacomshared struct with rcu - Wrap all lockless readers in wacomwac.c with guard(rcu)() and rcudereference() using a unified wacomreporttouchmute() helper - Update writers in wacomsys.c using rcuassignpointer() - Call synchronizercu() in wacomremoveshareddata() to ensure all active RCU readers have finished before the input device is freed
Also wrap wacomsetsharedvalues() and touch/pen assignments in wacomaddshareddata() inside the wacomudevlistlock to serialize concurrent probe assignments, and verify that 'shared->touch == hdev' before setting touchinput to prevent concurrent sibling probe state desynchronization.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 3.14 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.61 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.2 - Compensating control
Protect `touch_input` with RCU: annotate it `__rcu` in `wacom_shared`, use `rcu_assign_pointer()` for writers in `wacom_sys.c`, and wrap lockless readers in `wacom_wac.c` (including `wacom_set_shared_values()` and touch/pen assignments) with `guard(rcu)()`. Use `rcu_dereference()` in the unified `wacom_report_touch_mute()` helper; call `synchronize_rcu()` in `wacom_remove_shared_data()` before freeing the input device; and serialize `wacom_add_shared_data()` under `wacom_udev_list_lock`, verifying `shared->touch == hdev` before setting `touch_input`.