Skip to contentSkip to conversation

CVE-2026-99493: s390/zcrypt: Guard domain index uses against speculative bypass

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 19

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

s390/zcrypt: Guard domain index uses against speculative bypass

The previous array_index_nospec() placement only covered the admin permission check, leaving ap_test_config_usage_domain() and ap_test_config_ctrl_domain() 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 AUTOSEL_DOM reflect the wrong value). Before that, check the domain value to be either AUTOSEL_DOM or in range 0...AP_DOMAINS-1 and return with -EINVAL in case this check does not pass.

The Linux kernel CVE team has assigned CVE-2026-99493 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 7.2 with commit e935cd525af4c6ed2e2c6404aa27ca19c7f39ddb and fixed in 7.3.2 with commit 47597992e6c20a298cec03016ebba669f0e17484
	Issue introduced in 7.2 with commit e935cd525af4c6ed2e2c6404aa27ca19c7f39ddb and fixed in 7.4-rc1 with commit 7b88e8b6d714cd1b2b6185e2963c8ec4d98542d0
	Issue introduced in 6.1.191 with commit 55ac533c568a5dcaa41cd26d6e089f9dff2a7c22
	Issue introduced in 6.6.160 with commit dd1a334523ba533cba63caf593a7329d8e0e5e6e
	Issue introduced in 6.12.114 with commit d11a260bd7dfc6f6ccd43e1b930050f24e70cd5f
	Issue introduced in 6.18.57 with commit 59adeedebf02aa1c203de1d2b67ec45bfab7a3c6
	Issue introduced in 7.1.8 with commit 82b62eda68abfb7a33ac40f24b8c4128c2891148

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-99493

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/s390/crypto/zcrypt_api.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/47597992e6c20a298cec03016ebba669f0e17484
	https://git.kernel.org/stable/c/7b88e8b6d714cd1b2b6185e2963c8ec4d98542d0