CVE-2023-53570

wifi: nl80211: fix integer overflow in nl80211_parse_mbssid_elems()

State
Published
Severity
7.8 High
Published
Oct 4, 2025
Updated
Aug 5, 2026
Reserved
Oct 4, 2025

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • dc1e3cb8da8b414b37208b2fb6755fef8122504b to before e642eb67b8c10dcce758d549cc81564116e0fa49Affected
  • dc1e3cb8da8b414b37208b2fb6755fef8122504b to before 7d09f9f255a5f78578deba5454923072bb53b16cAffected
  • dc1e3cb8da8b414b37208b2fb6755fef8122504b to before 6311071a056272e1e761de8d0305e87cc566f734Affected
LinuxLinux
  • 5.16Affected
  • before 5.16Not affected
  • 6.1.46 through 6.1.*Not affected
  • 6.4.11 through 6.4.*Not affected
  • 6.5 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.