Descrizione
In the Linux kernel, the following vulnerability has been resolved: svcrdma: Clear sc_cm_id when ADDR_CHANGE replacement fails When svc_rdma_listen_handler() handles RDMA_CM_EVENT_ADDR_CHANGE, it creates a replacement listener cm_id and returns 1, telling the CM core to destroy the old one. If the replacement allocation fails, sc_cm_id still points at the old cm_id that the CM core is about to destroy. Any subsequent dereference of sc_cm_id -- such as svc_rdma_detach()'s rdma_disconnect() call -- is a use-after-free. NULL sc_cm_id on the failure path and guard svc_rdma_detach()'s rdma_disconnect() call against NULL so that the listener can be torn down safely when the server shuts down.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 8.8.
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/01500306e1d50de7ca7a2cdcdfa28ac0523eb747
- Riferimentohttps://git.kernel.org/stable/c/2a68aeb2de8ad0fef9c50e73a50622a35c6af1a8
- Riferimentohttps://git.kernel.org/stable/c/5e6bd7df5d1910b15a0101005f556198226ee660
- Riferimentohttps://git.kernel.org/stable/c/65f0f82f20334e76acaf29087a59af7b3b9699ed
- Riferimentohttps://git.kernel.org/stable/c/673e358ab7c11f8cec223c6a36a793056a67facd
- Riferimentohttps://git.kernel.org/stable/c/8068226ebdbbca6e8f1f7762021a9ff9ab61fad8