Skip to contentSkip to conversation

CVE-2026-80708: s390/zcrypt: Fix missing mem scrub at clear key import in cca_clr2cipherkey()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 28

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: Fix missing mem scrub at clear key import in cca_clr2cipherkey()

The helper function _ip_cprb_helper() uses internal buffer memory for building and processing CPRBs. After use this buffer was never scrubbed which could lead to leaving for example clear key material in memory which could be exposed via tricky reuse of this same memory.

Extend the _ip_cprb_helper() function with another parameter 'scrub' used to steer scrubbing of this buffer. So now the caller has the opportunity to decide if scrubbing is needed or not.

Extend the clear key to secure key token import process in function cca_clr2cipherkey() to tell the helper function from above to scrub the cprb buffer when the clear key value is part of the request data.

Add explicit scrubbing on return from function cca_clr2cipherkey() for the random EXOR buffer and the cprb buffer.

Overall this cleans the internal used buffer in case of clear key import to prevent sensitive data to get exposed.

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

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

	Issue introduced in 5.4 with commit 4bc123b18ce6ae6c42c69d0456b5acbd2f7bc8bd and fixed in 5.10.265 with commit 8e1c0def77b7450be0ed607ed0d7bae629d30020
	Issue introduced in 5.4 with commit 4bc123b18ce6ae6c42c69d0456b5acbd2f7bc8bd and fixed in 5.15.216 with commit be7ae07fb745d1cf575b03a178a055b0a2859364
	Issue introduced in 5.4 with commit 4bc123b18ce6ae6c42c69d0456b5acbd2f7bc8bd and fixed in 6.1.183 with commit 4e26d0d72bfdec311f12acfa0c6b7fbeb6a343d3
	Issue introduced in 5.4 with commit 4bc123b18ce6ae6c42c69d0456b5acbd2f7bc8bd and fixed in 6.6.152 with commit 7dd6e556dbfc91d3d511cfd1015d2dad42608010
	Issue introduced in 5.4 with commit 4bc123b18ce6ae6c42c69d0456b5acbd2f7bc8bd and fixed in 6.12.104 with commit b453003ae6a869f5bdf025b5519cbb38295ae4f1
	Issue introduced in 5.4 with commit 4bc123b18ce6ae6c42c69d0456b5acbd2f7bc8bd and fixed in 6.18.44 with commit fbb0410986e8ad214121e51a4a28c3d0a10b7644
	Issue introduced in 5.4 with commit 4bc123b18ce6ae6c42c69d0456b5acbd2f7bc8bd and fixed in 7.1.8 with commit ebfbb9ac7adbb1e3556100b54a27e8a9b102feac
	Issue introduced in 5.4 with commit 4bc123b18ce6ae6c42c69d0456b5acbd2f7bc8bd and fixed in 7.2 with commit 01476391aecef36a3b789ee844357b22fbc90665

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-80708

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_ccamisc.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/8e1c0def77b7450be0ed607ed0d7bae629d30020
	https://git.kernel.org/stable/c/be7ae07fb745d1cf575b03a178a055b0a2859364
	https://git.kernel.org/stable/c/4e26d0d72bfdec311f12acfa0c6b7fbeb6a343d3
	https://git.kernel.org/stable/c/7dd6e556dbfc91d3d511cfd1015d2dad42608010
	https://git.kernel.org/stable/c/b453003ae6a869f5bdf025b5519cbb38295ae4f1
	https://git.kernel.org/stable/c/fbb0410986e8ad214121e51a4a28c3d0a10b7644
	https://git.kernel.org/stable/c/ebfbb9ac7adbb1e3556100b54a27e8a9b102feac
	https://git.kernel.org/stable/c/01476391aecef36a3b789ee844357b22fbc90665