Skip to content
Heist/ feed
Back to feed
HighFix available

wifi: nl80211: fix integer overflow in nl80211_parse_mbssid_elems()

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.1.46, 6.4.11
CVEs
CVE-2023-53570
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 06:54 UTC · Revision 1

Source evidence

wifi: nl80211: fix integer overflow in nl80211_parse_mbssid_elems()

core-osv · Original source

Published 4 Oct 2025, 15:17 UTC

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.

osv:CVE-2023-53570

Kernel

Fixed versions: 6.1.46, 6.4.11

Complete source record
{
  "id": "3d319482955f64917c3dc24ab0b614de7f76f66d9c2025132606947d80dbc5a3",
  "url": "https://osv.dev/vulnerability/CVE-2023-53570",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "wifi: nl80211: fix integer overflow in nl80211_parse_mbssid_elems()",
    "summary": "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.",
    "evidence": "osv:CVE-2023-53570",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.1.46",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.4.11",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2023-53570",
      "aliases": [
        "CVE-2023-53570"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "dc1e3cb8da8b414b37208b2fb6755fef8122504b"
                },
                {
                  "fixed": "e642eb67b8c10dcce758d549cc81564116e0fa49"
                },
                {
                  "fixed": "7d09f9f255a5f78578deba5454923072bb53b16c"
                },
                {
                  "fixed": "6311071a056272e1e761de8d0305e87cc566f734"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53570.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.46"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.4.11"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53570.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:27.064964883Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/6311071a056272e1e761de8d0305e87cc566f734",
        "https://git.kernel.org/stable/c/7d09f9f255a5f78578deba5454923072bb53b16c",
        "https://git.kernel.org/stable/c/e642eb67b8c10dcce758d549cc81564116e0fa49",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53570.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-53570",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53570.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-53570",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 493172,
  "published_at": "2025-10-04T15:17:11.525+00:00"
}