Skip to contentSkip to conversation

CVE-2026-31758: usb: usbtmc: Flush anchored URBs in usbtmc_release

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 1

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: usbtmc: Flush anchored URBs in usbtmc_release

When calling usbtmc_release, pending anchored URBs must be flushed or killed to prevent use-after-free errors (e.g. in the HCD giveback path). Call usbtmc_draw_down() to allow anchored URBs to be completed.

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

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

	Issue introduced in 4.19 with commit 4f3c8d6eddc272b386464524235440a418ed2029 and fixed in 5.10.253 with commit 959ef329071136e4335b54822fe2f607659b4569
	Issue introduced in 4.19 with commit 4f3c8d6eddc272b386464524235440a418ed2029 and fixed in 5.15.203 with commit e189d443767f7cd390c52f2e122e1fc41c7562d6
	Issue introduced in 4.19 with commit 4f3c8d6eddc272b386464524235440a418ed2029 and fixed in 6.1.168 with commit 7fa8f61bab3fb75b5deba8a0f3abb74dc5068d9f
	Issue introduced in 4.19 with commit 4f3c8d6eddc272b386464524235440a418ed2029 and fixed in 6.6.134 with commit 95e09b07e50290254b28b8395509473104518f8c
	Issue introduced in 4.19 with commit 4f3c8d6eddc272b386464524235440a418ed2029 and fixed in 6.12.81 with commit d13318dec0c1e0e2ac16f8ecbd522db14cea4bb1
	Issue introduced in 4.19 with commit 4f3c8d6eddc272b386464524235440a418ed2029 and fixed in 6.18.22 with commit 977b632db51d231dec0bc571089a5c2402674139
	Issue introduced in 4.19 with commit 4f3c8d6eddc272b386464524235440a418ed2029 and fixed in 6.19.12 with commit d40198de50232e04c14c6e2092e896766c95ea48
	Issue introduced in 4.19 with commit 4f3c8d6eddc272b386464524235440a418ed2029 and fixed in 7.0 with commit 8a768552f7a8276fb9e01d49773d2094ace7c8f1

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

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/class/usbtmc.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/959ef329071136e4335b54822fe2f607659b4569
	https://git.kernel.org/stable/c/e189d443767f7cd390c52f2e122e1fc41c7562d6
	https://git.kernel.org/stable/c/7fa8f61bab3fb75b5deba8a0f3abb74dc5068d9f
	https://git.kernel.org/stable/c/95e09b07e50290254b28b8395509473104518f8c
	https://git.kernel.org/stable/c/d13318dec0c1e0e2ac16f8ecbd522db14cea4bb1
	https://git.kernel.org/stable/c/977b632db51d231dec0bc571089a5c2402674139
	https://git.kernel.org/stable/c/d40198de50232e04c14c6e2092e896766c95ea48
	https://git.kernel.org/stable/c/8a768552f7a8276fb9e01d49773d2094ace7c8f1