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.
Published: 2026-07-19
Score: 8.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability is an out‑of‑bounds write in the Linux kernel’s Wacom HID driver, specifically in wacom_hid_set_device_mode(). The code assumes that the HID_DG_INPUTMODE usage always appears in the first field of a feature report, but devices can place this usage elsewhere. When the first field’s report_count is smaller than the usage index of HID_DG_INPUTMODE, the driver writes beyond the end of the r->field[0]->value buffer. This overflow corrupts kernel memory and is a classic CWE‑787 (Out‑of‑Bounds Write).

Affected Systems

All Linux kernel builds that include the unpatched wacom_hid.c driver are affected. Because no specific version ranges are supplied by the CNA, any kernel prior to the inclusion of the patch that stores the correct field index and performs bounds checks is potentially vulnerable. The issue resides solely within the kernel module that handles Human Interface Devices for Wacom products.

Risk and Exploitability

The CVSS score of 8.8 classifies this flaw as high severity, while the EPSS score of less than 1% indicates a very low probability of public exploitation at this time. The vulnerability is not in the CISA KEV catalog. Based on the description, it is inferred that the attacker must supply a malicious USB Wacom device that places HID_DG_INPUTMODE in a non‑first field. The likely attack vector is physical USB insertion; once the out‑of‑bounds write occurs, the attacker can corrupt kernel memory, potentially executing arbitrary code in kernel mode and elevating privileges. In environments where USB devices are physically accessible, the risk remains tangible.

Generated by OpenCVE AI on August 4, 2026 at 06:45 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the commit fixing the out‑of‑bounds write, which stores the correct field index during feature mapping and adds bounds checks before writing.
  • If upgrading is not immediately possible, disable the wacom HID driver on systems that do not require Wacom devices, thereby preventing the vulnerable code from loading.
  • Apply udev rules or a device whitelist that only allows known Wacom model and vendor IDs, limiting the chance that a malicious device can interact with the driver.

Generated by OpenCVE AI on August 4, 2026 at 06:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Ubuntu USN Ubuntu USN USN-8593-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8603-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8618-1 Linux kernel vulnerabilities
History

Sun, 26 Jul 2026 08:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119

Wed, 22 Jul 2026 19:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119

Wed, 22 Jul 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-787
References
Metrics threat_severity

None

threat_severity

Moderate


Mon, 20 Jul 2026 14:45:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}


Sun, 19 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
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.
Title HID: wacom: Fix OOB write in wacom_hid_set_device_mode()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-05T12:37:10.495Z

Reserved: 2026-07-19T07:54:57.020Z

Link: CVE-2026-63916

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-19T00:00:00Z

Links: CVE-2026-63916 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-04T06:45:03Z

Weaknesses