Skip to contentSkip to conversation

CVE-2026-90029: usb: storage: realtek_cr: fix use-after-free on disconnect

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: realtek_cr: fix use-after-free on disconnect

realtek_cr_destructor() calls timer_delete() before the chip containing the timer is freed. The timer callback may still be running and can rearm itself, resulting in a use-after-free.

Use timer_shutdown_sync() to wait for the callback and prevent further rearming. Do this unconditionally because ss_en may be changed after the timer is armed.

Move timer_setup() into init_realtek_cr() so the timer is initialized before any failure path can invoke the destructor.

Found by static analysis.

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

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

	Issue introduced in 3.1 with commit e931830bb877e2aad9a1be83506f9bdb26c91e4e and fixed in 6.18.51 with commit 7c4e2f964c65dea4ea22386799d5fb10ef1e3e54
	Issue introduced in 3.1 with commit e931830bb877e2aad9a1be83506f9bdb26c91e4e and fixed in 7.2.5 with commit cae9dbba6adae21a04a3bd045e07b489847ff2c6
	Issue introduced in 3.1 with commit e931830bb877e2aad9a1be83506f9bdb26c91e4e and fixed in 7.3-rc2 with commit 4ffee1aebb0c0ffcda9faffd17834ea9b00d42cc

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

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/realtek_cr.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/7c4e2f964c65dea4ea22386799d5fb10ef1e3e54
	https://git.kernel.org/stable/c/cae9dbba6adae21a04a3bd045e07b489847ff2c6
	https://git.kernel.org/stable/c/4ffee1aebb0c0ffcda9faffd17834ea9b00d42cc