Descrizione
In the Linux kernel, the following vulnerability has been resolved: mmc: hsq: Fix use-after-free in retry work mmc_hsq_pump_requests() queues retry_work when request_atomic() returns -EBUSY; today sdhci-sprd is the only consumer that implements request_atomic(). The work is embedded in a devm-allocated mmc_hsq, but is never cancelled during driver removal. Work still pending at unbind can therefore run after the devm allocation has been released and dereference hsq->mmc and hsq->mrq. Use devm_work_autocancel() to cancel and drain retry_work before the devm allocation is released. By the time devres cleanup begins, mmc_remove_host() has already stopped the host, so no new requests can arm the work. This issue was found by an in-house static analysis tool.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria.
Versioni da aggiornare
Il record non riporta ancora i prodotti e le versioni corrette (analisi NVD in corso). Consultare l'advisory del vendor nei riferimenti.
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.
Riferimenti
- Riferimentohttps://git.kernel.org/stable/c/45341b341642c377192c95e4d48e0a859cf85f42
- Riferimentohttps://git.kernel.org/stable/c/5d132990475f02cfa1debe03d50b479432864ebd
- Riferimentohttps://git.kernel.org/stable/c/8439bf262ce3267bcfee29d3c61605f1731a2271
- Riferimentohttps://git.kernel.org/stable/c/a59591ed641f1a5610019d99ff657d33c25ad426
- Riferimentohttps://git.kernel.org/stable/c/c50d6515bffb148c2c12be6d587ec201dfab4c34
- Riferimentohttps://git.kernel.org/stable/c/df2eb59fd9eb33663dc1053f5a4ed851e0aa1f67