Descrizione
In the Linux kernel, the following vulnerability has been resolved: wifi: mwifiex: fix use-after-free in mwifiex_adapter_cleanup() The mwifiex_adapter_cleanup() function uses timer_delete() (non-synchronous) for the wakeup_timer before the adapter structure is freed. This is incorrect because timer_delete() does not wait for any running timer callback to complete. If the wakeup_timer callback (wakeup_timer_fn) is executing when mwifiex_adapter_cleanup() is called, the callback will continue to access adapter fields (adapter->hw_status, adapter->if_ops.card_reset, etc.) which may be freed by mwifiex_free_adapter() called later in the mwifiex_remove_card() path. Use timer_delete_sync() instead to ensure any running timer callback has completed before returning.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.8.
Versioni da aggiornare
- Linux Linux Kernel: vulnerabili le versioni dalla
4.0precedenti alla5.10.259→ aggiornare alla5.10.259o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
5.11precedenti alla5.15.210→ aggiornare alla5.15.210o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
5.16precedenti alla6.1.176→ aggiornare alla6.1.176o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.2precedenti alla6.6.140→ aggiornare alla6.6.140o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.7precedenti alla6.12.86→ aggiornare alla6.12.86o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.13precedenti alla6.18.27→ aggiornare alla6.18.27o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.19precedenti alla7.0.4→ aggiornare alla7.0.4o successiva.
Patch e advisory
- Patch: git.kernel.org/stable/c/030abbae49cf9fd1fba7aa08e15…
- Patch: git.kernel.org/stable/c/11869ce402d95519d49b25a2a97…
- Patch: git.kernel.org/stable/c/1958a92599b2653d730ccb6f568…
- Patch: git.kernel.org/stable/c/4e179a60a60c0a5aea245e8e677…
- Patch: git.kernel.org/stable/c/63fe3389b3e092d6c0eeea9fc03…
- Patch: git.kernel.org/stable/c/a88f5391dc68f78cae5eb6a8cd3…
- Patch: git.kernel.org/stable/c/ae5e95d4157481693be2317e3ff…
- Patch: git.kernel.org/stable/c/c3508895450cca4aeaf5dbadbb5…
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Ridurre la superficie esposta (disattivare servizi e funzionalità inutilizzati), mantenere attive le protezioni del sistema operativo (ASLR, DEP/NX) e segmentare la rete.
Verifica
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| Linux | Linux Kernel | ≥ 4.0 < 5.10.259 | 5.10.259 |
| Linux | Linux Kernel | ≥ 5.11 < 5.15.210 | 5.15.210 |
| Linux | Linux Kernel | ≥ 5.16 < 6.1.176 | 6.1.176 |
| Linux | Linux Kernel | ≥ 6.2 < 6.6.140 | 6.6.140 |
| Linux | Linux Kernel | ≥ 6.7 < 6.12.86 | 6.12.86 |
| Linux | Linux Kernel | ≥ 6.13 < 6.18.27 | 6.18.27 |
| Linux | Linux Kernel | ≥ 6.19 < 7.0.4 | 7.0.4 |
Riferimenti
- Patchhttps://git.kernel.org/stable/c/030abbae49cf9fd1fba7aa08e15ec81efbeb78cf
- Patchhttps://git.kernel.org/stable/c/11869ce402d95519d49b25a2a97741f68d69d103
- Patchhttps://git.kernel.org/stable/c/1958a92599b2653d730ccb6f5685fc3fbed21812
- Patchhttps://git.kernel.org/stable/c/4e179a60a60c0a5aea245e8e67768343c0f070b8
- Patchhttps://git.kernel.org/stable/c/63fe3389b3e092d6c0eeea9fc0318e7918b16618
- Patchhttps://git.kernel.org/stable/c/a88f5391dc68f78cae5eb6a8cd341cafee795d3d
- Patchhttps://git.kernel.org/stable/c/ae5e95d4157481693be2317e3ffcd84e36010cbb
- Patchhttps://git.kernel.org/stable/c/c3508895450cca4aeaf5dbadbb5e582363005264
- Riferimentohttps://cert-portal.siemens.com/productcert/html/ssa-784472.html