Skip to contentSkip to conversation

CVE-2026-93117: usb: fix UAF when probe runs concurrent to dyn ID removal

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

lore
Share & tools
lore
#0 lore raw

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

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

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

usb: fix UAF when probe runs concurrent to dyn ID removal

Dynamic IDs are only guaranteed to be valid when usb_dynids_lock is held, as remove_id_store can free the node. Thus, make a copy in usb_probe_interface. Clarify the documentation that the id parameter is only valid during the probe.

USB serial has the same pattern, but it does not need fixing as the IDs cannot be removed via sysfs.

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

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

	Issue introduced in 2.6.33 with commit 0c7a2b72746a96f999fd2728520d03d94879be69 and fixed in 6.1.188 with commit 9b82ddf76827e2a8ff033a8131ecf24f2d6cae26
	Issue introduced in 2.6.33 with commit 0c7a2b72746a96f999fd2728520d03d94879be69 and fixed in 6.6.157 with commit 44904468e58d3dc3a0229782acbeb9677b060541
	Issue introduced in 2.6.33 with commit 0c7a2b72746a96f999fd2728520d03d94879be69 and fixed in 6.12.110 with commit 64320c6e721bdec4c43a789c866c8a099dd0c843
	Issue introduced in 2.6.33 with commit 0c7a2b72746a96f999fd2728520d03d94879be69 and fixed in 6.18.52 with commit 7e795801295c84a6bbc10a3e7a4c99c50bfe45ac
	Issue introduced in 2.6.33 with commit 0c7a2b72746a96f999fd2728520d03d94879be69 and fixed in 7.2.6 with commit e6a9c6b79b70046afdf5a1dbd03b1104536f30c0
	Issue introduced in 2.6.33 with commit 0c7a2b72746a96f999fd2728520d03d94879be69 and fixed in 7.3-rc1 with commit ef8154d8b52d60338c1fd8d793cd8e891c604c14

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

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/usb/core/driver.c
include/linux/usb.h

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/9b82ddf76827e2a8ff033a8131ecf24f2d6cae26
	https://git.kernel.org/stable/c/44904468e58d3dc3a0229782acbeb9677b060541
	https://git.kernel.org/stable/c/64320c6e721bdec4c43a789c866c8a099dd0c843
	https://git.kernel.org/stable/c/7e795801295c84a6bbc10a3e7a4c99c50bfe45ac
	https://git.kernel.org/stable/c/e6a9c6b79b70046afdf5a1dbd03b1104536f30c0
	https://git.kernel.org/stable/c/ef8154d8b52d60338c1fd8d793cd8e891c604c14