CVE-2026-142825: scsi: ufs: core: Clear stale UIC result byte before peer DME retries
In the Linux kernel, the following vulnerability has been resolved:
scsi: ufs: core: Clear stale UIC result byte before peer DME retries
Peer DME get and set retry a failed attempt with the same struct uiccommand. UIC completion ORs the ConfigResultCode into argument2[7:0], and nothing clears it before the next attempt. Once an attempt fails, every retry keeps reporting that error code, even when the device returns success, so a transient failure becomes a hard failure after three retries. Each such retry also triggers the WARNONONCE() in ufshcddispatchuiccmd(). In ufshcddmesetattr(), ufshcduiccmdcompl() also overwrites argument3 with the register readback before the next attempt.
Clear the result byte and restore argument3 in ufshcddmesetattr() when an attempt fails.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In ufshcd_dme_set_attr(), clear the stale ConfigResultCode byte in argument2 and restore argument3 before retrying a failed peer DME attempt.