{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-39849","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2025-04-16T07:20:57.142Z","datePublished":"2025-09-19T15:26:22.073Z","dateUpdated":"2026-08-05T12:05:37.003Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-08-05T12:05:37.003Z"},"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->datalen is more than IEEE80211_MAX_SSID_LEN (32) it would\nlead to memory corruption so add some bounds checking."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":8.8,"baseSeverity":"HIGH"},"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 — the rogue AP's per-link beacon contents, the SSID element length (up to 255), the link IDs, and which link is used for association — and can force (re)association with deauthentication frames. No condition lies outside the attacker's 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->u.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->links[]`, 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->links[]` 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":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/wireless/sme.c"],"versions":[{"version":"dd43f8f90206054e7da7593de0a334fb2cd0ea88","lessThan":"8e751d46336205abc259ed3990e850a9843fb649","status":"affected","versionType":"git"},{"version":"c38c701851011c94ce3be1ccb3593678d2933fd8","lessThan":"e472f59d02c82b511bc43a3f96d62ed08bf4537f","status":"affected","versionType":"git"},{"version":"c38c701851011c94ce3be1ccb3593678d2933fd8","lessThan":"31229145e6ba5ace3e9391113376fa05b7831ede","status":"affected","versionType":"git"},{"version":"c38c701851011c94ce3be1ccb3593678d2933fd8","lessThan":"5cb7cab7adf9b1e6a99e2081b0e30e9e59d07523","status":"affected","versionType":"git"},{"version":"c38c701851011c94ce3be1ccb3593678d2933fd8","lessThan":"62b635dcd69c4fde7ce1de4992d71420a37e51e3","status":"affected","versionType":"git"},{"version":"bf3c348c5fdcf00a7eeed04a1b83e454d2dca2e5","status":"affected","versionType":"git"},{"version":"6.1.16","lessThan":"6.1.151","status":"affected","versionType":"semver"},{"version":"6.2.3","lessThan":"6.3","status":"affected","versionType":"semver"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/wireless/sme.c"],"versions":[{"version":"6.3","status":"affected"},{"version":"0","lessThan":"6.3","status":"unaffected","versionType":"semver"},{"version":"6.1.151","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.105","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.46","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.16.6","lessThanOrEqual":"6.16.*","status":"unaffected","versionType":"semver"},{"version":"6.17","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1.16","versionEndExcluding":"6.1.151"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.3","versionEndExcluding":"6.6.105"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.3","versionEndExcluding":"6.12.46"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.3","versionEndExcluding":"6.16.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.3","versionEndExcluding":"6.17"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2.3"}]}]}],"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"}},"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"}},{"x_adpType":"supplier","providerMetadata":{"orgId":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e","shortName":"siemens-SADP","dateUpdated":"2026-05-12T12:07:38.255Z"},"affected":[{"vendor":"Siemens","product":"SIMATIC CN 4100","versions":[{"status":"affected","version":"0","lessThan":"V5.0","versionType":"custom"}],"defaultStatus":"unknown"}],"references":[{"url":"https://cert-portal.siemens.com/productcert/html/ssa-032379.html"}]},{"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"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2026-06-11T18:44:17.650Z"}}]}}