CVE-2026-99939

Source
https://cve.org/CVERecord?id=CVE-2026-99939
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99939.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-99939
Downstream
Published
2026-11-30T13:18:27Z
Modified
2026-11-30T15:02:32Z
Summary
scsi: ufs: bsg: Complete the job on error
Details

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

scsi: ufs: bsg: Complete the job on error

When ufs_bsg_request() fails, it returns a non-zero status without calling bsg_job_done(). bsg_queue_rq() then ends the request with BLK_STS_IOERR without running bsg_complete(), leaking the job's device reference and mapped scatterlists.

Always complete the job via bsg_job_done() and return 0, matching other BSG transports. Requests failing with a negative errno now return it from SG_IO with the 4-byte result in the reply, while positive status codes still return 0 from SG_IO with the reply header.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99939.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
b13a3539eb2affcb8833c189d68d6a4b99c41f6e
Fixed
c161498d36e5f0d83f8776ea4df05c83051a95be
Fixed
faba6b1b3c26e45873aa73a98b17b0f23dc25ba9
Fixed
6252388f4ee900826173c2a71d9071b7a2b699f9
Fixed
b75af28847a4cd6eb1275beb49cfb9da322926e6
Fixed
cc0ce3fe8fac073ecded4f32c8ee5b89da1397e8

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99939.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.3.0
Fixed
6.6.163
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.117
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.63
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99939.json"