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.
Product status
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before a4f4371d194dfa5473cc961f86194084b1b13a69
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before 89a9c1bc7d797120bcc290864e0cb10a440a677f
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before af7307e96dad00bcc2675dac650d8558a52f2c6f
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before 25a827b7e1d5747a255bdc757f1d3e9e1e8a4e2a
6.12.83 (semver)
6.18.24 (semver)
6.19.14 (semver)
7.0.1 (semver)
References
git.kernel.org/...c/a4f4371d194dfa5473cc961f86194084b1b13a69
git.kernel.org/...c/89a9c1bc7d797120bcc290864e0cb10a440a677f
git.kernel.org/...c/af7307e96dad00bcc2675dac650d8558a52f2c6f
git.kernel.org/...c/25a827b7e1d5747a255bdc757f1d3e9e1e8a4e2a