iwlwifi: fix use-after-free
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 6b5ad4bd0d78fef6bbe0ecdf96e09237c9c52cc1 · < 9958b9cbb22145295ee1ffaea0904c383da2c05d| No fix yet |
| Linux Linux |
| No fix yet |
In the Linux kernel, the following vulnerability has been resolved:
iwlwifi: fix use-after-free
If no firmware was present at all (or, presumably, all of the firmware files failed to parse), we end up unbinding by calling device_release_driver(), which calls remove(), which then in iwlwifi calls iwl_drv_stop(), freeing the 'drv' struct. However the new code I added will still erroneously access it after it was freed.
Set 'failure=false' in this case to avoid the access, all data was already freed anyway.
From the CVE record · Linux
The Linux kernel's iwlwifi driver can access a freed driver structure during device unbinding if no firmware is present or firmware files fail to parse. The input does not specify what an attacker could accomplish, whether access is local or network-based, or whether authentication or user interaction is required.
Engineers running Linux kernels with the iwlwifi driver should check their versions; affected versions are not specified.