wifi: brcm80211: fmac: Add error handling for brcmf_usb_dl_writeimage()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 71bb244ba2fd5390eefe4ee9054abdb3f8b05922 · < bdb435ef9815b1ae28eefffa01c6959d0fcf1fa7| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: brcm80211: fmac: Add error handling for brcmf_usb_dl_writeimage()
The function brcmf_usb_dl_writeimage() calls the function brcmf_usb_dl_cmd() but dose not check its return value. The 'state.state' and the 'state.bytes' are uninitialized if the function brcmf_usb_dl_cmd() fails. It is dangerous to use uninitialized variables in the conditions.
Add error handling for brcmf_usb_dl_cmd() to jump to error handling path if the brcmf_usb_dl_cmd() fails and the 'state.state' and the 'state.bytes' are uninitialized.
Improve the error message to report more detailed error information.
From the CVE record · Linux
The Linux kernel’s brcm80211 driver does not check whether a command fails during USB firmware download. If it fails, the driver can use uninitialized state values in conditions. The input does not specify an attacker action, access requirements, or user interaction.
Teams running Linux kernels with the brcm80211 driver should check their kernel versions; affected versions are not specified.