wifi: brcmfmac: cfg80211: Pass the PMK in binary instead of hex
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ b8a64f0e96c2b258321ee03975aeb0f5e88a055b · < f8a6c53ff1d91acd5a20eb627edbffd816eb9a4e| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: brcmfmac: cfg80211: Pass the PMK in binary instead of hex
Apparently the hex passphrase mechanism does not work on newer chips/firmware (e.g. BCM4387). It seems there was a simple way of passing it in binary all along, so use that and avoid the hexification.
OpenBSD has been doing it like this from the beginning, so this should work on all chips.
Also clear the structure before setting the PMK. This was leaking uninitialized stack contents to the device.
From the CVE record · Linux
The Linux kernel brcmfmac cfg80211 code did not clear a structure before setting the PMK, leaking uninitialized stack contents to the device. The input does not specify how an attacker could access that data or whether authentication or user interaction is required.
Engineers running Linux systems that use the brcmfmac Wi-Fi driver should check their kernel version; affected versions are not specified.