wifi: mwifiex: validate scan response extents
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 5e6e3a92b9a4c9416b17f468fa5c7fa2233b8b4e · < 9cff2f39ed38a32070b08364c4c9346e85b8f9ec| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: mwifiex: validate scan response extents
mwifiex_ret_802_11_scan() subtracts the fixed response fields and the firmware-provided BSS length from resp->size without first proving that either extent fits. A short response or oversized BSS length can therefore underflow tlv_buf_size and make the TLV parser walk beyond the command response.
Compute the fixed extent from the selected normal or background scan response. Validate that the fixed fields and BSS data fit before deriving the TLV extent and entering the parser.
From the CVE record · Linux
The Linux kernel’s mwifiex Wi-Fi driver does not validate the lengths of scan response fields before calculating the TLV data length. A short response or oversized firmware-provided BSS length can make the parser read beyond the command response. The input does not establish whether an attacker can trigger this remotely or locally, or whether authentication or user interaction is required.
Engineers running Linux kernels with the mwifiex Wi-Fi driver should check their versions; affected versions are not specified.