# CVE-2025-39864: wifi: cfg80211: fix use-after-free in cmp\_bss()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.38% (percentile 24, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-09-19T15:26:33.787Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6, \< a8bb681e879ca3c9f722aa08d3d7ae41c42a8807; \>= 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6, \< a97a9791e455bb0cd5e7a38b5abcb05523d4e21c; \>= 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6, \< ff040562c10a540b8d851f7f4145fa112977f853; \>= 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6, \< 6854476d9e1aeaaf05ebc98d610061c2075db07d; \>= 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6, \< b7d08929178c16398278613df07ad65cf63cce9d; \>= 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6, \< 5b7ae04969f822283a95c866967e42b4d75e0eef; \>= 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6, \< 912c4b66bef713a20775cfbf3b5e9bd71525c716; \>= 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6, \< 26e84445f02ce6b2fe5f3e0e28ff7add77f35e08
- Anyone running Linux 5.4

## Description

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.

## Affected and fixed versions

- Linux: \>= 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6, \< a8bb681e879ca3c9f722aa08d3d7ae41c42a8807; \>= 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6, \< a97a9791e455bb0cd5e7a38b5abcb05523d4e21c; \>= 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6, \< ff040562c10a540b8d851f7f4145fa112977f853; \>= 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6, \< 6854476d9e1aeaaf05ebc98d610061c2075db07d; \>= 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6, \< b7d08929178c16398278613df07ad65cf63cce9d; \>= 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6, \< 5b7ae04969f822283a95c866967e42b4d75e0eef; \>= 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6, \< 912c4b66bef713a20775cfbf3b5e9bd71525c716; \>= 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6, \< 26e84445f02ce6b2fe5f3e0e28ff7add77f35e08 (cvelist)
- Linux: 5.4 (cvelist)

## Mitigation

- Upgrade Linux to 26e84445f02ce6b2fe5f3e0e28ff7add77f35e08 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-39864. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-39864.md
Affected: Linux >= 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6, < a8bb681e879ca3c9f722aa08d3d7ae41c42a8807; >= 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6, < a97a9791e455bb0cd5e7a38b5abcb05523d4e21c; >= 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6, < ff040562c10a540b8d851f7f4145fa112977f853; >= 3ab8227d3e7d1d2bf182967…
Fixed in: Linux 6854476d9e1aeaaf05ebc98d610061c2075db07d, Linux 5b7ae04969f822283a95c866967e42b4d75e0eef, Linux 912c4b66bef713a20775cfbf3b5e9bd71525c716, Linux 26e84445f02ce6b2fe5f3e0e28ff7add77f35e08

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-39864 being exploited?

There is no confirmed exploitation: CVE-2025-39864 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.38% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-39864?

High: CVSS 8.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-39864?

Linux \>= 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6, \< a8bb681e879ca3c9f722aa08d3d7ae41c42a8807; \>= 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6, \< a97a9791e455bb0cd5e7a38b5abcb05523d4e21c; \>= 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6, \< ff040562c10a540b8d851f7f4145fa112977f853; \>= 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6, \< 6854476d9e1aeaaf05ebc98d610061c2075db07d; \>= 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6, \< b7d08929178c16398278613df07ad65cf63cce9d; \>= 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6, \< 5b7ae04969f822283a95c866967e42b4d75e0eef; \>= 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6, \< 912c4b66bef713a20775cfbf3b5e9bd71525c716; \>= 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6, \< 26e84445f02ce6b2fe5f3e0e28ff7add77f35e08; Linux 5.4.

### Is there a fix for CVE-2025-39864?

Yes. Fixed in Linux 6854476d9e1aeaaf05ebc98d610061c2075db07d, Linux 5b7ae04969f822283a95c866967e42b4d75e0eef, Linux 912c4b66bef713a20775cfbf3b5e9bd71525c716, Linux 26e84445f02ce6b2fe5f3e0e28ff7add77f35e08. Upgrade Linux to 26e84445f02ce6b2fe5f3e0e28ff7add77f35e08 or later.

### How do I check if I'm affected by CVE-2025-39864?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/a8bb681e879ca3c9f722aa08d3d7ae41c42a8807>
- patch: <https://git.kernel.org/stable/c/a97a9791e455bb0cd5e7a38b5abcb05523d4e21c>
- patch: <https://git.kernel.org/stable/c/ff040562c10a540b8d851f7f4145fa112977f853>
- patch: <https://git.kernel.org/stable/c/6854476d9e1aeaaf05ebc98d610061c2075db07d>
- patch: <https://git.kernel.org/stable/c/b7d08929178c16398278613df07ad65cf63cce9d>
- patch: <https://git.kernel.org/stable/c/5b7ae04969f822283a95c866967e42b4d75e0eef>
- patch: <https://git.kernel.org/stable/c/912c4b66bef713a20775cfbf3b5e9bd71525c716>
- patch: <https://git.kernel.org/stable/c/26e84445f02ce6b2fe5f3e0e28ff7add77f35e08>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-089022.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-032379.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-39864>

HTML: <https://flawdb.com/CVE-2025-39864> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-39864>
