Description
In the Linux kernel, the following vulnerability has been resolved:

HID: wacom: fix slab-out-of-bounds write in wacom_wac_queue_insert

wacom_wac_queue_insert() calls kfifo_skip() in a loop when the kfifo
doesn't have enough space for the incoming report. If the kfifo is
empty, kfifo_skip() reads stale data left in the kmalloc'd buffer
via __kfifo_peek_n() and interprets it as a record length, advancing
fifo->out by that garbage value. This corrupts the internal kfifo
state, causing kfifo_unused() to return a value much larger than the
actual buffer size, which bypasses __kfifo_in_r()'s guard:

if (len + recsize > kfifo_unused(fifo))
return 0;

kfifo_copy_in() then performs an out-of-bounds memcpy, writing up to
3842 bytes past the 256-byte buffer.

Add a !kfifo_is_empty() condition to the while loop so kfifo_skip()
is never called on an empty fifo, and check the return value of
kfifo_in() to reject reports that are too large for the fifo.
Published: 2026-07-25
Score: 8.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Linux kernel’s Wacom HID driver contains a flaw that allows the driver to perform an out‑of‑bounds write during packet processing. When the kfifo buffer is empty, a loop incorrectly calls kfifo_skip, which interprets stale memory as a record length and advances the FIFO pointer beyond the kmalloc‑allocated 256‑byte buffer. This corrupts the internal FIFO state, bypassing the length check and enabling a memcpy that writes up to 3,842 bytes past the buffer. The resulting memory corruption can overwrite arbitrary kernel data, potentially leading to denial‑of‑service or privilege escalation for a local user with access to a Wacom device.

Affected Systems

All installations of the Linux kernel that include the default Wacom HID driver and have not applied the patch commits (c6b3014ec0e9a390ca563030b2d7689921f0daef5 and 57bdd10ad50d68341f500a7b330f0d8949e510ec) are potentially affected. The advisory does not list specific kernel releases, so any kernel that still uses the vulnerable driver code is at risk.

Risk and Exploitability

The CVSS score of 8.8 indicates a high severity, but the EPSS score of less than 1% and the lack of a CISA KEV listing suggest a low probability of active exploitation. The vulnerability requires local access to a Wacom HID device and does not involve network attack vectors. A successful exploit can corrupt kernel memory, leading to crashes or privilege gain, but patching removes the risk entirely.

Generated by OpenCVE AI on August 2, 2026 at 13:08 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the kernel update that includes commit 57bdd10ad50d68341f500a7b330f0d8949e510ec.
  • If a patch is temporarily unavailable, disable the Wacom HID driver by creating a udev rule that prevents the module from loading for the device or by masking the module with systemd.
  • Reboot the system to ensure the patched driver is loaded and that the block rule is enforced.

Generated by OpenCVE AI on August 2, 2026 at 13:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 01 Aug 2026 02:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-122

Wed, 29 Jul 2026 12:15:00 +0000

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

None

threat_severity

Important


Mon, 27 Jul 2026 06:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-122

Mon, 27 Jul 2026 05:15: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'}


Sat, 25 Jul 2026 09:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: HID: wacom: fix slab-out-of-bounds write in wacom_wac_queue_insert wacom_wac_queue_insert() calls kfifo_skip() in a loop when the kfifo doesn't have enough space for the incoming report. If the kfifo is empty, kfifo_skip() reads stale data left in the kmalloc'd buffer via __kfifo_peek_n() and interprets it as a record length, advancing fifo->out by that garbage value. This corrupts the internal kfifo state, causing kfifo_unused() to return a value much larger than the actual buffer size, which bypasses __kfifo_in_r()'s guard: if (len + recsize > kfifo_unused(fifo)) return 0; kfifo_copy_in() then performs an out-of-bounds memcpy, writing up to 3842 bytes past the 256-byte buffer. Add a !kfifo_is_empty() condition to the while loop so kfifo_skip() is never called on an empty fifo, and check the return value of kfifo_in() to reject reports that are too large for the fifo.
Title HID: wacom: fix slab-out-of-bounds write in wacom_wac_queue_insert
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:41:07.580Z

Reserved: 2026-07-19T15:36:31.783Z

Link: CVE-2026-64366

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-07-25T10:17:19.403

Modified: 2026-08-11T15:01:50.637

Link: CVE-2026-64366

cve-icon Redhat

Severity : Important

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

Links: CVE-2026-64366 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-02T13:15:03Z

Weaknesses