CyberRota Analysis
AI-GeneratedThe vulnerability affects the Linux kernel's s390/zcrypt component, specifically within the xcrb_msg_to_type6_ep11cprb_msgx() function, which fails to validate input sizes properly, leading to potential buffer overflows. This flaw can be exploited due to missing minimum size checks and arithmetic overflow in length calculations, potentially allowing attackers to manipulate memory and execute arbitrary code. Organizations using Linux systems, particularly those leveraging s390 architecture, should prioritize addressing this vulnerability to mitigate the risk of exploitation.
Original NVD Description
In the Linux kernel, the following vulnerability has been resolved: s390/zcrypt: Improve EP11 CPRB length and overflow checks The xcrb_msg_to_type6_ep11cprb_msgx() function lacks proper input validation, creating security vulnerabilities: 1. Missing minimum size validation: The ep11_cprb structure and subsequent payload fields (pld_tag, pld_lenfmt) are copied from userspace without verifying sufficient buffer length. 2. Arithmetic overflow in length calculations: CEIL4 alignment could overflow, bypassing size checks and enabling buffer overflows. 3. The payload is asn1 encoded but the function just uses a simple c struct overlay to access some fields of the payload. Fix by using size_t for length calculations, adding U32_MAX boundary checks after alignment, and validating minimum request size and minimum reply size before copying from userspace. Do a very simple asn1 parsing of the payload up to the function value field.