kernel_samsung_a53x/drivers/crypto/bcm
Aleksandr Mishin 2e0e85a035 crypto: bcm - Fix pointer arithmetic
[ Upstream commit 2b3460cbf454c6b03d7429e9ffc4fe09322eb1a9 ]

In spu2_dump_omd() value of ptr is increased by ciph_key_len
instead of hash_iv_len which could lead to going beyond the
buffer boundaries.
Fix this bug by changing ciph_key_len to hash_iv_len.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 9d12ba86f818 ("crypto: brcm - Add Broadcom SPU driver")
Signed-off-by: Aleksandr Mishin <amishin@t-argos.ru>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 12:26:52 +01:00
..
cipher.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cipher.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spu.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spu2.c crypto: bcm - Fix pointer arithmetic 2024-11-19 12:26:52 +01:00
spu2.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spum.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
util.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
util.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00