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->wowlanconfig will be NULL. rsiconfigwowlan() checks whether wowlanconfig is non-NULL and if it is not, then WARNs about it. The warning is valid, as during normal operation the rsiconfigwowlan() should only ever be called with non-NULL wowlanconfig. In shutdown this rsiconfig_wowlan() should only ever be called if WoWlan was configured before by the user.
Add checks for non-NULL wowlanconfig into the shutdown hook. While at it, check whether the wiphy is also non-NULL before accessing wowlanconfig . Drop the single-use wowlan_config variable, just inline it into function call.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54025.json",
"cna_assigner": "Linux"
}