CVE-2026-139393

Source
https://cve.org/CVERecord?id=CVE-2026-139393
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139393.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-139393
Downstream
Published
2026-11-30T13:34:20Z
Modified
2026-11-30T15:02:28Z
Summary
scsi: scsi_debug: Fix a locking bug in resp_write_same()
Details

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

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139393.json"
}
References

Affected packages

Git / 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"

Linux / Kernel

Package

Name
Kernel

Affected 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"