wifi: nl80211: reject oversized EMA RNR lists
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ dbbb27e183b1568d5a907ace1cd144b0709ea52a · < 4cd92957e8f8cc4ebfe8a5d4203c14c592fde6b1| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: nl80211: reject oversized EMA RNR lists
nl80211_parse_rnr_elems() stores the parsed element count in a u8-backed cfg80211_rnr_elems::cnt field and uses that count to size the flexible array allocation.
Reject nested NL80211_ATTR_EMA_RNR_ELEMS input once the count reaches 255, before incrementing it again. This keeps the parser aligned with the data structure it fills and matches the existing bound check used by nl80211_parse_mbssid_elems().
From the CVE record · Linux
The Linux kernel's nl80211 EMA RNR parser stores an element count in an 8-bit field and uses it to size an allocation. Oversized nested input can cause the count to wrap, resulting in an incorrectly sized allocation. The input does not specify the attacker's required access or whether user interaction is needed.
Anyone running the Linux kernel should check whether their version contains this vulnerability; affected versions are not specified.