5.5medium
wifi: brcmfmac: Fix potential kernel oops when probe fails
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.13% (higher than 2% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 0ff0843310b74e565901d85f849fb308c3b1f220 before 64ccb0aac41c5055780c2a58bbe2c1b362ceccde, from 0ff0843310b74e565901d85f849fb308c3b1f220 before 379aac7ee8240848aa35f605b06addb4617c863e, from 0ff0843310b74e565901d85f849fb308c3b1f220 before 243307a0d1b0d01538e202c00454c28b21d4432e, 6.13 Not affected: before 6.13, from 6.18.16 up to 6.18.*, from 6.19.6 up to 6.19.*, from 7.0 up to * | CVE List |
| linux linux_kernel | from 6.13 before 6.18.16, from 6.19 before 6.19.6, 7.0 | NVD |
Classification
What each source says
CVE List
In 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.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: wifi: brcmfmac: Arregla un posible kernel oops cuando el sondeo falla Cuando el sondeo del dispositivo sdio brcmfmac falla por algunas razones (es decir, firmware faltante), el sdiodev -> bus se establece en error en lugar de NULL, por lo tanto, la limpieza posterior en brcmf_sdio_remove() intenta liberar recursos a través de un puntero de bus inválido. Esto sucede porque sdiodev -> bus se establece 2 veces: primero en brcmf_sdio_probe() y la segunda vez en brcmf_sdiod_probe(). Arregla esto cambiando la función brcmf_sdio_probe() para que devuelva el código de error y establezca sdio -> bus solo allí.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-43144 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2026-43144 changed 2026-11-11 | Public domain |