s390/zcrypt: Validate length for CCA AES cipher key requests
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 4bc123b18ce6ae6c42c69d0456b5acbd2f7bc8bd · < ad93a1f1a45652478c0cf4eb029114e03af57f3b| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
s390/zcrypt: Validate length for CCA AES cipher key requests
cca_cipher2protkey() derives the copy length for the CPRB parameter block directly from the length field in the key token. Reject the request early if the token length exceeds the available space in the parameter block.
From the CVE record · Linux
In the Linux kernel’s s390/zcrypt code, cca_cipher2protkey() derives a CPRB parameter-block copy length from a key token without first checking whether it fits. A request with an excessive token length can cause an out-of-bounds copy; the input does not specify whether exploitation requires local access, authentication, or user interaction.
Engineers running the Linux kernel with s390/zcrypt should check their versions; affected versions are not specified.