Descrizione
In the Linux kernel, the following vulnerability has been resolved: ALSA: caiaq: fix out-of-bounds read in the Traktor Kontrol S4 input parser snd_usb_caiaq_tks4_dispatch() decodes the Traktor Kontrol S4 input stream in fixed 16-byte (TKS4_MSGBLOCK_SIZE) message blocks. On every iteration it advances buf and subtracts the block size while looping on "while (len)". len is urb->actual_length. That value is supplied by the device and is not guaranteed to be a multiple of 16. When a final short block leaves len between 1 and 15, the loop runs once more, reads up to buf[15], and then does "len -= TKS4_MSGBLOCK_SIZE". As len is unsigned this underflows to a huge value. The loop then keeps iterating and walking buf far past the end of the 512-byte ep4_in_buf, reading out of bounds until a bogus block id happens to be hit. Iterate only while a full message block is available. This stops the unsigned underflow and silently drops any trailing partial block, which carries no complete control value anyway. The sibling endpoint-4 parsers are not affected. The Traktor Kontrol X1 and Maschine arms in snd_usb_caiaq_ep4_reply_dispatch() floor urb->actual_length before dispatching.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.1.
Versioni da aggiornare
- Linux Linux Kernel: vulnerabili le versioni dalla
2.6.37precedenti alla5.10.261→ aggiornare alla5.10.261o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
5.11precedenti alla5.15.212→ aggiornare alla5.15.212o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
5.16precedenti alla6.1.178→ aggiornare alla6.1.178o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.2precedenti alla6.6.145→ aggiornare alla6.6.145o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.7precedenti alla6.12.96→ aggiornare alla6.12.96o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.13precedenti alla6.18.39→ aggiornare alla6.18.39o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.19precedenti alla7.1.4→ aggiornare alla7.1.4o successiva.
Patch e advisory
- Patch: git.kernel.org/stable/c/05df59b9a61f7ca66548df079d3…
- Patch: git.kernel.org/stable/c/0680413f2f10aab43878dd3db71…
- Patch: git.kernel.org/stable/c/3cad86197c7bf8b45bb1d8adc10…
- Patch: git.kernel.org/stable/c/70d6d4cfa4ad09688aed2ec8a0c…
- Patch: git.kernel.org/stable/c/884f575cc6acb136eb4a161d925…
- Patch: git.kernel.org/stable/c/a5fd3122283bf75c04f6414bf61…
- Patch: git.kernel.org/stable/c/de5f9edc705497b1b2c6b173b22…
- Patch: git.kernel.org/stable/c/f7f3f9fd81e7adbaa12c2e62ee0…
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 | ≥ 2.6.37 < 5.10.261 | 5.10.261 |
| Linux | Linux Kernel | ≥ 5.11 < 5.15.212 | 5.15.212 |
| Linux | Linux Kernel | ≥ 5.16 < 6.1.178 | 6.1.178 |
| Linux | Linux Kernel | ≥ 6.2 < 6.6.145 | 6.6.145 |
| Linux | Linux Kernel | ≥ 6.7 < 6.12.96 | 6.12.96 |
| Linux | Linux Kernel | ≥ 6.13 < 6.18.39 | 6.18.39 |
| Linux | Linux Kernel | ≥ 6.19 < 7.1.4 | 7.1.4 |
Riferimenti
- Patchhttps://git.kernel.org/stable/c/05df59b9a61f7ca66548df079d306c41da23845d
- Patchhttps://git.kernel.org/stable/c/0680413f2f10aab43878dd3db711a6a9e45bab7c
- Patchhttps://git.kernel.org/stable/c/3cad86197c7bf8b45bb1d8adc1099d0913e80469
- Patchhttps://git.kernel.org/stable/c/70d6d4cfa4ad09688aed2ec8a0cfa72c31f60334
- Patchhttps://git.kernel.org/stable/c/884f575cc6acb136eb4a161d925147f85b59c27e
- Patchhttps://git.kernel.org/stable/c/a5fd3122283bf75c04f6414bf610100beb0565b0
- Patchhttps://git.kernel.org/stable/c/de5f9edc705497b1b2c6b173b22f283486d2fd91
- Patchhttps://git.kernel.org/stable/c/f7f3f9fd81e7adbaa12c2e62ee07f0e094a543fd