CVE-2026-142826: scsi: ufs: bsg: Reject UIC commands with a non-zero result byte
In the Linux kernel, the following vulnerability has been resolved:
scsi: ufs: bsg: Reject UIC commands with a non-zero result byte
ufsbsgrequest() passes the user-supplied UIC argument2 unchanged, including the result byte (bits 7:0) that only the host controller writes. A non-zero value triggers the WARNONONCE() in ufshcddispatchuiccmd() and corrupts the reported result. Found by syzkaller.
Reject UIC commands that have the result byte set with -EINVAL.
Affected Software
Event History
Frequently Asked Questions
What access does an attacker need to trigger this issue?
An attacker needs to be able to submit a UFS BSG request containing a UIC command with a non-zero result byte in argument2. The provided data does not identify a remote attack path or any required privilege level.
What is the observable effect of a malicious UIC command?
A non-zero result byte triggers WARN_ON_ONCE() in ufshcd_dispatch_uic_cmd() and corrupts the reported result. The fix rejects such commands with -EINVAL instead of passing the user-supplied result byte to the host controller path.
How can I tell whether the fix is present?
On a fixed kernel, UFS BSG UIC commands whose argument2 result byte, bits 7:0, is non-zero are rejected with -EINVAL. Kernels that accept these commands may trigger the warning and report a corrupted result.