# CVE-2025-39864: wifi: cfg80211: fix use-after-free in cmp_bss()

- Severity: High 8.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2025-09-19T15:26:33.787Z
- Modified: 2026-10-19T21:10:00.160Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6 before a8bb681e879ca3c9f722aa08d3d7ae41c42a8807; from 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6 before a97a9791e455bb0cd5e7a38b5abcb05523d4e21c; from 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6 before ff040562c10a540b8d851f7f4145fa112977f853; from 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6 before 6854476d9e1aeaaf05ebc98d610061c2075db07d; from 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6 before b7d08929178c16398278613df07ad65cf63cce9d; from 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6 before 5b7ae04969f822283a95c866967e42b4d75e0eef; from 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6 before 912c4b66bef713a20775cfbf3b5e9bd71525c716; from 3ab8227d3e7d1d2bf1829675d3197e3cb600e9f6 before 26e84445f02ce6b2fe5f3e0e28ff7add77f35e08; 5.4 (not affected: before 5.4; from 5.4.299 up to 5.4.*; from 5.10.243 up to 5.10.*; from 5.15.192 up to 5.15.*; from 6.1.151 up to 6.1.*; from 6.6.105 up to 6.6.*; from 6.12.46 up to 6.12.*; from 6.16.6 up to 6.16.*; from 6.17 up to *)
- linux linux_kernel: from 5.4 before 5.4.299; from 5.5 before 5.10.243; from 5.11 before 5.15.192; from 5.16 before 6.1.151; from 6.2 before 6.6.105; from 6.7 before 6.12.46; from 6.13 before 6.16.6; 6.17
- debian debian_linux: 11.0

## Every score

- Linux: CVSS:3.1 8.8 High `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <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> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html> (mailing-list, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html> (mailing-list, third-party-advisory)
- <https://cert-portal.siemens.com/productcert/html/ssa-089022.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-032379.html>

## Sources

- CVE List: [CVE-2025-39864](https://www.cve.org/CVERecord?id=CVE-2025-39864), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2025-39864](https://nvd.nist.gov/vuln/detail/CVE-2025-39864), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-39864 · Whole record: https://cve.day/CVE-2025-39864.json · Rebuilt by cve.day 2026-11-25T22:59:04.873Z
