KernelScan.io

HIGH Public PoC Introduced in 4.16

wacom PenSerial OOB

CVE-2026-98499

CVSS 8.1 / 10.0 NVD

CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

KernelScan AI4.6MEDIUM

01

In the Linux kernel, the following vulnerability has been resolved: HID: wacom: fix OOB read in wacom_wac_pen_serial_enforce() The 'wacom_wac_pen_serial_enforce()' function may calculate and pass an invalid offset to hid_field_extract(), resulting in memory reads at incorrect addresses -- possibly beyond the end of the report. If a field in the HID descriptor lists more usages than its Report Count actually reserves space for, the function's inner 'j' will walk past the end of the field: for (i = 0; i < report->maxfield; i++) { for (j = 0; j < report->field[i]->maxusage; j++) { ... value = hid_field_extract(hdev, raw_data + 1, offset + j * size, size); A descriptor listing 12288 usages against Report Count 1 has the loop extract the usage at index 12287 from bit offset 98296 -- about 12 KB past a 2-byte received report. The value is stored in wacom_wac->serial[0] and can reach userspace as an MSC_SERIAL event, making this an information disclosure. Clamp the loop to field->report_count, the number of value slots the report holds. Value slots past the last declared usage are still scanned; they reuse that usage (HID 1.11, 6.2.2.8). Verified on v6.12.105 with a UHID reproducer: a 2-byte report from such a descriptor trips KASAN before the patch and not after it.

02

Engine v0.9.0

Risk summary

A malicious USB HID device presenting a crafted Wacom-like descriptor with more declared usages than report count can cause the kernel to read up to ~12 KB past the end of the report buffer. The leaked kernel memory is exposed to userspace via MSC_SERIAL events, enabling information disclosure. An attacker needs physical access to a USB port or local root privileges via UHID to exploit this.

Affecteddrivers/hid/wacom_sys.c (hid/wacom)

Vulnerability analysis

The Wacom HID driver's pen serial enforcement function iterates over all declared usages (maxusage) in a HID report field when extracting serial numbers, but the actual report buffer only contains space for the declared report_count value slots. When a malicious device presents a descriptor where maxusage far exceeds report_count (e.g., 12288 usages vs. report count 1), the loop calculates offsets that reach far beyond the received report data, reading adjacent kernel memory. The extracted value is stored in the driver's serial array and delivered to userspace as an MSC_SERIAL input event, creating an information disclosure. The fix clamps the iteration to field->report_count, which correctly matches the number of value slots actually present in the report per the HID 1.11 specification. This vulnerability is reachable by an attacker with physical access to a USB port who can plug in a malicious HID device, or by a local privileged user (CAP_SYS_ADMIN) using the UHID interface to emulate a malicious device.

Exploit availability

KernelScan found public exploit code for this CVE. Open it in the CVE browser to see what we found, where, and how strong the evidence is — that needs a free account with a confirmed email address.

03

BranchIntroducedFixed inPatch commit
5.104.165.10.2719aa62f967b6a
5.154.165.15.22226471d954bbf
6.14.166.1.189456afe4707e2
6.124.166.12.112eaa7d29341ef
6.184.166.18.55c3129e6f26e1
6.64.166.6.15865e7c4b5366b
7.24.167.2.94b09b7c84b86
mainline4.167.39aa237cf6649
cip/4.194.164.19.325-cip1378ec4eb8a6f5c
cip/4.19-rt4.164.19.325-cip137-rt518ec4eb8a6f5c
cip/5.104.165.10.271-cip789aa62f967b6a
cip/5.10-rt4.165.10.272-cip79-rt359aa62f967b6a
cip/6.14.166.1.189-cip61456afe4707e2
cip/6.1-rt4.166.1.189-cip61-rt32456afe4707e2
cip/6.124.166.12.112-cip33eaa7d29341ef

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.112-cip33
cip/6.1Fixed in 6.1.189-cip61
cip/6.1-rtFixed in 6.1.189-cip61-rt32
cip/5.10Fixed in 5.10.271-cip78
cip/5.10-rtFixed in 5.10.272-cip79-rt35
cip/4.19Fixed in 4.19.325-cip137
cip/4.19-rtFixed in 4.19.325-cip137-rt51