wifi: brcmfmac: Fix potential kernel oops when probe fails
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 |
|
|
6.18.166.19.67.0In the Linux kernel, the following vulnerability has been resolved:
wifi: brcmfmac: Fix potential kernel oops when probe fails
When probe of the sdio brcmfmac device fails for some reasons (i.e. missing firmware), the sdiodev->bus is set to error instead of NULL, thus the cleanup later in brcmf_sdio_remove() tries to free resources via invalid bus pointer. This happens because sdiodev->bus is set 2 times: first in brcmf_sdio_probe() and second time in brcmf_sdiod_probe(). Fix this by chaning the brcmf_sdio_probe() function to return the error code and set sdio->bus only there.
From the CVE record · Linux
A failed probe of a brcmfmac SDIO device, such as when firmware is missing, can leave an invalid bus pointer that cleanup later tries to use, potentially causing a kernel oops. The input does not establish whether an attacker can trigger the failure, or specify network access, authentication, or user-interaction requirements.
Engineers running Linux kernels with brcmfmac SDIO support should check their versions; affected versions were not provided.