GHSA-8cmf-4x36-qp8xHighCVSS 7.8
In the Linux kernel, the following vulnerability has been resolved: s390/zcrypt: Improve CCA...
🔗 CVE IDs covered (1)
📋 Description
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 overflow during 4-byte boundary alignment, causing undersized buffer allocations or incorrect bounds checking.
- Missing minimum size validation: The CPRBX structure is copied from userspace without verifying sufficient buffer length. Undersized buffers cause uninitialized memory access when reading structure fields like cprbx.cprb_len and cprbx.domain.
- Arithmetic overflow in sum calculations: Adding control block and data block sizes could overflow, bypassing size checks and enabling buffer overflows.
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.
🔗 References (5)
- https://nvd.nist.gov/vuln/detail/CVE-2026-80546
- https://git.kernel.org/stable/c/35ac6754ba6da45fd193f5ce3f665f7490b830d5
- https://git.kernel.org/stable/c/50fe5133dcb46449daf2435fa705264364411129
- https://git.kernel.org/stable/c/584400144020f40365de3972c4763da520e7280e
- https://github.com/advisories/GHSA-8cmf-4x36-qp8x