summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorHarald Freudenberger <freude@linux.ibm.com>2026-08-31 10:37:34 +0200
committerVasily Gorbik <gor@linux.ibm.com>2026-09-08 15:53:40 +0200
commit8b7c3b6914f19caf648d05726a86af6326d3c2c6 (patch)
treefa3abe2e7160d51e8b59efa1de372fbcade6afed /scripts/Makefile.thinlto
parent15fa028589c3a2545f0bff355eff06d5844196bf (diff)
downloadlinux-8b7c3b6914f19caf648d05726a86af6326d3c2c6.tar.gz
linux-8b7c3b6914f19caf648d05726a86af6326d3c2c6.zip
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. Fixes: d07f951903fa ("crypto: s390/aes - Fix buffer overread in CTR mode") Signed-off-by: Harald Freudenberger <freude@linux.ibm.com> Reviewed-by: Holger Dengler <dengler@linux.ibm.com> Cc: stable@vger.kernel.org # 6.8+ Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions