CVE-2026-31604: wifi: rtw88: fix device leak on probe failure
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
wifi: rtw88: fix device leak on probe failure
Driver core holds a reference to the USB interface and its parent USB device while the interface is bound to a driver and there is no need to take additional references unless the structures are needed after disconnect.
This driver takes a reference to the USB device during probe but does not to release it on all probe errors (e.g. when descriptor parsing fails).
Drop the redundant device reference to fix the leak, reduce cargo culting, make it easier to spot drivers where an extra reference is needed, and reduce the risk of further memory leaks.
The Linux kernel CVE team has assigned CVE-2026-31604 to this issue.
Affected and fixed versions
===========================
Fixed in 6.12.83 with commit a4f4371d194dfa5473cc961f86194084b1b13a69 Fixed in 6.18.24 with commit 89a9c1bc7d797120bcc290864e0cb10a440a677f Fixed in 6.19.14 with commit af7307e96dad00bcc2675dac650d8558a52f2c6f Fixed in 7.0.1 with commit 25a827b7e1d5747a255bdc757f1d3e9e1e8a4e2a
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-31604
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/realtek/rtw88/usb.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/a4f4371d194dfa5473cc961f86194084b1b13a69 https://git.kernel.org/stable/c/89a9c1bc7d797120bcc290864e0cb10a440a677f https://git.kernel.org/stable/c/af7307e96dad00bcc2675dac650d8558a52f2c6f https://git.kernel.org/stable/c/25a827b7e1d5747a255bdc757f1d3e9e1e8a4e2a https://git.kernel.org/stable/c/bbb15e71156cd9f5e1869eee7207a06ea8e96c39