scsi: ufs: bsg: Complete the job on error
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Sep 25, 2026
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.
| Product | Versions |
|---|---|
| Linux Linux | b13a3539eb2affcb8833c189d68d6a4b99c41f6e to before c161498d36e5f0d83f8776ea4df05c83051a95be Affectedb13a3539eb2affcb8833c189d68d6a4b99c41f6e to before faba6b1b3c26e45873aa73a98b17b0f23dc25ba9 Affectedb13a3539eb2affcb8833c189d68d6a4b99c41f6e to before 6252388f4ee900826173c2a71d9071b7a2b699f9 Affectedb13a3539eb2affcb8833c189d68d6a4b99c41f6e to before b75af28847a4cd6eb1275beb49cfb9da322926e6 Affectedb13a3539eb2affcb8833c189d68d6a4b99c41f6e to before cc0ce3fe8fac073ecded4f32c8ee5b89da1397e8 Affected |
| Linux Linux | 5.3 Affectedbefore 5.3 Not Affected6.6.163 through 6.6.* Not Affected6.12.117 through 6.12.* Not Affected6.18.63 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
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
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.