Skip to contentSkip to conversation

CVE-2026-53037: HID: usbhid: fix deadlock in hid_post_reset()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jun 24

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: usbhid: fix deadlock in hid_post_reset()

You can build a USB device that includes a HID component and a storage or UAS component. The components can be reset only together. That means that hid_pre_reset() and hid_post_reset() are in the block IO error handling. Hence no memory allocation used in them may do block IO because the IO can deadlock on the mutex held while resetting a device and calling the interface drivers.
Use GFP_NOIO for all allocations in them.

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

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

	Issue introduced in 3.5 with commit dc3c78e43469063c5bf4b744214508f94c4129f9 and fixed in 5.10.258 with commit 56d318ef8766f0deb08517fd8f3007256ea7997d
	Issue introduced in 3.5 with commit dc3c78e43469063c5bf4b744214508f94c4129f9 and fixed in 5.15.209 with commit 90550af0aad5e75110073c501e4fb42fca20ff80
	Issue introduced in 3.5 with commit dc3c78e43469063c5bf4b744214508f94c4129f9 and fixed in 6.1.175 with commit eeceb6f4dd42065fdda3a526a93d08b8fb90fb69
	Issue introduced in 3.5 with commit dc3c78e43469063c5bf4b744214508f94c4129f9 and fixed in 6.6.141 with commit ad4505d2ab3aaac6498f17649608e70e80034bf2
	Issue introduced in 3.5 with commit dc3c78e43469063c5bf4b744214508f94c4129f9 and fixed in 6.12.91 with commit 4e900465296ce9fb12ed47dc77389b8dde95bfe0
	Issue introduced in 3.5 with commit dc3c78e43469063c5bf4b744214508f94c4129f9 and fixed in 6.18.33 with commit c7abd0e6c87441e99c759d40eb6fe589634e3041
	Issue introduced in 3.5 with commit dc3c78e43469063c5bf4b744214508f94c4129f9 and fixed in 7.0.10 with commit b3d16611d7cd78e9d5c6baa19b61b7caf9f1ab5e
	Issue introduced in 3.5 with commit dc3c78e43469063c5bf4b744214508f94c4129f9 and fixed in 7.1 with commit 8df2c1b47ee3cd50fd454f75c7a7e2ae8a6adf72

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

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/usbhid/hid-core.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/56d318ef8766f0deb08517fd8f3007256ea7997d
	https://git.kernel.org/stable/c/90550af0aad5e75110073c501e4fb42fca20ff80
	https://git.kernel.org/stable/c/eeceb6f4dd42065fdda3a526a93d08b8fb90fb69
	https://git.kernel.org/stable/c/ad4505d2ab3aaac6498f17649608e70e80034bf2
	https://git.kernel.org/stable/c/4e900465296ce9fb12ed47dc77389b8dde95bfe0
	https://git.kernel.org/stable/c/c7abd0e6c87441e99c759d40eb6fe589634e3041
	https://git.kernel.org/stable/c/b3d16611d7cd78e9d5c6baa19b61b7caf9f1ab5e
	https://git.kernel.org/stable/c/8df2c1b47ee3cd50fd454f75c7a7e2ae8a6adf72