wifi: iwlwifi: mld: avoid panic on init failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: iwlwifi: mld: avoid panic on init failure
In case of an error during init, in_hw_restart will be set, but it will never get cleared. Instead, we will retry to init again, and then we will act like we are in a restart when we are actually not.
This causes (among others) to a NULL pointer dereference when canceling rx_omi::finished_work, that was not even initialized, because we thought that we are in hw_restart.
Set in_hw_restart to true only if the fw is running, then we know that FW was loaded successfully and we are not going to the retry loop.
From the CVE record · Linux
An initialization failure in the Linux kernel’s iwlwifi mld component can leave restart state set incorrectly. On a subsequent initialization attempt, this can cause a NULL pointer dereference and kernel panic. The input does not establish whether an attacker can trigger the failure or whether access or user interaction is required.
Operators running Linux kernels with the iwlwifi mld component should check whether their kernel is affected; affected versions are not specified.