CVE-2026-99933: scsi: ufs: core: Fix double completion in ufshcd_clear_lu_cmds()
In the Linux kernel, the following vulnerability has been resolved:
scsi: ufs: core: Fix double completion in ufshcdclearlucmds()
In SDB mode, ufshcdclearlucmds() clears the request slot in the controller and completes the request, but leaves its bit set in hba->outstandingreqs. ufshcdpoll() treats a request whose bit is set in hba->outstandingreqs and clear in the doorbell register as finished, so the next ufshcdpoll() completes the same request again and unmaps its DMA buffers twice.
Clear the bit with ufshcdclearoutstandingreqs() before completing the request, and complete it only if the bit was still set. If ufshcdpoll() has already completed the request, the bit is already clear and ufshcdclearlucmds() skips it.