{"api_version":"1","generated_at":"2026-11-30T18:48:01+00:00","cve":"CVE-2026-139393","urls":{"html":"https://cve.report/CVE-2026-139393","api":"https://cve.report/api/cve/CVE-2026-139393.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139393","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139393"},"summary":{"title":"scsi: scsi_debug: Fix a locking bug in resp_write_same()","description":"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\".","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:19:07","updated_at":"2026-11-30 14:19:07"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/9fa387c4bea66d6f586fdadca438940268f079ce","name":"https://git.kernel.org/stable/c/9fa387c4bea66d6f586fdadca438940268f079ce","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/2f50ca3d46b4d5916874ba19612498c0a9c1f5f9","name":"https://git.kernel.org/stable/c/2f50ca3d46b4d5916874ba19612498c0a9c1f5f9","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/85224decd4e075ca5263c8d6d84eb74483a7a644","name":"https://git.kernel.org/stable/c/85224decd4e075ca5263c8d6d84eb74483a7a644","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/662f4d7e7da5abea384c96d3de86e336014fa5b5","name":"https://git.kernel.org/stable/c/662f4d7e7da5abea384c96d3de86e336014fa5b5","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139393","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139393","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 84f3a3c01d70efba736bc42155cf32722067b327 9fa387c4bea66d6f586fdadca438940268f079ce git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 84f3a3c01d70efba736bc42155cf32722067b327 85224decd4e075ca5263c8d6d84eb74483a7a644 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 84f3a3c01d70efba736bc42155cf32722067b327 662f4d7e7da5abea384c96d3de86e336014fa5b5 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 84f3a3c01d70efba736bc42155cf32722067b327 2f50ca3d46b4d5916874ba19612498c0a9c1f5f9 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.11","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.11 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/scsi/scsi_debug.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"9fa387c4bea66d6f586fdadca438940268f079ce","status":"affected","version":"84f3a3c01d70efba736bc42155cf32722067b327","versionType":"git"},{"lessThan":"85224decd4e075ca5263c8d6d84eb74483a7a644","status":"affected","version":"84f3a3c01d70efba736bc42155cf32722067b327","versionType":"git"},{"lessThan":"662f4d7e7da5abea384c96d3de86e336014fa5b5","status":"affected","version":"84f3a3c01d70efba736bc42155cf32722067b327","versionType":"git"},{"lessThan":"2f50ca3d46b4d5916874ba19612498c0a9c1f5f9","status":"affected","version":"84f3a3c01d70efba736bc42155cf32722067b327","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/scsi/scsi_debug.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.11"},{"lessThan":"6.11","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"6.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"6.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"6.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"6.11","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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\"."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:34:20.539Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/9fa387c4bea66d6f586fdadca438940268f079ce"},{"url":"https://git.kernel.org/stable/c/85224decd4e075ca5263c8d6d84eb74483a7a644"},{"url":"https://git.kernel.org/stable/c/662f4d7e7da5abea384c96d3de86e336014fa5b5"},{"url":"https://git.kernel.org/stable/c/2f50ca3d46b4d5916874ba19612498c0a9c1f5f9"}],"title":"scsi: scsi_debug: Fix a locking bug in resp_write_same()","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139393","datePublished":"2026-11-30T13:34:20.539Z","dateReserved":"2026-11-30T13:22:15.931Z","dateUpdated":"2026-11-30T13:34:20.539Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:19:07","lastModifiedDate":"2026-11-30 14:19:07","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139393","Ordinal":"1","Title":"scsi: scsi_debug: Fix a locking bug in resp_write_same()","CVE":"CVE-2026-139393","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139393","Ordinal":"1","NoteData":"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\".","Type":"Description","Title":"scsi: scsi_debug: Fix a locking bug in resp_write_same()"}]}}}