wifi: brcmfmac: fix NULL pointer dereference in brcmf_txfinalize()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 7f00ee2bbc630900ba16fc2690473f3e2db0e264 · < fbbfef2a5b858eab55741a58b2ac9a0cc8d53c58| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: brcmfmac: fix NULL pointer dereference in brcmf_txfinalize()
On removal of the device or unloading of the kernel module a potential NULL pointer dereference occurs.
The following sequence deletes the interface:
brcmf_detach() brcmf_remove_interface() brcmf_del_if()
Inside the brcmf_del_if() function the drvr->if2bss[ifidx] is updated to BRCMF_BSSIDX_INVALID (-1) if the bsscfgidx matches.
After brcmf_remove_interface() call the brcmf_proto_detach() function is called providing the following sequence:
brcmf_detach() brcmf_proto_detach() brcmf_proto_msgbuf_detach() brcmf_flowring_detach() brcmf_msgbuf_delete_flowring() brcmf_msgbuf_remove_flowring() brcmf_flowring_delete() brcmf_get_ifp() brcmf_txfinalize()
From the CVE record · Linux
The Linux kernel's brcmfmac Wi-Fi driver can dereference a NULL pointer during device removal or module unloading if a flowring still contains an skb. This can cause a crash during local teardown; the input does not describe a network attack or authentication requirements.
Engineers running Linux kernels with the brcmfmac Wi-Fi driver should check whether their kernel includes the fix; affected versions are not specified.