wifi: rt2x00usb: fix devres lifetime
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 8b4c0009313f3d42e2540e3e1f776097dd0db73d · < e360d15fcb1e819eef49e3d4434d8050542eed16| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's rt2x00usb driver ties a USB anchor's lifetime to the parent USB device rather than the USB interface. This can leak memory when the driver is unbound without the device being physically disconnected, such as during probe deferral or configuration changes. The input does not describe an attacker, authentication requirements, or user interaction.
Engineers running Linux kernel builds that include the rt2x00usb driver should check whether their build contains the fix; affected versions were not provided.