CVE-2026-99493: s390/zcrypt: Guard domain index uses against speculative bypass
In the Linux kernel, the following vulnerability has been resolved:
s390/zcrypt: Guard domain index uses against speculative bypass
The previous arrayindexnospec() placement only covered the admin permission check, leaving aptestconfigusagedomain() and aptestconfigctrldomain() in the CCA path exposed to speculative execution.
Move the sanitization to before all permission and config checks in both the CCA and EP11 paths. Hold the sanitized domain value in another variable so that the later use can choose to use either the original value (subject to speculative execution) or the sanitized value (which may in case of AUTOSELDOM reflect the wrong value). Before that, check the domain value to be either AUTOSELDOM or in range 0...APDOMAINS-1 and return with -EINVAL in case this check does not pass.
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In s390/zcrypt, validate the domain as AUTOSEL_DOM or within 0...AP_DOMAINS-1 and return -EINVAL otherwise. Keep the sanitized domain in a separate variable and perform array_index_nospec() sanitization before permission and configuration checks in both the CCA and EP11 paths.