Skip to contentSkip to conversation

CVE-2026-31672: wifi: rt2x00usb: fix devres lifetime

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Apr 24

lore
Share & tools
lore
#0 lore raw

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

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

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

wifi: rt2x00usb: fix devres lifetime

USB drivers bind to USB interfaces and any device managed resources should have their lifetime tied to the interface rather than parent USB device. This avoids issues like memory leaks when drivers are unbound without their devices being physically disconnected (e.g. on probe deferral or configuration changes).

Fix the USB anchor lifetime so that it is released on driver unbind.

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

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

	Issue introduced in 4.7 with commit 8b4c0009313f3d42e2540e3e1f776097dd0db73d and fixed in 5.10.253 with commit 64a457f6afbf15f984d95201a9a1e71eed3f9dd1
	Issue introduced in 4.7 with commit 8b4c0009313f3d42e2540e3e1f776097dd0db73d and fixed in 5.15.203 with commit 65518a6965d527c53013947031f26754f6a4f6af
	Issue introduced in 4.7 with commit 8b4c0009313f3d42e2540e3e1f776097dd0db73d and fixed in 6.1.169 with commit 15b233e33b35b927bd8d0044c15325564ea1ba24
	Issue introduced in 4.7 with commit 8b4c0009313f3d42e2540e3e1f776097dd0db73d and fixed in 6.6.135 with commit 1de5c76bf40e9cdeebf54662f63011fb10fa452f
	Issue introduced in 4.7 with commit 8b4c0009313f3d42e2540e3e1f776097dd0db73d and fixed in 6.12.82 with commit b245db719bc7e57abf48bd5701662b270c3880f7
	Issue introduced in 4.7 with commit 8b4c0009313f3d42e2540e3e1f776097dd0db73d and fixed in 6.18.23 with commit e360d15fcb1e819eef49e3d4434d8050542eed16
	Issue introduced in 4.7 with commit 8b4c0009313f3d42e2540e3e1f776097dd0db73d and fixed in 6.19.13 with commit c99f198841b41735796e2ddfcd573783fb552eb9
	Issue introduced in 4.7 with commit 8b4c0009313f3d42e2540e3e1f776097dd0db73d and fixed in 7.0 with commit 25369b22223d1c56e42a0cd4ac9137349d5a898e

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

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/net/wireless/ralink/rt2x00/rt2x00usb.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/64a457f6afbf15f984d95201a9a1e71eed3f9dd1
	https://git.kernel.org/stable/c/65518a6965d527c53013947031f26754f6a4f6af
	https://git.kernel.org/stable/c/15b233e33b35b927bd8d0044c15325564ea1ba24
	https://git.kernel.org/stable/c/1de5c76bf40e9cdeebf54662f63011fb10fa452f
	https://git.kernel.org/stable/c/b245db719bc7e57abf48bd5701662b270c3880f7
	https://git.kernel.org/stable/c/e360d15fcb1e819eef49e3d4434d8050542eed16
	https://git.kernel.org/stable/c/c99f198841b41735796e2ddfcd573783fb552eb9
	https://git.kernel.org/stable/c/25369b22223d1c56e42a0cd4ac9137349d5a898e