7.8
HIGH CVSS 3.1
CVE-2025-39863
wifi: brcmfmac: fix use-after-free when rescheduling brcmf_btcoex_info work
Description

In the Linux kernel, the following vulnerability has been resolved: wifi: brcmfmac: fix use-after-free when rescheduling brcmf_btcoex_info work The brcmf_btcoex_detach() only shuts down the btcoex timer, if the flag timer_on is false. However, the brcmf_btcoex_timerfunc(), which runs as timer handler, sets timer_on to false. This creates critical race conditions: 1.If brcmf_btcoex_detach() is called while brcmf_btcoex_timerfunc() is executing, it may observe timer_on as false and skip the call to timer_shutdown_sync(). 2.The brcmf_btcoex_timerfunc() may then reschedule the brcmf_btcoex_info worker after the cancel_work_sync() has been executed, resulting in use-after-free bugs. The use-after-free bugs occur in two distinct scenarios, depending on the timing of when the brcmf_btcoex_info struct is freed relative to the execution of its worker thread. Scenario 1: Freed before the worker is scheduled The brcmf_btcoex_info is deallocated before the worker is scheduled. A race condition can occur when schedule_work(&bt_local->work) is called after the target memory has been freed. The sequence of events is detailed below: CPU0 | CPU1 brcmf_btcoex_detach | brcmf_btcoex_timerfunc | bt_local->timer_on = false; if (cfg->btcoex->timer_on) | ... | cancel_work_sync(); | ... | kfree(cfg->btcoex); // FREE | | schedule_work(&bt_local->work); // USE Scenario 2: Freed after the worker is scheduled The brcmf_btcoex_info is freed after the worker has been scheduled but before or during its execution. In this case, statements within the brcmf_btcoex_handler() — such as the container_of macro and subsequent dereferences of the brcmf_btcoex_info object will cause a use-after-free access. The following timeline illustrates this scenario: CPU0 | CPU1 brcmf_btcoex_detach | brcmf_btcoex_timerfunc | bt_local->timer_on = false; if (cfg->btcoex->timer_on) | ... | cancel_work_sync(); | ... | schedule_work(); // Reschedule | kfree(cfg->btcoex); // FREE | brcmf_btcoex_handler() // Worker /* | btci = container_of(....); // USE The kfree() above could | ... also occur at any point | btci-> // USE during the worker's execution| */ | To resolve the race conditions, drop the conditional check and call timer_shutdown_sync() directly. It can deactivate the timer reliably, regardless of its current state. Once stopped, the timer_on state is then set to false.

INFO

Published Date :

Sept. 19, 2025, 4:15 p.m.

Last Modified :

Oct. 19, 2026, 9:10 p.m.

Remotely Exploit :

No

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2025-39863 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 134c704f-9b21-4f2e-91b3-4a467353bcc0
CVSS 3.1 HIGH [email protected]
CVSS 3.1 HIGH 134c704f-9b21-4f2e-91b3-4a467353bcc0
CVSS 3.1 HIGH 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
Fix use-after-free by directly calling timer_shutdown_sync.
  • Call timer_shutdown_sync directly.
  • Ensure timer_on is set to false after stopping.
  • Update the brcmfmac driver.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2025-39863 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2025-39863 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2025-39863 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2025-39863 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Translated by [email protected]

    Oct. 19, 2026

    Action Type Old Value New Value
    Added Translation Title: Linux, Description: En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: wifi: brcmfmac: corrige uso después de liberación al reprogramar el trabajo de brcmf_btcoex_info La brcmf_btcoex_detach() solo apaga el temporizador btcoex, si el indicador timer_on es falso. Sin embargo, la brcmf_btcoex_timerfunc(), que se ejecuta como gestor de temporizador, establece timer_on en falso. Esto crea condiciones de carrera críticas: 1.Si se llama a brcmf_btcoex_detach() mientras brcmf_btcoex_timerfunc() se está ejecutando, puede observar timer_on como falso y omitir la llamada a timer_shutdown_sync(). 2.La brcmf_btcoex_timerfunc() puede entonces reprogramar el trabajador de brcmf_btcoex_info después de que se haya ejecutado cancel_work_sync(), resultando en errores de uso después de liberación. Los errores de uso después de liberación ocurren en dos escenarios distintos, dependiendo del momento en que la estructura brcmf_btcoex_info es liberada en relación con la ejecución de su hilo de trabajador. Escenario 1: Liberada antes de que el trabajador sea programado La brcmf_btcoex_info es desasignada antes de que el trabajador sea programado. Una condición de carrera puede ocurrir cuando se llama a schedule_work(&bt_local->work) después de que la memoria objetivo ha sido liberada. La secuencia de eventos se detalla a continuación: CPU0 | CPU1 brcmf_btcoex_detach | brcmf_btcoex_timerfunc | bt_local->timer_on = false; if (cfg->btcoex->timer_on) | ... | cancel_work_sync(); | ... | kfree(cfg->btcoex); // LIBERAR | | schedule_work(&bt_local->work); // USAR Escenario 2: Liberada después de que el trabajador es programado La brcmf_btcoex_info es liberada después de que el trabajador ha sido programado pero antes o durante su ejecución. En este caso, sentencias dentro del brcmf_btcoex_handler() — como la macro container_of y las desreferencias subsiguientes del objeto brcmf_btcoex_info causarán un acceso de uso después de liberación. La siguiente línea de tiempo ilustra este escenario: CPU0 | CPU1 brcmf_btcoex_detach | brcmf_btcoex_timerfunc | bt_local->timer_on = false; if (cfg->btcoex->timer_on) | ... | cancel_work_sync(); | ... | schedule_work(); // Reprogramar | kfree(cfg->btcoex); // LIBERAR | brcmf_btcoex_handler() // Trabajador /* | btci = container_of(....); // USAR El kfree() anterior también | ... podría ocurrir en cualquier | btci-> // USAR momento durante la ejecución | del trabajador | */ | Para resolver las condiciones de carrera, elimine la comprobación condicional y llame a timer_shutdown_sync() directamente. Puede desactivar el temporizador de forma fiable, independientemente de su estado actual. Una vez detenido, el estado timer_on se establece entonces en falso.
  • CVE Modified by 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e

    Oct. 15, 2026

    Action Type Old Value New Value
    Added Affected New affected value received. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2025/39xxx/CVE-2025-39863.json">CVE-2025-39863</a>
    Added Reference https://cert-portal.siemens.com/productcert/html/ssa-784472.html
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Oct. 15, 2026

    Action Type Old Value New Value
    Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    Added Reference https://git.kernel.org/stable/c/2f6fbc8e04ca1d1d5c560be694199f847229c625
    Added Reference https://git.kernel.org/stable/c/3e789f8475f6c857c88de5c5bf4b24b11a477dd7
    Added Reference https://git.kernel.org/stable/c/9cb83d4be0b9b697eae93d321e0da999f9cdfcfc
    Added Reference https://git.kernel.org/stable/c/ae58f70bde0433f27ef4b388ab50634736607bf6
    Added Reference https://git.kernel.org/stable/c/c75600e69e66a751cc046cd9c407b942f298d852
    Added Reference https://git.kernel.org/stable/c/f1150153c4e5940fe49ab51136343c5b4fe49d63
    Removed Reference https://git.kernel.org/stable/c/2f6fbc8e04ca1d1d5c560be694199f847229c625
    Removed Reference https://git.kernel.org/stable/c/3e789f8475f6c857c88de5c5bf4b24b11a477dd7
    Removed Reference https://git.kernel.org/stable/c/9cb83d4be0b9b697eae93d321e0da999f9cdfcfc
    Removed Reference https://git.kernel.org/stable/c/ae58f70bde0433f27ef4b388ab50634736607bf6
    Removed Reference https://git.kernel.org/stable/c/c75600e69e66a751cc046cd9c407b942f298d852
    Removed Reference https://git.kernel.org/stable/c/f1150153c4e5940fe49ab51136343c5b4fe49d63
    Removed Reference Type https://git.kernel.org/stable/c/2f6fbc8e04ca1d1d5c560be694199f847229c625 Types: Patch
    Removed Reference Type https://git.kernel.org/stable/c/3e789f8475f6c857c88de5c5bf4b24b11a477dd7 Types: Patch
    Removed Reference Type https://git.kernel.org/stable/c/9cb83d4be0b9b697eae93d321e0da999f9cdfcfc Types: Patch
    Removed Reference Type https://git.kernel.org/stable/c/f1150153c4e5940fe49ab51136343c5b4fe49d63 Types: Patch
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jun. 19, 2026

    Action Type Old Value New Value
    Added Reference https://git.kernel.org/stable/c/c75600e69e66a751cc046cd9c407b942f298d852
    Changed Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '61730d4dfffc2cc9d3a49fad87633008105c18ba', 'lessThan': 'ae58f70bde0433f27ef4b388ab50634736607bf6', 'versionType': 'git'}, {'status': 'affected', 'version': '61730d4dfffc2cc9d3a49fad87633008105c18ba', 'lessThan': 'f1150153c4e5940fe49ab51136343c5b4fe49d63', 'versionType': 'git'}, {'status': 'affected', 'version': '61730d4dfffc2cc9d3a49fad87633008105c18ba', 'lessThan': '3e789f8475f6c857c88de5c5bf4b24b11a477dd7', 'versionType': 'git'}, {'status': 'affected', 'version': '61730d4dfffc2cc9d3a49fad87633008105c18ba', 'lessThan': '2f6fbc8e04ca1d1d5c560be694199f847229c625', 'versionType': 'git'}, {'status': 'affected', 'version': '61730d4dfffc2cc9d3a49fad87633008105c18ba', 'lessThan': '9cb83d4be0b9b697eae93d321e0da999f9cdfcfc', 'versionType': 'git'}], 'programFiles': ['drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '3.10'}, {'status': 'unaffected', 'version': '0', 'lessThan': '3.10', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.1.167', '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': ['drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c'], 'defaultStatus': 'affected'}] [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '61730d4dfffc2cc9d3a49fad87633008105c18ba', 'lessThan': 'c75600e69e66a751cc046cd9c407b942f298d852', 'versionType': 'git'}, {'status': 'affected', 'version': '61730d4dfffc2cc9d3a49fad87633008105c18ba', 'lessThan': 'ae58f70bde0433f27ef4b388ab50634736607bf6', 'versionType': 'git'}, {'status': 'affected', 'version': '61730d4dfffc2cc9d3a49fad87633008105c18ba', 'lessThan': 'f1150153c4e5940fe49ab51136343c5b4fe49d63', 'versionType': 'git'}, {'status': 'affected', 'version': '61730d4dfffc2cc9d3a49fad87633008105c18ba', 'lessThan': '3e789f8475f6c857c88de5c5bf4b24b11a477dd7', 'versionType': 'git'}, {'status': 'affected', 'version': '61730d4dfffc2cc9d3a49fad87633008105c18ba', 'lessThan': '2f6fbc8e04ca1d1d5c560be694199f847229c625', 'versionType': 'git'}, {'status': 'affected', 'version': '61730d4dfffc2cc9d3a49fad87633008105c18ba', 'lessThan': '9cb83d4be0b9b697eae93d321e0da999f9cdfcfc', 'versionType': 'git'}], 'programFiles': ['drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '3.10'}, {'status': 'unaffected', 'version': '0', 'lessThan': '3.10', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '5.15.210', 'versionType': 'semver', 'lessThanOrEqual': '5.15.*'}, {'status': 'unaffected', 'version': '6.1.167', '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': ['drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c'], 'defaultStatus': 'affected'}]
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Jun. 17, 2026

    Action Type Old Value New Value
    Added SSVC {'id': 'CVE-2025-39863', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-01-14T19:23:53.735650Z'}
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jun. 17, 2026

    Action Type Old Value New Value
    Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '61730d4dfffc2cc9d3a49fad87633008105c18ba', 'lessThan': 'ae58f70bde0433f27ef4b388ab50634736607bf6', 'versionType': 'git'}, {'status': 'affected', 'version': '61730d4dfffc2cc9d3a49fad87633008105c18ba', 'lessThan': 'f1150153c4e5940fe49ab51136343c5b4fe49d63', 'versionType': 'git'}, {'status': 'affected', 'version': '61730d4dfffc2cc9d3a49fad87633008105c18ba', 'lessThan': '3e789f8475f6c857c88de5c5bf4b24b11a477dd7', 'versionType': 'git'}, {'status': 'affected', 'version': '61730d4dfffc2cc9d3a49fad87633008105c18ba', 'lessThan': '2f6fbc8e04ca1d1d5c560be694199f847229c625', 'versionType': 'git'}, {'status': 'affected', 'version': '61730d4dfffc2cc9d3a49fad87633008105c18ba', 'lessThan': '9cb83d4be0b9b697eae93d321e0da999f9cdfcfc', 'versionType': 'git'}], 'programFiles': ['drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '3.10'}, {'status': 'unaffected', 'version': '0', 'lessThan': '3.10', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.1.167', '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': ['drivers/net/wireless/broadcom/brcm80211/brcmfmac/btcoex.c'], 'defaultStatus': 'affected'}]
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Mar. 25, 2026

    Action Type Old Value New Value
    Added Reference https://git.kernel.org/stable/c/ae58f70bde0433f27ef4b388ab50634736607bf6
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Jan. 14, 2026

    Action Type Old Value New Value
    Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    Added CWE CWE-416
  • Initial Analysis by [email protected]

    Dec. 12, 2025

    Action Type Old Value New Value
    Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    Added CWE CWE-416
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:6.17:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.17:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.17:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.17:rc4:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.13 up to (excluding) 6.16.6 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.12.46 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 3.10 up to (excluding) 6.6.105
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/2f6fbc8e04ca1d1d5c560be694199f847229c625 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/3e789f8475f6c857c88de5c5bf4b24b11a477dd7 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/9cb83d4be0b9b697eae93d321e0da999f9cdfcfc Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/f1150153c4e5940fe49ab51136343c5b4fe49d63 Types: Patch
  • New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Sep. 19, 2025

    Action Type Old Value New Value
    Added Description In the Linux kernel, the following vulnerability has been resolved: wifi: brcmfmac: fix use-after-free when rescheduling brcmf_btcoex_info work The brcmf_btcoex_detach() only shuts down the btcoex timer, if the flag timer_on is false. However, the brcmf_btcoex_timerfunc(), which runs as timer handler, sets timer_on to false. This creates critical race conditions: 1.If brcmf_btcoex_detach() is called while brcmf_btcoex_timerfunc() is executing, it may observe timer_on as false and skip the call to timer_shutdown_sync(). 2.The brcmf_btcoex_timerfunc() may then reschedule the brcmf_btcoex_info worker after the cancel_work_sync() has been executed, resulting in use-after-free bugs. The use-after-free bugs occur in two distinct scenarios, depending on the timing of when the brcmf_btcoex_info struct is freed relative to the execution of its worker thread. Scenario 1: Freed before the worker is scheduled The brcmf_btcoex_info is deallocated before the worker is scheduled. A race condition can occur when schedule_work(&bt_local->work) is called after the target memory has been freed. The sequence of events is detailed below: CPU0 | CPU1 brcmf_btcoex_detach | brcmf_btcoex_timerfunc | bt_local->timer_on = false; if (cfg->btcoex->timer_on) | ... | cancel_work_sync(); | ... | kfree(cfg->btcoex); // FREE | | schedule_work(&bt_local->work); // USE Scenario 2: Freed after the worker is scheduled The brcmf_btcoex_info is freed after the worker has been scheduled but before or during its execution. In this case, statements within the brcmf_btcoex_handler() — such as the container_of macro and subsequent dereferences of the brcmf_btcoex_info object will cause a use-after-free access. The following timeline illustrates this scenario: CPU0 | CPU1 brcmf_btcoex_detach | brcmf_btcoex_timerfunc | bt_local->timer_on = false; if (cfg->btcoex->timer_on) | ... | cancel_work_sync(); | ... | schedule_work(); // Reschedule | kfree(cfg->btcoex); // FREE | brcmf_btcoex_handler() // Worker /* | btci = container_of(....); // USE The kfree() above could | ... also occur at any point | btci-> // USE during the worker's execution| */ | To resolve the race conditions, drop the conditional check and call timer_shutdown_sync() directly. It can deactivate the timer reliably, regardless of its current state. Once stopped, the timer_on state is then set to false.
    Added Reference https://git.kernel.org/stable/c/2f6fbc8e04ca1d1d5c560be694199f847229c625
    Added Reference https://git.kernel.org/stable/c/3e789f8475f6c857c88de5c5bf4b24b11a477dd7
    Added Reference https://git.kernel.org/stable/c/9cb83d4be0b9b697eae93d321e0da999f9cdfcfc
    Added Reference https://git.kernel.org/stable/c/f1150153c4e5940fe49ab51136343c5b4fe49d63
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.