CVE-2026-99490: HID: wacom: Fix Use-After-Free in wacom_bamboo_pad
In the Linux kernel, the following vulnerability has been resolved:
HID: wacom: Fix Use-After-Free in wacombamboopad
wacombamboopadpenevent() accesses wacom->shared->pen locklessly relative to wacomremoveshareddata() 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 wacomshared struct with rcu. - Wrap lockless readers in wacombamboopadpenevent() with rcureadlock() and rcudereference(). - Update writers in wacomsys.c using rcuassignpointer(). - Use rcudereferenceprotected for comparisons under wacomudevlistlock. - Also use rcuaccesspointer in wacomsiblingpending() and wacommodechangework() to avoid warnings (while lockless access in the latter remains a pre-existing issue).
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- 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