kernel_samsung_a53x/arch/s390/crypto
Herbert Xu b1af3ae169 crypto: s390/aes - Fix buffer overread in CTR mode
commit d07f951903fa9922c375b8ab1ce81b18a0034e3b upstream.

When processing the last block, the s390 ctr code will always read
a whole block, even if there isn't a whole block of data left.  Fix
this by using the actual length left and copy it into a buffer first
for processing.

Fixes: 0200f3ecc196 ("crypto: s390 - add System z hardware support for CTR mode")
Cc: <stable@vger.kernel.org>
Reported-by: Guangwu Zhang <guazhang@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Reviewd-by: Harald Freudenberger <freude@de.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-18 12:12:55 +01:00
..
aes_s390.c crypto: s390/aes - Fix buffer overread in CTR mode 2024-11-18 12:12:55 +01:00
arch_random.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
crc32-vx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
crc32be-vx.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
crc32le-vx.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
des_s390.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ghash_s390.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
paes_s390.c crypto: s390/aes - Fix buffer overread in CTR mode 2024-11-18 12:12:55 +01:00
prng.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sha.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sha1_s390.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sha3_256_s390.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sha3_512_s390.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sha256_s390.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sha512_s390.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sha_common.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00