wifi: rtw88: Use devm_kmemdup() in rtw_set_supported_band()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ e3037485c68ec1a299ff41160d8fedbd4abc29b9 · < 2ba12401cc1f2d970fa2e7d5b15abde3f5abd40d| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: rtw88: Use devm_kmemdup() in rtw_set_supported_band()
Simplify the code by using device managed memory allocations.
This also fixes a memory leak in rtw_register_hw(). The supported bands were not freed in the error path.
Copied from commit 145df52a8671 ("wifi: rtw89: Convert rtw89_core_set_supported_band to use devm_*").
From the CVE record · Linux
The Linux kernel’s rtw88 Wi-Fi driver can leak memory when rtw_register_hw() takes an error path because supported-band allocations are not freed. The input does not describe how an attacker could trigger the error or specify access or user-interaction requirements.
Engineers running Linux kernels with the rtw88 Wi-Fi driver should check their deployments; affected versions are not specified.