CVE-2026-99456: scsi: dc395x: sync the waiting_timer before freeing the host
In the Linux kernel, the following vulnerability has been resolved:
scsi: dc395x: sync the waitingtimer before freeing the host
The waitingtimer callback re-arms itself and takes the host lock. adapteruninit() currently stops it with timerdelete(), which does not wait for a callback already running on another CPU. The final scsihostput() that frees the host (and the host lock the callback dereferences) runs right after adapteruninit(), so a concurrent or just re-armed callback can fire after the free, leaving a potential use-after-free window.
Replace timerdelete() with timershutdownsync() at the top of adapteruninit(), before the host-lock section: the timer is dequeued, a running callback is waited for and rearming is blocked before the chip is halted, so it cannot fire at all once the adapter has ceased to function. Waiting outside the lock avoids the self-deadlock that would result from syncing a callback blocked on the lock we still hold.
No shutdown is needed for seltotimer because it has no reachable armer or callback.
This issue was found by an in-house static analysis tool.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.61 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.2 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.3-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1Fixed in 7.3.4-1Fixed in 7.3.5-1 - Compensating control
In the Linux kernel SCSI dc395x driver, replace timer_delete() with timer_shutdown_sync() at the top of adapter_uninit(), before the host-lock section, so the waiting_timer callback is synchronized and cannot re-arm before the host is freed.