wl1251: dynamically allocate memory used for DMA
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wl1251: dynamically allocate memory used for DMA
With introduction of vmap'ed stacks, stack parameters can no longer be used for DMA and now leads to kernel panic.
It happens at several places for the wl1251 (e.g. when accessed through SDIO) making it unuseable on e.g. the OpenPandora.
We solve this by allocating temporary buffers or use wl1251_read32().
Tested on v5.18-rc5 with OpenPandora.
From the CVE record · Linux
The Linux kernel's wl1251 driver can panic when it uses stack memory for DMA with vmap'ed stacks, including when wl1251 is accessed through SDIO. The input does not describe an attacker path, authentication requirement, or user interaction.
Engineers running Linux kernels with the wl1251 driver and vmap'ed stacks should check their systems; affected versions are not specified.