In the Linux kernel, the following vulnerability has been resolved:
s390/zcrypt: Improve CCA CPRB length and overflow checks
The xcrb_msg_to_type6cprb_msgx() function lacks proper input validation, creating security vulnerabilities:
- Integer overflow after CEIL4 alignment: Signed int variables could
- Missing minimum size validation: The CPRBX structure is copied from
- Arithmetic overflow in sum calculations: Adding control block and
Fix by using size_t for length calculations, adding U32_MAX boundary checks after alignment, validating minimum control block size before copying from userspace, and detecting sum calculation overflows.