scsi: scsi_debug: Take the zone metadata lock before the data lock
- CVE-2026-143446
- EUVD-2026-145075
Summary
In the Linux kernel's scsi_debug SCSI test driver, the resp_comp_write() routine took the data lock before the zone metadata lock, while every other command that needs both locks takes the metadata lock first. A COMPARE AND WRITE command and another write to the same store could therefore deadlock each other. The fix takes the locks in the same consistent order used elsewhere. The advisory also corrects a comment stating that the provisioning map is covered by the data lock, when it is actually covered by the metadata lock. The record gives no CVSS score and does not list it as known exploited.
AI summary · verify against the vendor advisory
Description
In the Linux kernel, the following vulnerability has been resolved: scsi: scsi_debug: Take the zone metadata lock before the data lock resp_comp_write() takes the data lock and then the zone metadata lock, while every other command that takes both takes the metadata lock first and reaches the data lock through do_device_access(). A COMPARE AND WRITE and any other write to the same store can therefore deadlock each other. Take the locks in the same order as everywhere else. Correct the comment above map_region() while here: the provisioning map is covered by the metadata lock rather than the data lock, which is why resp_unmap() takes only the metadata lock.
Text from the CVE.org record.
Recommendation
No source states a fixed version. Check the vendor advisory.
Affected
Linux
Affected versions Fixed in 6.11 none stated before 6.11: not affected none stated from 6.12.119 up to 6.12.*: not affected none stated from 6.18.65 up to 6.18.*: not affected none stated from 7.3.6 up to 7.3.*: not affected none stated from 7.4-rc1 onwards: not affected none stated
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.