CVE-2025-39864
wifi: cfg80211: fix use-after-free in cmp_bss()
Reported by linux · Published September 19, 2025
In the Linux kernel, the following vulnerability has been resolved: wifi: cfg80211: fix use-after-free in cmp_bss() Following bss_free() quirk introduced in commit 776b3580178f ("cfg80211: track hidden SSID networks properly"), adjust cfg80211_update_known_bss() to free the last beacon frame elements only if they're not shared via the corresponding 'hidden_beacon_bss' pointer.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| SCALANCE XCM328 | Siemens | 3.3 |
| SCALANCE XRM334 (230 V AC, 8xFO) | Siemens | 3.3 |
| SCALANCE XCM332 | Siemens | 3.3 |
| linux_kernel | linux | 6.16.6, 6.12.46, 6.6.105, 6.1.151, 5.15.192, 5.10.243, 5.4.299 |
| Linux | Linux | 5.4 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6, 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6, 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6 |
| Linux | Linux | 5.4, 0, 5.4.299 |
| Siemens | SCALANCE XCM328 | 0 |
| Siemens | SCALANCE XRM334 (230 V AC, 8xFO) | 0 |
| Siemens | SCALANCE XCM332 | 0 |
| Linux | Linux | 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6, 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6, 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6 |
| Siemens | SCALANCE XCH328 | 0 |
| Siemens | SCALANCE XRM334 (24 V DC, 12xFO) | 0 |
| Siemens | SCALANCE XRM334 (230V AC, 2x10G, 24xSFP, 8xSFP+) | 0 |
| Siemens | SCALANCE XRM334 (2x230 V AC, 8xFO) | 0 |
| Siemens | SCALANCE XCM324 | 0 |
| Siemens | SCALANCE XRM334 (230 V AC, 12xFO) | 0 |
| linux | linux_kernel | 5.4, 5.4, 5.4 |
| Siemens | SIMATIC CN 4100 | 0 |
| Siemens | SCALANCE XRM334 (2x230 V AC, 12xFO) | 0 |
| Siemens | SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family | 0 |
| Siemens | SCALANCE XRM334 (24V DC, 2x10G, 24xSFP, 8xSFP+) | 0 |
| Siemens | SCALANCE XRM334 (2x230V AC, 2x10G, 24xSFP, 8xSFP+) | 0 |
| Siemens | SCALANCE XRH334 (24 V DC, 8xFO, CC) | 0 |
| Siemens | RUGGEDCOM RST2428P | 0 |
…and 1 more
Timeline
- Sep 19, 2025 CVE Published
- Sep 20, 2025 EPSS Score (30 in total, the first dated here)
- Oct 12, 2025 PoC Published (11 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (135 in total, the first dated here)
- Mar 29, 2026 Security Advisory (146 in total, the first dated here)
- Jun 8, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-39864
vulnetix vdb fixes CVE-2025-39864
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-39864/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart