Affected versions
- Affected versions
- Unknown
- Fixed version
- Not reported
- Affected versions
- Unknown
- Fixed version
- Not reported
- Affected versions
- Unknown
- Fixed version
- Not reported
- Affected versions
- Unknown
- Fixed version
- Not reported
- Affected versions
- Unknown
- Fixed version
- Not reported
- Affected versions
- Unknown
- Fixed version
- Not reported
- Affected versions
- Unknown
- Fixed version
- Not reported
- Affected versions
- Unknown
- Fixed version
- Not reported
- Affected versions
- Unknown
- Fixed version
- Not reported
- Affected versions
- Unknown
- Fixed version
- Not reported
- Affected versions
- Unknown
- Fixed version
- Not reported
Exploitation
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).
A flaw was found in the Linux kernel's Wacom HID (Human Interface Device) driver. This vulnerability may allow a local attacker to cause a Denial of Service (DoS) or potentially escalate privileges. The issue occurs due to a race condition where shared device data is accessed without proper synchronization when disconnecting a Wacom Bamboo Pad while pen input events are actively being processed. This flaw results in a use-after-free condition, allowing an attacker to corrupt kernel memory and crash the system.

