wifi: iwlwifi: mvm: don't trust firmware n_channels
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ dcaf9f5ecb6f395152609bdc40660d9b593dca63 · < 682b6dc29d98e857e6ca4bbc077c7dc2899b7473| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: iwlwifi: mvm: don't trust firmware n_channels
If the firmware sends us a corrupted MCC response with n_channels much larger than the command response can be, we might copy far too much (uninitialized) memory and even crash if the n_channels is large enough to make it run out of the one page allocated for the FW response.
Fix that by checking the lengths. Doing a < comparison would be sufficient, but the firmware should be doing it correctly, so check more strictly.
From the CVE record · Linux
The Linux kernel’s iwlwifi mvm component can trust an oversized channel count in a corrupted firmware MCC response. This can copy uninitialized memory and, if the count is large enough, crash the kernel. The input does not specify an attacker path, authentication requirements, or user interaction.
Engineers running Linux systems that use the iwlwifi mvm component should check their kernel; affected versions are not specified.