CVE-2026-63916

HID: wacom: Fix OOB write in wacom_hid_set_device_mode()

State
Published
Severity
8.8 High
Published
Jul 19, 2026
Updated
Oct 19, 2026
Reserved
Jul 19, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.18.8 HighCVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

Affected Products

ProductVersions
LinuxLinux
  • 5ae6e89f7409cb5d218bb728326eba9c650d9700 to before 2add311d99646c9d235b2c44f9c169ba30f5db3aAffected
  • 5ae6e89f7409cb5d218bb728326eba9c650d9700 to before 83bd8a5756a3c4a413ed8f6253f9eb2821e1ccafAffected
  • 5ae6e89f7409cb5d218bb728326eba9c650d9700 to before 5716a293fb19d382ca2336e08fd28a619a5f3c25Affected
  • 5ae6e89f7409cb5d218bb728326eba9c650d9700 to before ed598de9f61582902406d352d99f2073d8e00298Affected
  • 5ae6e89f7409cb5d218bb728326eba9c650d9700 to before 43e7c02d6090a82fd60d63491f6871aec906345eAffected
  • 5ae6e89f7409cb5d218bb728326eba9c650d9700 to before b8338111e14183972359009c12d0dbd81d2e1e16Affected
  • 5ae6e89f7409cb5d218bb728326eba9c650d9700 to before 5db3fca0cec7b33bc5379411d0a60d792c9f9bc0Affected
  • 5ae6e89f7409cb5d218bb728326eba9c650d9700 to before c0a8899e02ddebd51e2589835182c239c2e224aeAffected
LinuxLinux
  • 3.18Affected
  • before 3.18Not affected
  • 5.10.259 through 5.10.*Not affected
  • 5.15.210 through 5.15.*Not affected
  • 6.1.176 through 6.1.*Not affected
  • 6.6.143 through 6.6.*Not affected
  • 6.12.93 through 6.12.*Not affected
  • 6.18.35 through 6.18.*Not affected
  • 7.0.12 through 7.0.*Not affected
  • 7.1 and laterNot affected

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.