Skip to contentSkip to conversation

CVE-2026-43170: usb: dwc3: gadget: Move vbus draw to workqueue context

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 6

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: dwc3: gadget: Move vbus draw to workqueue context

Currently dwc3_gadget_vbus_draw() can be called from atomic context, which in turn invokes power-supply-core APIs. And some these PMIC APIs have operations that may sleep, leading to kernel panic.

Fix this by moving the vbus_draw into a workqueue context.

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

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

	Issue introduced in 5.13 with commit 99288de36020c5a6976df77e53ac449b0f75c97f and fixed in 6.6.128 with commit 76c1123ffccfaba95cf4ecc2a50f95504a522424
	Issue introduced in 5.13 with commit 99288de36020c5a6976df77e53ac449b0f75c97f and fixed in 6.12.75 with commit a7a80c25b65112768eeba58a7af129d3c52a6d90
	Issue introduced in 5.13 with commit 99288de36020c5a6976df77e53ac449b0f75c97f and fixed in 6.18.16 with commit 2333653ef854c2cc124077f71a8526f03bf6e06a
	Issue introduced in 5.13 with commit 99288de36020c5a6976df77e53ac449b0f75c97f and fixed in 6.19.6 with commit 74a231e3d99d310497ab0ccb359539a6063b316a
	Issue introduced in 5.13 with commit 99288de36020c5a6976df77e53ac449b0f75c97f and fixed in 7.0 with commit 54aaa3b387c2f580a99dc86a9cc2eb6dfaf599a7

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

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/dwc3/core.c
drivers/usb/dwc3/core.h
drivers/usb/dwc3/gadget.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/76c1123ffccfaba95cf4ecc2a50f95504a522424
	https://git.kernel.org/stable/c/a7a80c25b65112768eeba58a7af129d3c52a6d90
	https://git.kernel.org/stable/c/2333653ef854c2cc124077f71a8526f03bf6e06a
	https://git.kernel.org/stable/c/74a231e3d99d310497ab0ccb359539a6063b316a
	https://git.kernel.org/stable/c/54aaa3b387c2f580a99dc86a9cc2eb6dfaf599a7