wifi: rsi: Do not configure WoWlan in shutdown hook if not enabled
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 16bbc3eb83728c03138191a5d23d84d38175fa26 · < b241e260820b68c09586e8a0ae0fc23c0e3215bd| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: rsi: Do not configure WoWlan in shutdown hook if not enabled
In case WoWlan was never configured during the operation of the system, the hw->wiphy->wowlan_config will be NULL. rsi_config_wowlan() checks whether wowlan_config is non-NULL and if it is not, then WARNs about it. The warning is valid, as during normal operation the rsi_config_wowlan() should only ever be called with non-NULL wowlan_config. In shutdown this rsi_config_wowlan() should only ever be called if WoWlan was configured before by the user.
Add checks for non-NULL wowlan_config into the shutdown hook. While at it, check whether the wiphy is also non-NULL before accessing wowlan_config . Drop the single-use wowlan_config variable, just inline it into function call.
From the CVE record · Linux
The Linux kernel’s rsi Wi-Fi shutdown hook can call WoWlan configuration code when WoWlan was never configured, triggering a warning. The input does not describe an attacker-controlled exploit or specify access, authentication, or user-interaction conditions.
Engineers running Linux kernels with the rsi Wi-Fi driver should check whether their kernel is affected; affected versions are not specified.