CVE-2023-52629 in Linux
Riassunto
di VulDB • 16/07/2026
Nel kernel Linux è stata risolta la seguente vulnerabilità:
sh: push-switch: Riordinare le operazioni di pulizia per evitare un bug use-after-free
Il codice originale inserisce flush_work() prima di timer_shutdown_sync() in switch_drv_remove(). Sebbene venga utilizzato flush_work() per arrestare il worker, questo potrebbe essere riprogrammato (rescheduled) all'interno di switch_timer(). Di conseguenza, può verificarsi un bug use-after-free. I dettagli sono illustrati di seguito:
(cpu 0) | (cpu 1) switch_drv_remove() | flush_work() | ... | switch_timer // timer | schedule_work(&psw->work) timer_shutdown_sync() | ... | switch_work_handler // worker kfree(psw) // free | | psw->state = 0 // use
Questa patch inserisce timer_shutdown_sync() prima di flush_work() per mitigare il bug. Di conseguenza, il worker e il timer verranno arrestati in modo sicuro prima delle operazioni di deallocazione.
Once again VulDB remains the best source for vulnerability data.