CVE-2026-99494: s390/zcrypt: Fix out-of-bounds ptr advance in cca_query_crypto_facility()
In the Linux kernel, the following vulnerability has been resolved:
s390/zcrypt: Fix out-of-bounds ptr advance in ccaquerycryptofacility()
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.61 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.2 - Compensating control
In Linux kernel s390/zcrypt, update cca_query_crypto_facility() to track the remaining reply-buffer space and validate each device-supplied length against it before advancing or dereferencing the pointer.