{"id":"CVE-2026-139393","summary":"scsi: scsi_debug: Fix a locking bug in resp_write_same()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: scsi_debug: Fix a locking bug in resp_write_same()\n\nIf fetch_to_dev_buffer() fails in resp_write_same(), the function jumps\nto 'out' without releasing the data write lock acquired earlier via\nsdeb_data_write_lock(). Jump to 'unlock' instead so that\nsdeb_data_write_unlock() is called on the error path. This bug has been\ndiscovered by building the scsi_debug driver with Clang and modified\nlock context annotations. The modified lock context annotations are\navailable in patch \"scsi: scsi_debug: Improve lock context annotations\".","modified":"2026-12-01T21:00:16.107555154Z","published":"2026-11-30T13:34:20.539Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139393.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2f50ca3d46b4d5916874ba19612498c0a9c1f5f9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/662f4d7e7da5abea384c96d3de86e336014fa5b5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/85224decd4e075ca5263c8d6d84eb74483a7a644"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9fa387c4bea66d6f586fdadca438940268f079ce"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139393.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139393"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"84f3a3c01d70efba736bc42155cf32722067b327"},{"fixed":"9fa387c4bea66d6f586fdadca438940268f079ce"},{"fixed":"85224decd4e075ca5263c8d6d84eb74483a7a644"},{"fixed":"662f4d7e7da5abea384c96d3de86e336014fa5b5"},{"fixed":"2f50ca3d46b4d5916874ba19612498c0a9c1f5f9"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139393.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.11.0"},{"fixed":"6.12.119"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.65"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139393.json"}}],"schema_version":"1.9.2"}