wifi: cfg80211: don't get the radio mask for netdev-less wdevs
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 |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: cfg80211: don't get the radio mask for netdev-less wdevs
cfg80211_calculate_bi_data() calls rdev_get_radio_mask() with wdev->netdev, which can be NULL and then crashes in mac80211.
To avoid that, invert the order of checks since wdev->netdev is always valid for beaconing interfaces.
From the CVE record · Linux
The Linux kernel's cfg80211 code can pass a NULL network device to mac80211 when calculating beacon information for a wireless device without a network device, causing a crash. The input does not establish whether an attacker can trigger this, or specify network access, authentication, or user-interaction requirements.
Engineers running Linux kernels with the affected cfg80211 code should check their installations; affected versions are not specified.