wifi: wfx: validate MIB read length before copying to caller
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ f95a29d40782f4f0052a692a822de3ba044b19ff · < ce67ebe9d8629776ce38e6995ae72fb903c828db| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: wfx: validate MIB read length before copying to caller
wfx_hif_read_mib() copies reply->length bytes from the firmware response into the caller-provided buffer without checking that reply->length does not exceed val_len. A firmware response with a length field larger than expected overruns the caller buffer and reads past the end of the reply allocation.
Replace the dead -ENOMEM check with an active validation that reply->length fits within val_len before the memcpy.
From the CVE record · Linux
The Linux kernel’s wfx Wi-Fi driver does not check a firmware response length before copying data into a caller-provided buffer. If the firmware reports a length larger than expected, the copy can overrun that buffer and read past the response allocation. The input does not specify an attack path, authentication requirement, or user interaction.
Engineers running Linux kernels with the wfx Wi-Fi driver should check whether their kernel includes the fix; affected versions are not specified.