Descrizione
In the Linux kernel, the following vulnerability has been resolved: ALSA: hwdep: Serialize DSP load requests The check of the loaded DSP indices and the call of the driver's dsp_load callback in snd_hwdep_dsp_load() are not serialized. A hwdep file descriptor can be shared among threads, or inherited across fork, so two SNDRV_HWDEP_IOCTL_DSP_LOAD requests for the same index can both observe the index as unloaded and enter the driver's callback concurrently, even though the device itself is opened exclusively. This breaks the assumption behind hw->dsp_loaded that a firmware index is loaded only once. For example, snd-usb-usx2y hits WARN_ON(usx2y->as04.buffer) in usx2y_async_seq04_init() and may allocate the US-428 sequence URBs twice. Serialize the check, the callback invocation and the bookkeeping with a per-hwdep mutex, so that the second request returns -EBUSY.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.8, EPSS 0.2% (percentile 8).
Versioni da aggiornare
- Linux Linux: versione corretta
6.12.118(o successiva). - Linux Linux: versione corretta
6.18.64(o successiva). - Linux Linux: versione corretta
7.3.5(o successiva). - Linux Linux: versione corretta
7.4-rc2(o successiva). - Linux Linux: vulnerabile la versione
2.6.12→ installare l'ultima release supportata dal vendor.
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Ridurre l'esposizione del componente vulnerabile (segmentazione, accesso solo da reti fidate) finché la patch non è applicata.
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 | — | 6.12.118 |
| Linux | Linux | — | 6.18.64 |
| Linux | Linux | — | 7.3.5 |
| Linux | Linux | — | 7.4-rc2 |
| Linux | Linux | 2.6.12 | — |
Riferimenti
- Riferimentohttps://git.kernel.org/stable/c/0e8365c7a4c5202f6b1e802a377d798db2b0e0ab
- Riferimentohttps://git.kernel.org/stable/c/1b94ca29b1edbbdb357c2c8a9163d1d1755e4ad2
- Riferimentohttps://git.kernel.org/stable/c/200bda52a9fd604e13c57d3a548639c13bdfb19c
- Riferimentohttps://git.kernel.org/stable/c/204f368204a1951da349ba68c82f99c464347dd7
- Riferimentohttps://git.kernel.org/stable/c/3634a1beb0395f02807d41a2edf4288732d3f90e
- Riferimentohttps://git.kernel.org/stable/c/8fb646220d48322311e135b2508fb9569fbe1d28
- Riferimentohttps://git.kernel.org/stable/c/aee83c204f80d56b4d55f53acdb8594308ddcd4a
- Riferimentohttps://git.kernel.org/stable/c/ef2aebb0543a20d1ee42ac95483eb54fc8457e88