CVE-2026-143387: scsi: scsi_debug: Drain target cleanup before module exit
In the Linux kernel, the following vulnerability has been resolved:
scsi: scsidebug: Drain target cleanup before module exit
Target destruction queues cleanup in an exclusive async domain. The module loader's asyncsynchronizefull() does not wait for exclusive domains. Wait for target cleanup after removing the hosts and before removing the debugfs root and returning from module exit.
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.120 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7 - Operational
Drain target cleanup after removing the hosts and before removing the debugfs root and returning from module exit.
Event History
Frequently Asked Questions
Which systems are potentially exposed?
Systems using the Linux kernel scsi_debug module may be affected when targets are destroyed and the module is subsequently unloaded. The provided information does not identify affected kernel versions or indicate impact on systems that do not use scsi_debug.
What condition leads to the cleanup race?
Target destruction schedules cleanup in an exclusive asynchronous domain. Module exit can proceed after host removal without waiting for that exclusive-domain cleanup to finish, potentially removing the debugfs root and returning from module exit too early.
What can be done if the fix cannot be applied immediately?
Avoid unloading the scsi_debug module while target cleanup may still be pending. The resolved change explicitly waits for target cleanup after removing hosts and before removing the debugfs root or completing module exit.