Skip to contentSkip to conversation

CVE-2026-99494: s390/zcrypt: Fix out-of-bounds ptr advance in cca_query_crypto_facility()

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: Fix out-of-bounds ptr advance in cca_query_crypto_facility()

The FQ reply parser code blindly advanced the walk pointer by a length value read directly from the hardware reply payload without checking that the advance stayed within the allocated reply buffer. A corrupt or malicious device response could push ptr beyond the cprbmem region, causing an out-of-bounds dereference or kernel memory exposure via the subsequent memcpy().

Fix this by tracking the remaining reply buffer space in a variable and validating each device-supplied length field against it before advancing or dereferencing the pointer.

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

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

	Issue introduced in 5.19 with commit 2004b57cde6b21170d058244b53043105d89f83f and fixed in 6.12.117 with commit 49dfd61f1c2ddfe028d4a9a603afc33b013e9ee9
	Issue introduced in 5.19 with commit 2004b57cde6b21170d058244b53043105d89f83f and fixed in 6.18.61 with commit bd30e2b60e811140861d53030cf9b6226b46c032
	Issue introduced in 5.19 with commit 2004b57cde6b21170d058244b53043105d89f83f and fixed in 7.3.2 with commit 21268907891d5496e495ca17511aff11d8f99731
	Issue introduced in 5.19 with commit 2004b57cde6b21170d058244b53043105d89f83f and fixed in 7.4-rc1 with commit 9fd7fca66735307fd7afa3450882a55ef80f2add

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-99494

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_ccamisc.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/49dfd61f1c2ddfe028d4a9a603afc33b013e9ee9
	https://git.kernel.org/stable/c/bd30e2b60e811140861d53030cf9b6226b46c032
	https://git.kernel.org/stable/c/21268907891d5496e495ca17511aff11d8f99731
	https://git.kernel.org/stable/c/9fd7fca66735307fd7afa3450882a55ef80f2add