wifi: nl80211: fix integer overflow in nl80211_parse_mbssid_elems()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 6311071a056272e1e761de8d0305e87cc566f734, Kernel 7d09f9f255a5f78578deba5454923072bb53b16c and Kernel e642eb67b8c10dcce758d549cc81564116e0fa49.
In the Linux kernel, the following vulnerability has been resolved: wifi: nl80211: fix integer overflow in nl80211_parse_mbssid_elems() nl80211_parse_mbssid_elems() uses a u8 variable num_elems to count the number of MBSSID elements in the nested netlink attribute attrs, which can lead to an integer overflow if a user of the nl80211 interface specifies 256 or more elements in the corresponding attribute in userspace. The integer overflow can lead to a heap buffer overflow as num_elems determines the size of the trailing array in elems, and this array is thereafter written to for each element in attrs. Note that this vulnerability only affects devices with the wiphy->mbssid_max_interfaces member set for the wireless physical device struct in the device driver, and can only be triggered by a process with CAP_NET_ADMIN capabilities. Fix this by checking for a maximum of 255 elements in attrs.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =5.16, >=dc1e3cb8da8b414b37208b2fb6755fef8122504b <6311071a056272e1e761de8d0305e87cc566f734, >=dc1e3cb8da8b414b37208b2fb6755fef8122504b <7d09f9f255a5f78578deba5454923072bb53b16c, >=dc1e3cb8da8b414b37208b2fb6755fef8122504b <e642eb67b8c10dcce758d549cc81564116e0fa49 | 6311071a056272e1e761de8d0305e87cc566f734, 7d09f9f255a5f78578deba5454923072bb53b16c, e642eb67b8c10dcce758d549cc81564116e0fa49 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket