linux-stable/drivers/crypto/qce
Chengfeng Ye 38a721f609 crypto: qce - fix uaf on qce_skcipher_register_one
[ Upstream commit e9c195aaee ]

Pointer alg points to sub field of tmpl, it
is dereferenced after tmpl is freed. Fix
this by accessing alg before free tmpl.

Fixes: ec8f5d8f ("crypto: qce - Qualcomm crypto engine driver")
Signed-off-by: Chengfeng Ye <cyeaa@connect.ust.hk>
Acked-by: Thara Gopinath <thara.gopinath@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-01-27 11:03:14 +01:00
..
aead.c crypto: qce - fix uaf on qce_aead_register_one 2022-01-27 11:03:14 +01:00
aead.h crypto: qce - Schedule fallback aead algorithm 2021-05-14 19:07:56 +08:00
cipher.h
common.c crypto: qce - Add support for AEAD algorithms 2021-05-14 19:07:56 +08:00
common.h crypto: qce - Add support for AEAD algorithms 2021-05-14 19:07:55 +08:00
core.c crypto: qce - Add support for AEAD algorithms 2021-05-14 19:07:55 +08:00
core.h
dma.c
dma.h
Makefile crypto: qce - Add support for AEAD algorithms 2021-05-14 19:07:55 +08:00
regs-v5.h
sha.c crypto: qce - fix uaf on qce_ahash_register_one 2022-01-27 11:03:14 +01:00
sha.h
skcipher.c crypto: qce - fix uaf on qce_skcipher_register_one 2022-01-27 11:03:14 +01:00