HID: wacom: Fix Use-After-Free in wacom_intuos_pad

State
Published
Severity
Not Scored
Published
Nov 19, 2026
Updated
Nov 23, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

Description

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

HID: wacom: Fix Use-After-Free in wacom_intuos_pad

wacom_intuos_pad() accesses wacom->shared->touch_input locklessly inside the interrupt handler context. If the Touch sibling device is disconnected, wacom_remove_shared_data() clears 'touch_input' 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 touch_input pointer:

- Annotate 'touch_input' in wacom_shared struct with __rcu - Wrap all lockless readers in wacom_wac.c with guard(rcu)() and rcu_dereference() using a unified wacom_report_touch_mute() helper - Update writers in wacom_sys.c using rcu_assign_pointer() - Call synchronize_rcu() in wacom_remove_shared_data() to ensure all active RCU readers have finished before the input device is freed

Also wrap wacom_set_shared_values() and touch/pen assignments in wacom_add_shared_data() inside the wacom_udev_list_lock to serialize concurrent probe assignments, and verify that 'shared->touch == hdev' before setting touch_input to prevent concurrent sibling probe state desynchronization.

ProductVersions
Linux Linux961794a00eab03f4344b7d5e825e8e789e55da87 to before ddf09302779e6add98c1f2fb4b01ae8e75964cda Affected961794a00eab03f4344b7d5e825e8e789e55da87 to before d1dabfbcbc6993baec60925bf4d02d0cd597e479 Affected961794a00eab03f4344b7d5e825e8e789e55da87 to before e106375d2e34c338a05e1b0a99c281b038fea996 Affected961794a00eab03f4344b7d5e825e8e789e55da87 to before d7fba097f368001ea094ce8f3470708a901f31e0 Affected961794a00eab03f4344b7d5e825e8e789e55da87 to before 1178927ffa54a1f9e52fa4e5974862023237fce6 Affected961794a00eab03f4344b7d5e825e8e789e55da87 to before ef74a8a685e272dbe0d21844c6e70841ccc9b1bc Affected961794a00eab03f4344b7d5e825e8e789e55da87 to before 4e1bf2f5fe28cb8719aee7ca9d99ea529224ed1f Affected961794a00eab03f4344b7d5e825e8e789e55da87 to before ef32877368a7013c060ef6bd03a30b6da2fe0c41 Affected37a5b5f89fe4e8367fb123b1892d79f0234a2903 Affected3.13.8 to before 3.14 Affected
Linux Linux3.14 Affectedbefore 3.14 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.117 through 6.12.* Not Affected6.18.61 through 6.18.* Not Affected7.3.2 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.