CVE-2025-39849 (GCVE-0-2025-39849)
Vulnerability from cvelistv5
Published
2025-09-19 15:26
Modified
2026-08-05 12:05
Summary
In the Linux kernel, the following vulnerability has been resolved: wifi: cfg80211: sme: cap SSID length in __cfg80211_connect_result() If the ssid->datalen is more than IEEE80211_MAX_SSID_LEN (32) it would lead to memory corruption so add some bounds checking.
Impacted products
Vendor Product Version
Linux Linux Version: dd43f8f90206054e7da7593de0a334fb2cd0ea88
Version: c38c701851011c94ce3be1ccb3593678d2933fd8
Version: c38c701851011c94ce3be1ccb3593678d2933fd8
Version: c38c701851011c94ce3be1ccb3593678d2933fd8
Version: c38c701851011c94ce3be1ccb3593678d2933fd8
Version: bf3c348c5fdcf00a7eeed04a1b83e454d2dca2e5
Version: 6.1.16   
Version: 6.2.3   
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "providerMetadata": {
          "dateUpdated": "2025-11-03T17:44:07.905Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "url": "https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html"
          }
        ],
        "title": "CVE Program Container"
      },
      {
        "affected": [
          {
            "defaultStatus": "unknown",
            "product": "SIMATIC CN 4100",
            "vendor": "Siemens",
            "versions": [
              {
                "lessThan": "V5.0",
                "status": "affected",
                "version": "0",
                "versionType": "custom"
              }
            ]
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2026-05-12T12:07:38.255Z",
          "orgId": "0b142b55-0307-4c5a-b3c9-f314f3fb7c5e",
          "shortName": "siemens-SADP"
        },
        "references": [
          {
            "url": "https://cert-portal.siemens.com/productcert/html/ssa-032379.html"
          }
        ],
        "x_adpType": "supplier"
      },
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2025-39849",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "total"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2026-06-10T20:41:55.667647Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2026-06-11T18:44:17.650Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "net/wireless/sme.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "8e751d46336205abc259ed3990e850a9843fb649",
              "status": "affected",
              "version": "dd43f8f90206054e7da7593de0a334fb2cd0ea88",
              "versionType": "git"
            },
            {
              "lessThan": "e472f59d02c82b511bc43a3f96d62ed08bf4537f",
              "status": "affected",
              "version": "c38c701851011c94ce3be1ccb3593678d2933fd8",
              "versionType": "git"
            },
            {
              "lessThan": "31229145e6ba5ace3e9391113376fa05b7831ede",
              "status": "affected",
              "version": "c38c701851011c94ce3be1ccb3593678d2933fd8",
              "versionType": "git"
            },
            {
              "lessThan": "5cb7cab7adf9b1e6a99e2081b0e30e9e59d07523",
              "status": "affected",
              "version": "c38c701851011c94ce3be1ccb3593678d2933fd8",
              "versionType": "git"
            },
            {
              "lessThan": "62b635dcd69c4fde7ce1de4992d71420a37e51e3",
              "status": "affected",
              "version": "c38c701851011c94ce3be1ccb3593678d2933fd8",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "bf3c348c5fdcf00a7eeed04a1b83e454d2dca2e5",
              "versionType": "git"
            },
            {
              "lessThan": "6.1.151",
              "status": "affected",
              "version": "6.1.16",
              "versionType": "semver"
            },
            {
              "lessThan": "6.3",
              "status": "affected",
              "version": "6.2.3",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "net/wireless/sme.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.3"
            },
            {
              "lessThan": "6.3",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.151",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.105",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.46",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.16.*",
              "status": "unaffected",
              "version": "6.16.6",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.17",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.151",
                  "versionStartIncluding": "6.1.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.105",
                  "versionStartIncluding": "6.3",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.46",
                  "versionStartIncluding": "6.3",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.16.6",
                  "versionStartIncluding": "6.3",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.17",
                  "versionStartIncluding": "6.3",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "6.2.3",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: cfg80211: sme: cap SSID length in __cfg80211_connect_result()\n\nIf the ssid-\u003edatalen is more than IEEE80211_MAX_SSID_LEN (32) it would\nlead to memory corruption so add some bounds checking."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 8.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:A - The overflow length and contents come straight from the SSID element of an 802.11 beacon/probe response stored in the cfg80211 BSS cache, so the attacker only needs to operate a rogue AP or inject frames within radio range of the victim station. This is the standard WiFi frame-injection adjacent-network vector.\nAC:L - The attacker fully controls every precondition \u2014 the rogue AP\u0027s per-link beacon contents, the SSID element length (up to 255), the link IDs, and which link is used for association \u2014 and can force (re)association with deauthentication frames. No condition lies outside the attacker\u0027s control.\nPR:N - No credentials or account on the victim system are required; the code runs during association processing on the client, triggered purely by frames the attacker transmits. An open/evil-twin AP suffices.\nUI:N - Association and roaming are performed automatically by the WiFi stack for remembered and open networks, and an attacker can force reassociation with deauth frames, so no deliberate victim action is needed.\nS:U - The corruption is confined to kernel heap memory belonging to the same kernel security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - `wdev-\u003eu.client.ssid_len` is set to the full unclamped datalen, so `nl80211.c:4530` copies up to 223 bytes of adjacent kernel heap out to userspace via NL80211_ATTR_SSID, and the write primitive over BSS pointers enables broader disclosure.\nI:H - An out-of-bounds write of up to 223 fully attacker-controlled bytes overwrites `wdev-\u003elinks[]`, including `client.current_bss` pointers that are later dereferenced and refcount-decremented, yielding a controlled-pointer primitive suitable for control-flow hijacking.\nA:H - Corrupting the `wdev-\u003elinks[]` BSS pointers and surrounding `ieee80211_sub_if_data` state leads to bogus pointer dereferences in `cfg80211_wdev_release_bsses()` and kernel panic; heap overflow reliably crashes the system."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T12:05:37.003Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/8e751d46336205abc259ed3990e850a9843fb649"
        },
        {
          "url": "https://git.kernel.org/stable/c/e472f59d02c82b511bc43a3f96d62ed08bf4537f"
        },
        {
          "url": "https://git.kernel.org/stable/c/31229145e6ba5ace3e9391113376fa05b7831ede"
        },
        {
          "url": "https://git.kernel.org/stable/c/5cb7cab7adf9b1e6a99e2081b0e30e9e59d07523"
        },
        {
          "url": "https://git.kernel.org/stable/c/62b635dcd69c4fde7ce1de4992d71420a37e51e3"
        }
      ],
      "title": "wifi: cfg80211: sme: cap SSID length in __cfg80211_connect_result()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2025-39849",
    "datePublished": "2025-09-19T15:26:22.073Z",
    "dateReserved": "2025-04-16T07:20:57.142Z",
    "dateUpdated": "2026-08-05T12:05:37.003Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html\"}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2025-11-03T17:44:07.905Z\"}}, {\"affected\": [{\"vendor\": \"Siemens\", \"product\": \"SIMATIC CN 4100\", \"versions\": [{\"status\": \"affected\", \"version\": \"0\", \"lessThan\": \"V5.0\", \"versionType\": \"custom\"}], \"defaultStatus\": \"unknown\"}], \"x_adpType\": \"supplier\", \"references\": [{\"url\": \"https://cert-portal.siemens.com/productcert/html/ssa-032379.html\"}], \"providerMetadata\": {\"orgId\": \"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e\", \"shortName\": \"siemens-SADP\", \"dateUpdated\": \"2026-05-12T12:07:38.255Z\"}}, {\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2025-39849\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"total\"}], \"version\": \"2.0.3\", \"timestamp\": \"2026-06-10T20:41:55.667647Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2026-06-11T17:38:52.556Z\"}}], \"cna\": {\"title\": \"wifi: cfg80211: sme: cap SSID length in __cfg80211_connect_result()\", \"metrics\": [{\"cvssV3_1\": {\"version\": \"3.1\", \"baseScore\": 8.8, \"baseSeverity\": \"HIGH\", \"vectorString\": \"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H\"}, \"scenarios\": [{\"lang\": \"en\", \"value\": \"AV:A - The overflow length and contents come straight from the SSID element of an 802.11 beacon/probe response stored in the cfg80211 BSS cache, so the attacker only needs to operate a rogue AP or inject frames within radio range of the victim station. This is the standard WiFi frame-injection adjacent-network vector.\\nAC:L - The attacker fully controls every precondition \\u2014 the rogue AP\u0027s per-link beacon contents, the SSID element length (up to 255), the link IDs, and which link is used for association \\u2014 and can force (re)association with deauthentication frames. No condition lies outside the attacker\u0027s control.\\nPR:N - No credentials or account on the victim system are required; the code runs during association processing on the client, triggered purely by frames the attacker transmits. An open/evil-twin AP suffices.\\nUI:N - Association and roaming are performed automatically by the WiFi stack for remembered and open networks, and an attacker can force reassociation with deauth frames, so no deliberate victim action is needed.\\nS:U - The corruption is confined to kernel heap memory belonging to the same kernel security authority; no VM, IOMMU, or sandbox boundary is crossed.\\nC:H - `wdev-\u003eu.client.ssid_len` is set to the full unclamped datalen, so `nl80211.c:4530` copies up to 223 bytes of adjacent kernel heap out to userspace via NL80211_ATTR_SSID, and the write primitive over BSS pointers enables broader disclosure.\\nI:H - An out-of-bounds write of up to 223 fully attacker-controlled bytes overwrites `wdev-\u003elinks[]`, including `client.current_bss` pointers that are later dereferenced and refcount-decremented, yielding a controlled-pointer primitive suitable for control-flow hijacking.\\nA:H - Corrupting the `wdev-\u003elinks[]` BSS pointers and surrounding `ieee80211_sub_if_data` state leads to bogus pointer dereferences in `cfg80211_wdev_release_bsses()` and kernel panic; heap overflow reliably crashes the system.\"}]}], \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"dd43f8f90206054e7da7593de0a334fb2cd0ea88\", \"lessThan\": \"8e751d46336205abc259ed3990e850a9843fb649\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"c38c701851011c94ce3be1ccb3593678d2933fd8\", \"lessThan\": \"e472f59d02c82b511bc43a3f96d62ed08bf4537f\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"c38c701851011c94ce3be1ccb3593678d2933fd8\", \"lessThan\": \"31229145e6ba5ace3e9391113376fa05b7831ede\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"c38c701851011c94ce3be1ccb3593678d2933fd8\", \"lessThan\": \"5cb7cab7adf9b1e6a99e2081b0e30e9e59d07523\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"c38c701851011c94ce3be1ccb3593678d2933fd8\", \"lessThan\": \"62b635dcd69c4fde7ce1de4992d71420a37e51e3\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"bf3c348c5fdcf00a7eeed04a1b83e454d2dca2e5\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"6.1.16\", \"lessThan\": \"6.1.151\", \"versionType\": \"semver\"}, {\"status\": \"affected\", \"version\": \"6.2.3\", \"lessThan\": \"6.3\", \"versionType\": \"semver\"}], \"programFiles\": [\"net/wireless/sme.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"6.3\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"6.3\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"6.1.151\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.1.*\"}, {\"status\": \"unaffected\", \"version\": \"6.6.105\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.6.*\"}, {\"status\": \"unaffected\", \"version\": \"6.12.46\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.12.*\"}, {\"status\": \"unaffected\", \"version\": \"6.16.6\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.16.*\"}, {\"status\": \"unaffected\", \"version\": \"6.17\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"net/wireless/sme.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/8e751d46336205abc259ed3990e850a9843fb649\"}, {\"url\": \"https://git.kernel.org/stable/c/e472f59d02c82b511bc43a3f96d62ed08bf4537f\"}, {\"url\": \"https://git.kernel.org/stable/c/31229145e6ba5ace3e9391113376fa05b7831ede\"}, {\"url\": \"https://git.kernel.org/stable/c/5cb7cab7adf9b1e6a99e2081b0e30e9e59d07523\"}, {\"url\": \"https://git.kernel.org/stable/c/62b635dcd69c4fde7ce1de4992d71420a37e51e3\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nwifi: cfg80211: sme: cap SSID length in __cfg80211_connect_result()\\n\\nIf the ssid-\u003edatalen is more than IEEE80211_MAX_SSID_LEN (32) it would\\nlead to memory corruption so add some bounds checking.\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.1.151\", \"versionStartIncluding\": \"6.1.16\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.6.105\", \"versionStartIncluding\": \"6.3\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.12.46\", \"versionStartIncluding\": \"6.3\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.16.6\", \"versionStartIncluding\": \"6.3\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.17\", \"versionStartIncluding\": \"6.3\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionStartIncluding\": \"6.2.3\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2026-08-05T12:05:37.003Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2025-39849\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2026-08-05T12:05:37.003Z\", \"dateReserved\": \"2025-04-16T07:20:57.142Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2025-09-19T15:26:22.073Z\", \"assignerShortName\": \"Linux\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…