Skip to contentSkip to conversation

CVE-2026-80545: s390/zcrypt: Improve EP11 CPRB length and overflow checks

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 26

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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.

The Linux kernel CVE team has assigned CVE-2026-80545 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 7.1 with commit e2c6d91eb8b1533753755f07803e47eceed263d0 and fixed in 7.1.10 with commit 2976b9d2e716c7e5487ca7c29a7bd076cf9adf08
	Issue introduced in 7.1 with commit e2c6d91eb8b1533753755f07803e47eceed263d0 and fixed in 7.2 with commit 17ac0bc866fc624cd05f022dcd8b730c0af11bb1

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-80545

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/s390/crypto/zcrypt_msgtype6.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/2976b9d2e716c7e5487ca7c29a7bd076cf9adf08
	https://git.kernel.org/stable/c/17ac0bc866fc624cd05f022dcd8b730c0af11bb1