# CVE-2026-139393: scsi: scsi_debug: Fix a locking bug in resp_write_same()

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2026-11-30T13:34:20.539Z
- Modified: 2026-11-30T14:19:07.397Z
- Assigned by: Linux

## 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".

(As written by CVE List.)

## Affected

- Linux Linux: from 84f3a3c01d70efba736bc42155cf32722067b327 before 9fa387c4bea66d6f586fdadca438940268f079ce; from 84f3a3c01d70efba736bc42155cf32722067b327 before 85224decd4e075ca5263c8d6d84eb74483a7a644; from 84f3a3c01d70efba736bc42155cf32722067b327 before 662f4d7e7da5abea384c96d3de86e336014fa5b5; from 84f3a3c01d70efba736bc42155cf32722067b327 before 2f50ca3d46b4d5916874ba19612498c0a9c1f5f9; 6.11 (not affected: before 6.11; from 6.12.119 up to 6.12.*; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/9fa387c4bea66d6f586fdadca438940268f079ce>
- <https://git.kernel.org/stable/c/85224decd4e075ca5263c8d6d84eb74483a7a644>
- <https://git.kernel.org/stable/c/662f4d7e7da5abea384c96d3de86e336014fa5b5>
- <https://git.kernel.org/stable/c/2f50ca3d46b4d5916874ba19612498c0a9c1f5f9>

## Sources

- CVE List: [CVE-2026-139393](https://www.cve.org/CVERecord?id=CVE-2026-139393), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139393](https://nvd.nist.gov/vuln/detail/CVE-2026-139393), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139393 · Whole record: https://cve.day/CVE-2026-139393.json · Rebuilt by cve.day 2026-11-30T14:33:21.809Z
