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

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

scsi: scsidebug: Fix a locking bug in respwritesame()

If fetchtodevbuffer() fails in respwritesame(), the function jumps to 'out' without releasing the data write lock acquired earlier via sdebdatawritelock(). Jump to 'unlock' instead so that sdebdatawriteunlock() is called on the error path. This bug has been discovered by building the scsidebug driver with Clang and modified lock context annotations. The modified lock context annotations are available in patch "scsi: scsidebug: Improve lock context annotations".

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In resp_write_same(), make the fetch_to_dev_buffer() error path jump to the unlock label instead of out, so sdeb_data_write_unlock() releases the data write lock.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:34 PM
Data Sourced
via MITRE·01:34 PM
Description

Frequently Asked Questions

1

What conditions trigger the bug?

The error path is reached when fetch_to_dev_buffer() fails during resp_write_same() after sdeb_data_write_lock() has been acquired. That path previously exited without calling sdeb_data_write_unlock().

2

Which systems are most relevant to assess?

The affected code is in the Linux kernel's scsi_debug driver. The provided information does not establish that other SCSI drivers or physical SCSI devices are affected.

3

What fix should be present?

The corrected error path jumps to the unlock label so that sdeb_data_write_unlock() runs before the function exits. The supplied references identify stable kernel commits containing the fix, but no affected or fixed version ranges are provided.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203