Skip to contentSkip to conversation

CVE-2026-90031: usb-storage: ene_ub6250: fix race between scan work and probe

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 16

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-storage: ene_ub6250: fix race between scan work and probe

ene_ub6250_probe() calls usb_stor_probe2(), which starts the usb-storage infrastructure and schedules the delayed scan work. The driver then calls ene_get_card_type(), which sends an ENE command through ene_send_scsi_cmd() and the usb-storage bulk transfer helpers.

Both the delayed scan work, through usb_stor_Bulk_max_lun(), and ene_get_card_type() use us->current_urb. The scan work serializes this access with us->dev_mutex, but the ENE card-type probe does not. If the scan work runs while ene_get_card_type() is still using us->current_urb, usb_submit_urb() warns that the URB is already active.

Serialize ene_get_card_type() with us->dev_mutex, matching the locking used by the scan path.

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

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

	Fixed in 5.10.270 with commit 9cd335f4f41e84d1ab88d80150ffee8dee9650d7
	Fixed in 5.15.221 with commit 8936d95dd04d34db96d4d1e3899eee52605bbedc
	Fixed in 6.1.188 with commit 9c261a83131e241d67cb73ab578d0265bc19cfb5
	Fixed in 6.6.157 with commit 9481bc04a8c351ed883a7f0e10939bbe9120ead7
	Fixed in 6.12.110 with commit 5082546702c32a2700894d2c0ace784e038ef6a3
	Fixed in 6.18.51 with commit 1c67f2ba9c5f7c5ab3670671c0d51c6504bcaf74
	Fixed in 7.2.5 with commit 996c319b8bd5ada1f62daae0d331d0b23e0f2117
	Fixed in 7.3-rc2 with commit 445fc368c6bc73eff0aeb3818cf5f355facfbb16

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

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/storage/ene_ub6250.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/9cd335f4f41e84d1ab88d80150ffee8dee9650d7
	https://git.kernel.org/stable/c/8936d95dd04d34db96d4d1e3899eee52605bbedc
	https://git.kernel.org/stable/c/9c261a83131e241d67cb73ab578d0265bc19cfb5
	https://git.kernel.org/stable/c/9481bc04a8c351ed883a7f0e10939bbe9120ead7
	https://git.kernel.org/stable/c/5082546702c32a2700894d2c0ace784e038ef6a3
	https://git.kernel.org/stable/c/1c67f2ba9c5f7c5ab3670671c0d51c6504bcaf74
	https://git.kernel.org/stable/c/996c319b8bd5ada1f62daae0d331d0b23e0f2117
	https://git.kernel.org/stable/c/445fc368c6bc73eff0aeb3818cf5f355facfbb16