CVE-2026-97592: s390/crypto: Fix missing scrub of temp buffers with AES ctr and gcm algorithm
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
s390/crypto: Fix missing scrub of temp buffers with AES ctr and gcm algorithm
In function ctr_aes_crypt() there is a buffer used to process remaining bytes < AES_BLOCK_SIZE. This buffer was not scrubbed and thus could lead to expose of unwanted data. When the buffer is used explicitly scrub it at the end of the code block to avoid exposure of maybe sensitive data.
In a similar way the function gcm_aes_crypt() hat an error path where the CPACF param block was not scrubbed. Instead of return early now these error paths go to end of function where explicit scrubbing is done. Similar with the buffers which are part of the gcm_sg_walk structs from the variables gw_in and gw_out.
The Linux kernel CVE team has assigned CVE-2026-97592 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.8 with commit d07f951903fa9922c375b8ab1ce81b18a0034e3b and fixed in 6.12.111 with commit 11eca05d2062032e1f07d56be58ed0b99f4b1d63 Issue introduced in 6.8 with commit d07f951903fa9922c375b8ab1ce81b18a0034e3b and fixed in 6.18.53 with commit 8b90a47c4fba27bb4f2f086611742493629e9696 Issue introduced in 6.8 with commit d07f951903fa9922c375b8ab1ce81b18a0034e3b and fixed in 7.2.7 with commit a83488cecb35f924b7541306ed84893bb9906196 Issue introduced in 6.8 with commit d07f951903fa9922c375b8ab1ce81b18a0034e3b and fixed in 7.3-rc3 with commit 8b7c3b6914f19caf648d05726a86af6326d3c2c6 Issue introduced in 5.10.210 with commit cd51e26a3b89706beec64f2d8296cfb1c34e0c79 Issue introduced in 5.15.149 with commit a7f580cdb42ec3d53bbb7c4e4335a98423703285 Issue introduced in 6.1.76 with commit dbc9a791a70ea47be9f2acf251700fe254a2ab23 Issue introduced in 6.6.15 with commit d68ac38895e84446848b7647ab9458d54cacba3e Issue introduced in 6.7.3 with commit e78f1a43e72daf77705ad5b9946de66fc708b874
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-97592
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:
arch/s390/crypto/aes_s390.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/11eca05d2062032e1f07d56be58ed0b99f4b1d63 https://git.kernel.org/stable/c/8b90a47c4fba27bb4f2f086611742493629e9696 https://git.kernel.org/stable/c/a83488cecb35f924b7541306ed84893bb9906196 https://git.kernel.org/stable/c/8b7c3b6914f19caf648d05726a86af6326d3c2c6