CVE-2026-80544: s390/zcrypt: Improve EP11 CPRB domain handling with ASN.1 parsing
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
s390/zcrypt: Improve EP11 CPRB domain handling with ASN.1 parsing
The zcrypt_msgtype6_send_ep11_cprb() function uses fragile struct overlays to access and modify the domain field in the EP11 CPRB payload, creating maintainability and security concerns:
1. Struct overlay approach (pld_hdr) assumes fixed payload structure and doesn't validate the actual ASN.1 encoding.
2. Complex length format detection logic is error-prone and doesn't properly validate bounds at each parsing step.
3. Direct struct member access bypasses proper ASN.1 validation.
Fix by replacing struct overlays with explicit ASN.1 parsing that validates each field (payload tag/length, function tag/length/value, optional domain tag/length/value) with proper bounds checking at every step. Add asn1_int_encode() helper function to safely write integer values with correct endianness conversion. This makes the code consistent with the validation pattern introduced with the rework of the xcrb_msg_to_type6_ep11cprb_msgx() function.
The Linux kernel CVE team has assigned CVE-2026-80544 to this issue.
Affected and fixed versions
===========================
Issue introduced in 7.1 with commit e2c6d91eb8b1533753755f07803e47eceed263d0 and fixed in 7.1.10 with commit db21b2cf6dd0af5ffd08931e0a9fcda5a0473220 Issue introduced in 7.1 with commit e2c6d91eb8b1533753755f07803e47eceed263d0 and fixed in 7.2 with commit 0864a163783bff109b548266921829ea794edc93
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-80544
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/db21b2cf6dd0af5ffd08931e0a9fcda5a0473220 https://git.kernel.org/stable/c/0864a163783bff109b548266921829ea794edc93