KernelScan.io

HIGH Introduced in 7.1

zcrypt Ep11Cprb Overflow

CVE-2026-80545

CVSS 7.8 / 10.0 NVD

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

KernelScan AI7.8HIGH

01

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.

02

Engine v0.6.0

Risk summary

A local user with access to the zcrypt device can send a specially crafted EP11 CPRB request that triggers integer overflow and missing size validation, leading to kernel heap buffer overflow. This can result in privilege escalation, code execution, or denial of service on s390 systems with the zcrypt module loaded.

Affecteddrivers/s390/crypto/zcrypt_msgtype6.c (s390/zcrypt)

Vulnerability analysis

The s390 crypto driver handling EP11 requests copies data from userspace without first checking that the supplied buffer is large enough for the minimum expected message, and without preventing arithmetic overflow when aligning length values. An attacker can craft a request with malformed length fields that bypass the size checks, causing the kernel to write past the end of an allocated heap buffer. The corrected code validates minimum request and reply sizes before copying anything from userspace, performs alignment calculations with overflow checks, and parses the payload format properly instead of relying on a direct structure overlay. Any local user with access to the zcrypt device node can trigger this on s390 systems where the driver is active.

03

BranchIntroducedFixed inPatch commit
7.17.17.1.102976b9d2e716
mainline7.17.217ac0bc866fc