CVE-2025-68324
Gravedad:
Pendiente de análisis
Tipo:
No Disponible / Otro tipo
Fecha de publicación:
18/12/2025
Última modificación:
18/12/2025
Descripción
*** Pendiente de traducción *** In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
scsi: imm: Fix use-after-free bug caused by unfinished delayed work<br />
<br />
The delayed work item &#39;imm_tq&#39; is initialized in imm_attach() and<br />
scheduled via imm_queuecommand() for processing SCSI commands. When the<br />
IMM parallel port SCSI host adapter is detached through imm_detach(),<br />
the imm_struct device instance is deallocated.<br />
<br />
However, the delayed work might still be pending or executing<br />
when imm_detach() is called, leading to use-after-free bugs<br />
when the work function imm_interrupt() accesses the already<br />
freed imm_struct memory.<br />
<br />
The race condition can occur as follows:<br />
<br />
CPU 0(detach thread) | CPU 1<br />
| imm_queuecommand()<br />
| imm_queuecommand_lck()<br />
imm_detach() | schedule_delayed_work()<br />
kfree(dev) //FREE | imm_interrupt()<br />
| dev = container_of(...) //USE<br />
dev-> //USE<br />
<br />
Add disable_delayed_work_sync() in imm_detach() to guarantee proper<br />
cancellation of the delayed work item before imm_struct is deallocated.



