Linux kernel memory exposure in s390 zcrypt FQ reply parsing
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's s390/zcrypt FQ reply parser does not check whether a device-supplied length stays within the allocated reply buffer. A corrupt or malicious device response could cause an out-of-bounds dereference or expose kernel memory through a subsequent memcpy(). The input does not specify network access, authentication requirements, or user interaction.
Engineers running Linux kernels that use s390/zcrypt should check their systems; affected versions are not specified.