HIGH Public PoC Introduced in 4.16
wacom PenSerial OOB
CVE-2026-98499
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
KernelScan AI4.6MEDIUM
01Description
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.
02KernelScan AI Analysis
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.
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.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 5.10 | 4.16 | 5.10.271 | 9aa62f967b6a |
| 5.15 | 4.16 | 5.15.222 | 26471d954bbf |
| 6.1 | 4.16 | 6.1.189 | 456afe4707e2 |
| 6.12 | 4.16 | 6.12.112 | eaa7d29341ef |
| 6.18 | 4.16 | 6.18.55 | c3129e6f26e1 |
| 6.6 | 4.16 | 6.6.158 | 65e7c4b5366b |
| 7.2 | 4.16 | 7.2.9 | 4b09b7c84b86 |
| mainline | 4.16 | 7.3 | 9aa237cf6649 |
| cip/4.19 | 4.16 | 4.19.325-cip137 | 8ec4eb8a6f5c |
| cip/4.19-rt | 4.16 | 4.19.325-cip137-rt51 | 8ec4eb8a6f5c |
| cip/5.10 | 4.16 | 5.10.271-cip78 | 9aa62f967b6a |
| cip/5.10-rt | 4.16 | 5.10.272-cip79-rt35 | 9aa62f967b6a |
| cip/6.1 | 4.16 | 6.1.189-cip61 | 456afe4707e2 |
| cip/6.1-rt | 4.16 | 6.1.189-cip61-rt32 | 456afe4707e2 |
| cip/6.12 | 4.16 | 6.12.112-cip33 | eaa7d29341ef |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.112-cip33 |
| cip/6.1 | Fixed in 6.1.189-cip61 |
| cip/6.1-rt | Fixed in 6.1.189-cip61-rt32 |
| cip/5.10 | Fixed in 5.10.271-cip78 |
| cip/5.10-rt | Fixed in 5.10.272-cip79-rt35 |
| cip/4.19 | Fixed in 4.19.325-cip137 |
| cip/4.19-rt | Fixed in 4.19.325-cip137-rt51 |