{"id":"CVE-2026-139393","aliases":["CVE-2026-139393"],"related":[],"kind":"vulnerability","state":"published","title":"scsi: scsi_debug: Fix a locking bug in resp_write_same()","summary":"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\".","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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\".","source":"cvelist"}],"published":"2026-11-30T13:34:20.539Z","modified":"2026-11-30T14:19:07.397Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"84f3a3c01d70efba736bc42155cf32722067b327","fixed":"9fa387c4bea66d6f586fdadca438940268f079ce","status":"affected"},{"type":"git","introduced":"84f3a3c01d70efba736bc42155cf32722067b327","fixed":"85224decd4e075ca5263c8d6d84eb74483a7a644","status":"affected"},{"type":"git","introduced":"84f3a3c01d70efba736bc42155cf32722067b327","fixed":"662f4d7e7da5abea384c96d3de86e336014fa5b5","status":"affected"},{"type":"git","introduced":"84f3a3c01d70efba736bc42155cf32722067b327","fixed":"2f50ca3d46b4d5916874ba19612498c0a9c1f5f9","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.11","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/9fa387c4bea66d6f586fdadca438940268f079ce","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/85224decd4e075ca5263c8d6d84eb74483a7a644","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/662f4d7e7da5abea384c96d3de86e336014fa5b5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2f50ca3d46b4d5916874ba19612498c0a9c1f5f9","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139393","url":"https://www.cve.org/CVERecord?id=CVE-2026-139393","licence":"CVE Terms of Use","modified":"2026-11-30T13:34:20.539Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139393","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139393","licence":"Public domain","modified":"2026-11-30T14:19:07.397Z"}],"updatedAt":"2026-11-30T14:33:21.809Z","epss":{"score":0.00201,"percentile":0.10471,"date":"2026-12-01T12:00:22.000Z"}}