{"id":"CVE-2026-99939","aliases":["CVE-2026-99939"],"related":[],"kind":"vulnerability","state":"published","title":"scsi: ufs: bsg: Complete the job on error","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: ufs: bsg: Complete the job on error\n\nWhen ufs_bsg_request() fails, it returns a non-zero status without calling\nbsg_job_done(). bsg_queue_rq() then ends the request with BLK_STS_IOERR\nwithout running bsg_complete(), leaking the job's device reference and\nmapped scatterlists.\n\nAlways complete the job via bsg_job_done() and return 0, matching other BSG\ntransports. Requests failing with a negative errno now return it from SG_IO\nwith the 4-byte result in the reply, while positive status codes still\nreturn 0 from SG_IO with the reply header.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: ufs: bsg: Complete the job on error\n\nWhen ufs_bsg_request() fails, it returns a non-zero status without calling\nbsg_job_done(). bsg_queue_rq() then ends the request with BLK_STS_IOERR\nwithout running bsg_complete(), leaking the job's device reference and\nmapped scatterlists.\n\nAlways complete the job via bsg_job_done() and return 0, matching other BSG\ntransports. Requests failing with a negative errno now return it from SG_IO\nwith the 4-byte result in the reply, while positive status codes still\nreturn 0 from SG_IO with the reply header.","source":"cvelist"}],"published":"2026-11-30T13:18:27.857Z","modified":"2026-11-30T14:20:30.843Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"b13a3539eb2affcb8833c189d68d6a4b99c41f6e","fixed":"c161498d36e5f0d83f8776ea4df05c83051a95be","status":"affected"},{"type":"git","introduced":"b13a3539eb2affcb8833c189d68d6a4b99c41f6e","fixed":"faba6b1b3c26e45873aa73a98b17b0f23dc25ba9","status":"affected"},{"type":"git","introduced":"b13a3539eb2affcb8833c189d68d6a4b99c41f6e","fixed":"6252388f4ee900826173c2a71d9071b7a2b699f9","status":"affected"},{"type":"git","introduced":"b13a3539eb2affcb8833c189d68d6a4b99c41f6e","fixed":"b75af28847a4cd6eb1275beb49cfb9da322926e6","status":"affected"},{"type":"git","introduced":"b13a3539eb2affcb8833c189d68d6a4b99c41f6e","fixed":"cc0ce3fe8fac073ecded4f32c8ee5b89da1397e8","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.3","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.3","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/c161498d36e5f0d83f8776ea4df05c83051a95be","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/faba6b1b3c26e45873aa73a98b17b0f23dc25ba9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6252388f4ee900826173c2a71d9071b7a2b699f9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b75af28847a4cd6eb1275beb49cfb9da322926e6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cc0ce3fe8fac073ecded4f32c8ee5b89da1397e8","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99939","url":"https://www.cve.org/CVERecord?id=CVE-2026-99939","licence":"CVE Terms of Use","modified":"2026-11-30T13:18:27.857Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99939","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99939","licence":"Public domain","modified":"2026-11-30T14:20:30.843Z"}],"updatedAt":"2026-11-30T14:33:35.305Z","epss":{"score":0.00309,"percentile":0.25601,"date":"2026-12-01T12:00:22.000Z"}}