{"id":"CVE-2026-99939","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-11-30T14:20:30.843","lastModified":"2026-11-30T14:20:30.843","vulnStatus":"Received","cveTags":[],"descriptions":[{"lang":"en","value":"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."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["drivers/ufs/core/ufs_bsg.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"b13a3539eb2affcb8833c189d68d6a4b99c41f6e","lessThan":"c161498d36e5f0d83f8776ea4df05c83051a95be","versionType":"git","status":"affected"},{"version":"b13a3539eb2affcb8833c189d68d6a4b99c41f6e","lessThan":"faba6b1b3c26e45873aa73a98b17b0f23dc25ba9","versionType":"git","status":"affected"},{"version":"b13a3539eb2affcb8833c189d68d6a4b99c41f6e","lessThan":"6252388f4ee900826173c2a71d9071b7a2b699f9","versionType":"git","status":"affected"},{"version":"b13a3539eb2affcb8833c189d68d6a4b99c41f6e","lessThan":"b75af28847a4cd6eb1275beb49cfb9da322926e6","versionType":"git","status":"affected"},{"version":"b13a3539eb2affcb8833c189d68d6a4b99c41f6e","lessThan":"cc0ce3fe8fac073ecded4f32c8ee5b89da1397e8","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["drivers/ufs/core/ufs_bsg.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"5.3","status":"affected"},{"version":"0","lessThan":"5.3","versionType":"semver","status":"unaffected"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","versionType":"semver","status":"unaffected"},{"version":"6.12.117","lessThanOrEqual":"6.12.*","versionType":"semver","status":"unaffected"},{"version":"6.18.63","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc1","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/6252388f4ee900826173c2a71d9071b7a2b699f9","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/b75af28847a4cd6eb1275beb49cfb9da322926e6","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/c161498d36e5f0d83f8776ea4df05c83051a95be","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/cc0ce3fe8fac073ecded4f32c8ee5b89da1397e8","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/faba6b1b3c26e45873aa73a98b17b0f23dc25ba9","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}