Skip to contentSkip to conversation

CVE-2026-99330: HID: mcp2200: validate READ_ALL response length

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 19

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

HID: mcp2200: validate READ_ALL response length

The HID core invokes raw_event callbacks before validating the report length. mcp2200_raw_event() casts a READ_ALL response to struct mcp_read_all_resp and reads fields through offset ten without checking that the response contains the structure.

A one-byte READ_ALL response reproduced the issue under KASAN:

  BUG: KASAN: slab-out-of-bounds in mcp2200_raw_event+0x24b/0x3a0
  Read of size 1 by task hidtrigger/89
  Call Trace:
   mcp2200_raw_event+0x24b/0x3a0
   kasan_report+0x139/0x170

Reject an incomplete READ_ALL response with a protocol error before reading its fields. The common completion path then wakes the command waiter with the error instead of leaving it to time out.

Commit 47669bec44fe ("HID: asus: refactor the two workqueues and init sequence") added the same kind of raw_event length validation to hid-asus.

The Linux kernel CVE team has assigned CVE-2026-99330 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.8 with commit 740329d7120f8608ead64b0f3417c02ca1d6b32f and fixed in 6.12.117 with commit 0210fd34232c8450fcaa5a68ff4360f275c755f2
	Issue introduced in 6.8 with commit 740329d7120f8608ead64b0f3417c02ca1d6b32f and fixed in 6.18.61 with commit 47f50fbfd664ceede78f502950eb5638b537ed74
	Issue introduced in 6.8 with commit 740329d7120f8608ead64b0f3417c02ca1d6b32f and fixed in 7.3.2 with commit 6ee339f14d81da30909075f2dc88926dd317591a
	Issue introduced in 6.8 with commit 740329d7120f8608ead64b0f3417c02ca1d6b32f and fixed in 7.4-rc1 with commit 26ce0e6bf0b27fc6a2f490f38555dfd0a27c9605
	Issue introduced in 6.6.57 with commit b289b83409a6edd262840a6bac4d990e1ef87971

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-99330

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:

	drivers/hid/hid-mcp2200.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/0210fd34232c8450fcaa5a68ff4360f275c755f2
	https://git.kernel.org/stable/c/47f50fbfd664ceede78f502950eb5638b537ed74
	https://git.kernel.org/stable/c/6ee339f14d81da30909075f2dc88926dd317591a
	https://git.kernel.org/stable/c/26ce0e6bf0b27fc6a2f490f38555dfd0a27c9605