AZL-117403: CVE-2026-99939 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
scsi: ufs: bsg: Complete the job on error
When ufsbsgrequest() fails, it returns a non-zero status without calling bsgjobdone(). bsgqueuerq() then ends the request with BLKSTSIOERR without running bsgcomplete(), leaking the job's device reference and mapped scatterlists.
Always complete the job via bsgjobdone() and return 0, matching other BSG transports. Requests failing with a negative errno now return it from SGIO with the 4-byte result in the reply, while positive status codes still return 0 from SGIO with the reply header.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the Linux kernel UFS BSG path, ensure ufs_bsg_request() calls bsg_job_done() on error and returns 0; report negative errno values in the SG_IO reply header.
Event History
Frequently Asked Questions
What operational impact can occur when the affected request path encounters an error?
A failed UFS BSG request can leave the job's device reference and mapped scatterlists unreleased. This occurs because the job completion callback is not run on that error path.
Will the fix change what applications receive from SG_IO for failed requests?
Yes. Requests that fail with a negative errno return that errno from SG_IO and include the 4-byte result in the reply. Positive status-code failures continue to return 0 from SG_IO with the reply header.