Skip to contentSkip to conversation

CVE-2026-23382: HID: Add HID_CLAIMED_INPUT guards in raw_event callbacks missing them

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Mar 25

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: Add HID_CLAIMED_INPUT guards in raw_event callbacks missing them

In commit 2ff5baa9b527 ("HID: appleir: Fix potential NULL dereference at raw event handle"), we handle the fact that raw event callbacks can happen even for a HID device that has not been "claimed" causing a crash if a broken device were attempted to be connected to the system.

Fix up the remaining in-tree HID drivers that forgot to add this same check to resolve the same issue.

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

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

	Fixed in 6.1.167 with commit ac83b0d91a3f4f0c012ba9c85fb99436cddb1208
	Fixed in 6.6.130 with commit 6e330889e6c8db99f04d4feb861d23de4e8fbb13
	Fixed in 6.12.77 with commit 892dbaf46bb738dacf1fa663eadb3712c85868f0
	Fixed in 6.18.17 with commit 20864e3e41c74cda253a9fa6b6fe093c1461a6a9
	Fixed in 6.19.7 with commit 575122cd6569c4c4aa13c4c9958fea506724c788
	Fixed in 7.0-rc3 with commit ecfa6f34492c493a9a1dc2900f3edeb01c79946b

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-23382

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-cmedia.c
	drivers/hid/hid-creative-sb0540.c
	drivers/hid/hid-zydacron.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/ac83b0d91a3f4f0c012ba9c85fb99436cddb1208
	https://git.kernel.org/stable/c/6e330889e6c8db99f04d4feb861d23de4e8fbb13
	https://git.kernel.org/stable/c/892dbaf46bb738dacf1fa663eadb3712c85868f0
	https://git.kernel.org/stable/c/20864e3e41c74cda253a9fa6b6fe093c1461a6a9
	https://git.kernel.org/stable/c/575122cd6569c4c4aa13c4c9958fea506724c788
	https://git.kernel.org/stable/c/ecfa6f34492c493a9a1dc2900f3edeb01c79946b