Descrizione
In the Linux kernel, the following vulnerability has been resolved: net: qrtr: Drop the MHI auto_queue feature for IPCR DL channels MHI stack offers the 'auto_queue' feature, which allows the MHI stack to auto queue the buffers for the RX path (DL channel). Though this feature simplifies the client driver design, it introduces race between the client drivers and the MHI stack. For instance, with auto_queue, the 'dl_callback' for the DL channel may get called before the client driver is fully probed. This means, by the time the dl_callback gets called, the client driver's structures might not be initialized, leading to NULL ptr dereference. Currently, the drivers have to workaround this issue by initializing the internal structures before calling mhi_prepare_for_transfer_autoqueue(). But even so, there is a chance that the client driver's internal code path may call the MHI queue APIs before mhi_prepare_for_transfer_autoqueue() is called, leading to similar NULL ptr dereference. This issue has been reported on the Qcom X1E80100 CRD machines affecting boot. So to properly fix all these races, drop the MHI 'auto_queue' feature altogether and let the client driver (QRTR) manage the RX buffers manually. In the QRTR driver, queue the RX buffers based on the ring length during probe and recycle the buffers in 'dl_callback' once they are consumed. This also warrants removing the setting of 'auto_queue' flag from controller drivers. Currently, this 'auto_queue' feature is only enabled for IPCR DL channel. So only the QRTR client driver requires the modification.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 5.5.
Versioni da aggiornare
- Linux Linux Kernel: vulnerabili le versioni dalla
5.15.63precedenti alla5.16→ aggiornare alla5.16o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
5.17precedenti alla6.18.17→ aggiornare alla6.18.17o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.19precedenti alla6.19.6→ aggiornare alla6.19.6o successiva.
Patch e advisory
- Patch: git.kernel.org/stable/c/51731792a25cb312ca94cdccfa1…
- Patch: git.kernel.org/stable/c/7bdff9b9b0c65ac7105416fe3a4…
- Patch: git.kernel.org/stable/c/8c464e00e0754e016816b1860fa…
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 | ≥ 5.15.63 < 5.16 | 5.16 |
| Linux | Linux Kernel | ≥ 5.17 < 6.18.17 | 6.18.17 |
| Linux | Linux Kernel | ≥ 6.19 < 6.19.6 | 6.19.6 |
Riferimenti
- Patchhttps://git.kernel.org/stable/c/51731792a25cb312ca94cdccfa139eb46de1b2ef
- Patchhttps://git.kernel.org/stable/c/7bdff9b9b0c65ac7105416fe3a40686832515e20
- Patchhttps://git.kernel.org/stable/c/8c464e00e0754e016816b1860fa9592dcad80eb2
- Riferimentohttps://git.kernel.org/stable/c/8e130ff078892fa5a6bf272ced7565af58d98a85
- Riferimentohttps://git.kernel.org/stable/c/ab0bdaf7a7f4f83b947193563f2a483ab87f72db
- Riferimentohttps://git.kernel.org/stable/c/b7874c74bcc224fd586679e51b9ded65f66edc2a