All reports
Medium

kernel: HID: wacom: Fix OOB write in wacom_hid_set_device_mode()

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

Exploitation

CVE-2026-63916

Probability of exploitation in the next 30 days: 0.36%

FIRST EPSS · 2026-11-19

Description

In the Linux kernel, the following vulnerability has been resolved: HID: wacom: Fix OOB write in wacom_hid_set_device_mode() wacom_hid_set_device_mode() currently assumes that the HID_DG_INPUTMODE usage is always located in the first field (field[0]) of the feature report. However, a device can specify HID_DG_INPUTMODE in a different field. If HID_DG_INPUTMODE is in a field other than the first one and the first field has a report_count smaller than the usage_index of HID_DG_INPUTMODE, this leads to an out-of-bounds write to r->field[0]->value. Fix this by storing the field index of HID_DG_INPUTMODE in 'struct hid_data' during feature mapping. In wacom_hid_set_device_mode(), use this stored field index to access the correct field and add bounds checks to ensure both the field index and the value index are within valid ranges before writing.

A flaw was found in the Linux kernel's Human Interface Device (HID) wacom driver. The wacom_hid_set_device_mode() function incorrectly handles the location of input mode data within a device's report. This can lead to an out-of-bounds write, where the system attempts to write data beyond the allocated memory buffer. Such memory corruption could potentially allow a local attacker to cause system instability or escalate privileges.