Skip to contentSkip to conversation

CVE-2026-31746: s390/zcrypt: Fix memory leak with CCA cards used as accelerator

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 1

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 memory leak with CCA cards used as accelerator

Tests showed that there is a memory leak if CCA cards are used as accelerator for clear key RSA requests (ME and CRT). With the last rework for the memory allocation the AP messages are allocated by ap_init_apmsg() but for some reason on two places (ME and CRT) the older allocation was still in place. So the first allocation simple was never freed.

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

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

	Issue introduced in 6.16 with commit 57db62a130ce69e6f3a870cf1119d8f860391f97 and fixed in 6.18.22 with commit 586222c37d4027dbf60a604fbe820184fee7c1c9
	Issue introduced in 6.16 with commit 57db62a130ce69e6f3a870cf1119d8f860391f97 and fixed in 6.19.12 with commit ace37bfec3822033e59fff390f2ff99fc96ebe4f
	Issue introduced in 6.16 with commit 57db62a130ce69e6f3a870cf1119d8f860391f97 and fixed in 7.0 with commit c8d46f17c2fc7d25c18e60c008928aecab26184d

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

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/586222c37d4027dbf60a604fbe820184fee7c1c9
	https://git.kernel.org/stable/c/ace37bfec3822033e59fff390f2ff99fc96ebe4f
	https://git.kernel.org/stable/c/c8d46f17c2fc7d25c18e60c008928aecab26184d