diff options
| author | Harald Freudenberger <freude@linux.ibm.com> | 2026-08-31 10:38:31 +0200 |
|---|---|---|
| committer | Vasily Gorbik <gor@linux.ibm.com> | 2026-09-08 15:53:41 +0200 |
| commit | 19a218b46b2471d370c11fb52040f36ac8d05d23 (patch) | |
| tree | 6c78786ef8d63ddedab81451e838ec904cd4379b /scripts/basic | |
| parent | 403648373816ae8eb76fe4a393836b0d65fa8f85 (diff) | |
| download | linux-19a218b46b2471d370c11fb52040f36ac8d05d23.tar.gz linux-19a218b46b2471d370c11fb52040f36ac8d05d23.zip | |
s390/crypto: Fix missing scrub of temp buffers with PAES algorithm
In function ctr_paes_do_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. Rework the code to
explicitly scrub the buffer at the end of the function to avoid
exposure of maybe sensitive data.
In function __xts_2keys_prep_param() change the existing scrub to
clean the whole param block instead of just the key field.
Fixes: 6cd87cb5ef6c ("s390/crypto: Rework protected key AES for true asynch support")
Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Reviewed-by: Holger Dengler <dengler@linux.ibm.com>
Cc: stable@vger.kernel.org # 6.16+
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions
