HID: wacom: Fix Use-After-Free in wacom_bamboo_pad
- State
- Published
- Severity
- Not Scored
- Published
- Nov 19, 2026
- Updated
- Nov 23, 2026
- Reserved
- Sep 25, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
HID: wacom: Fix Use-After-Free in wacom_bamboo_pad
wacom_bamboo_pad_pen_event() accesses wacom->shared->pen locklessly relative to wacom_remove_shared_data() which nullifies it. This can lead to a Use-After-Free if the sibling device is removed while events are being processed.
Resolve this by introducing RCU protection for pen and touch pointers:
- Annotate 'pen' and 'touch' in wacom_shared struct with __rcu. - Wrap lockless readers in wacom_bamboo_pad_pen_event() with rcu_read_lock() and rcu_dereference(). - Update writers in wacom_sys.c using rcu_assign_pointer(). - Use rcu_dereference_protected for comparisons under wacom_udev_list_lock. - Also use rcu_access_pointer in wacom_sibling_pending() and wacom_mode_change_work() to avoid warnings (while lockless access in the latter remains a pre-existing issue).
| Product | Versions |
|---|---|
| Linux Linux | 8c97a765467c5d58682e85f103899ec2355fc393 to before b5c7d12527ba739721e0902b64ff05c568041c24 Affected8c97a765467c5d58682e85f103899ec2355fc393 to before 48ecba8b326732cb24f698bd85285ac46471013c Affected8c97a765467c5d58682e85f103899ec2355fc393 to before 21a1e897b98653f0d2d5dc41cadbf3e6a588e1b9 Affected8c97a765467c5d58682e85f103899ec2355fc393 to before b893d6b0a8dd71c5f0644f82c15dae8ed732a050 Affected8c97a765467c5d58682e85f103899ec2355fc393 to before 6704d7e9ca8aa1ec66d97fe1b2bc89e07ad710c7 Affected8c97a765467c5d58682e85f103899ec2355fc393 to before ac81120321a90b052cc50ecc9e38753c9471c75e Affected8c97a765467c5d58682e85f103899ec2355fc393 to before 8e56f274d61a21e7aa0bf4000f839f34dd721fe5 Affected8c97a765467c5d58682e85f103899ec2355fc393 to before 3a523ecf9ac3fdd33f5eb31c43937ee44135395b Affected |
| Linux Linux | 4.1 Affectedbefore 4.1 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 |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
- https://git.kernel.org/stable/c/b5c7d12527ba739721e0902b64ff05c568041c24
- https://git.kernel.org/stable/c/48ecba8b326732cb24f698bd85285ac46471013c
- https://git.kernel.org/stable/c/21a1e897b98653f0d2d5dc41cadbf3e6a588e1b9
- https://git.kernel.org/stable/c/b893d6b0a8dd71c5f0644f82c15dae8ed732a050
- https://git.kernel.org/stable/c/6704d7e9ca8aa1ec66d97fe1b2bc89e07ad710c7
- https://git.kernel.org/stable/c/ac81120321a90b052cc50ecc9e38753c9471c75e
- https://git.kernel.org/stable/c/8e56f274d61a21e7aa0bf4000f839f34dd721fe5
- https://git.kernel.org/stable/c/3a523ecf9ac3fdd33f5eb31c43937ee44135395b
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.