# CVE-2026-99939: scsi: ufs: bsg: Complete the job on error

- 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.31%, higher than 25% of CVEs (2026-12-01)
- Published: 2026-11-30T13:18:27.857Z
- Modified: 2026-11-30T14:20:30.843Z
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from b13a3539eb2affcb8833c189d68d6a4b99c41f6e before c161498d36e5f0d83f8776ea4df05c83051a95be; from b13a3539eb2affcb8833c189d68d6a4b99c41f6e before faba6b1b3c26e45873aa73a98b17b0f23dc25ba9; from b13a3539eb2affcb8833c189d68d6a4b99c41f6e before 6252388f4ee900826173c2a71d9071b7a2b699f9; from b13a3539eb2affcb8833c189d68d6a4b99c41f6e before b75af28847a4cd6eb1275beb49cfb9da322926e6; from b13a3539eb2affcb8833c189d68d6a4b99c41f6e before cc0ce3fe8fac073ecded4f32c8ee5b89da1397e8; 5.3 (not affected: before 5.3; from 6.6.163 up to 6.6.*; from 6.12.117 up to 6.12.*; from 6.18.63 up to 6.18.*; from 7.3.4 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/c161498d36e5f0d83f8776ea4df05c83051a95be>
- <https://git.kernel.org/stable/c/faba6b1b3c26e45873aa73a98b17b0f23dc25ba9>
- <https://git.kernel.org/stable/c/6252388f4ee900826173c2a71d9071b7a2b699f9>
- <https://git.kernel.org/stable/c/b75af28847a4cd6eb1275beb49cfb9da322926e6>
- <https://git.kernel.org/stable/c/cc0ce3fe8fac073ecded4f32c8ee5b89da1397e8>

## Sources

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

---

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