scsi: scsi_debug: Fix a locking bug in resp_write_same()
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
scsi: scsi_debug: Fix a locking bug in resp_write_same()
If fetch_to_dev_buffer() fails in resp_write_same(), the function jumps to 'out' without releasing the data write lock acquired earlier via sdeb_data_write_lock(). Jump to 'unlock' instead so that sdeb_data_write_unlock() is called on the error path. This bug has been discovered by building the scsi_debug driver with Clang and modified lock context annotations. The modified lock context annotations are available in patch "scsi: scsi_debug: Improve lock context annotations".
| Product | Versions |
|---|---|
| Linux Linux | 84f3a3c01d70efba736bc42155cf32722067b327 to before 9fa387c4bea66d6f586fdadca438940268f079ce Affected84f3a3c01d70efba736bc42155cf32722067b327 to before 85224decd4e075ca5263c8d6d84eb74483a7a644 Affected84f3a3c01d70efba736bc42155cf32722067b327 to before 662f4d7e7da5abea384c96d3de86e336014fa5b5 Affected84f3a3c01d70efba736bc42155cf32722067b327 to before 2f50ca3d46b4d5916874ba19612498c0a9c1f5f9 Affected |
| Linux Linux | 6.11 Affectedbefore 6.11 Not Affected6.12.119 through 6.12.* Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.