wifi: wcn36xx: fix channel survey memory allocation size
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: wcn36xx: fix channel survey memory allocation size
KASAN reported a memory allocation issue in wcn->chan_survey due to incorrect size calculation. This commit uses kcalloc to allocate memory for wcn->chan_survey, ensuring proper initialization and preventing the use of uninitialized values when there are no frames on the channel.
From the CVE record · Linux
The Linux kernel’s wcn36xx Wi-Fi driver allocates channel survey memory with an incorrect size calculation. This can lead to use of uninitialized values when there are no frames on the channel; the input does not specify attacker access requirements or user interaction.
Engineers running Linux kernels with the wcn36xx Wi-Fi driver should check whether their kernel includes the fix; affected versions were not specified.