CVE-2024-26897
JSON

4.7medium

wifi: ath9k: delay all of ath9k_wmi_event_tasklet() until init is complete

Severity
4.7medium CVSS:3.1 by NVD
Exploit likelihood
0.19% (higher than 8% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: wifi: ath9k: delay all of ath9k_wmi_event_tasklet() until init is complete The ath9k_wmi_event_tasklet() used in ath9k_htc assumes that all the data structures have been fully initialised by the time it runs. However, because of the order in which things are initialised, this is not guaranteed to be the case, because the device is exposed to the USB subsystem before the ath9k driver initialisation is completed. We already committed a partial fix for this in commit: 8b3046abc99e ("ath9k_htc: fix NULL pointer dereference at ath9k_htc_tx_get_packet()") However, that commit only aborted the WMI_TXSTATUS_EVENTID command in the event tasklet, pairing it with an "initialisation complete" bit in the TX struct. It seems syzbot managed to trigger the race for one of the other commands as well, so let's just move the existing synchronisation bit to cover the whole tasklet (setting it at the end of ath9k_htc_probe_device() instead of inside ath9k_tx_init()).

Affected

Product or packageVersionsReported by
Linux Linuxfrom 78c8397132dd4735ac6a7b5a651302f0b9f264ad before 1bc5461a21c56a36e2a7d81e152b90ce019a3905, from 735aefae7b68025cd04c482a940c0f6fc6797a63 before f8ff4b4df71e87f609be0cc37d92e918107f9b90, from 8b3046abc99eefe11438090bcc4ec3a3994b55d0 before 74d0639261dd795dce958d1b14815bdcbb48a715, from 8b3046abc99eefe11438090bcc4ec3a3994b55d0 before a015fbf698c8957aa5fbeefc5c59dd2cf3107298, from 8b3046abc99eefe11438090bcc4ec3a3994b55d0 before ac90e22e735bac44f74b5161fb096fbeb0ff8bc2, from 8b3046abc99eefe11438090bcc4ec3a3994b55d0 before 4afa0246656d5680c8a4c3fb37ba6570c4ab819b, from 8b3046abc99eefe11438090bcc4ec3a3994b55d0 before 24355fcb0d4cbcb6ddda262596558e8cfba70f11, 7bbc1a50a7963f14048f0e54b0b73159f86d4ea3 and 4 more
Not affected: before 5.17, from 5.10.214 up to 5.10.*, from 5.15.153 up to 5.15.*, from 6.1.83 up to 6.1.*, from 6.6.23 up to 6.6.*, from 6.7.11 up to 6.7.*
CVE List
linux linux_kernelfrom 5.10.136 before 5.10.214, from 5.15.17 before 5.15.153, from 5.16.3 before 6.1.83, from 6.2 before 6.6.23, from 6.7 before 6.7.11, from 6.8 before 6.8.2NVD
debian debian_linux10.0NVD

Classification

CWE-362

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: wifi: ath9k: delay all of ath9k_wmi_event_tasklet() until init is complete The ath9k_wmi_event_tasklet() used in ath9k_htc assumes that all the data structures have been fully initialised by the time it runs. However, because of the order in which things are initialised, this is not guaranteed to be the case, because the device is exposed to the USB subsystem before the ath9k driver initialisation is completed. We already committed a partial fix for this in commit: 8b3046abc99e ("ath9k_htc: fix NULL pointer dereference at ath9k_htc_tx_get_packet()") However, that commit only aborted the WMI_TXSTATUS_EVENTID command in the event tasklet, pairing it with an "initialisation complete" bit in the TX struct. It seems syzbot managed to trigger the race for one of the other commands as well, so let's just move the existing synchronisation bit to cover the whole tasklet (setting it at the end of ath9k_htc_probe_device() instead of inside ath9k_tx_init()).

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: wifi: ath9k: retrasa todo ath9k_wmi_event_tasklet() hasta que se complete el inicio. El ath9k_wmi_event_tasklet() usado en ath9k_htc supone que todas las estructuras de datos se han inicializado por completo en el momento de su ejecución. Sin embargo, debido al orden en que se inicializan las cosas, no se garantiza que este sea el caso, porque el dispositivo queda expuesto al subsistema USB antes de que se complete la inicialización del controlador ath9k. Ya cometimos una solución parcial para esto en la confirmación: 8b3046abc99e ("ath9k_htc: corrige la desreferencia del puntero NULL en ath9k_htc_tx_get_packet()") Sin embargo, esa confirmación solo abortó el comando WMI_TXSTATUS_EVENTID en el tasklet de eventos, emparejándolo con un bit de "inicialización completa" en la estructura TX. Parece que syzbot también logró activar la carrera para uno de los otros comandos, así que simplemente movamos el bit de sincronización existente para cubrir todo el tasklet (configurándolo al final de ath9k_htc_probe_device() en lugar de dentro de ath9k_tx_init()).

References

Sources

SourceRecordLicence
CVE ListCVE-2024-26897 changed 2026-10-15CVE Terms of Use
NVDCVE-2024-26897 changed 2026-10-15Public domain