android_kernel_xiaomi_sm8450/drivers/crypto/qce
Chengfeng Ye 867d4ace48 crypto: qce - fix uaf on qce_skcipher_register_one
[ Upstream commit e9c195aaeed1b45c9012adbe29dedb6031e85aa8 ]

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 10:53:49 +01:00
..
cipher.h crypto: qce - permit asynchronous skcipher as fallback 2020-07-16 21:49:03 +10:00
common.c crypto: qce - handle AES-XTS cases that qce fails 2020-02-13 17:05:27 +08:00
common.h crypto: qce - support zero length test vectors 2020-07-03 14:18:34 +10:00
core.c crypto: algapi - Remove skbuff.h inclusion 2020-08-20 14:04:28 +10:00
core.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
dma.c crypto: qce - use cryptlen when adding extra sgl 2020-02-13 17:05:26 +08:00
dma.h crypto: qce - use cryptlen when adding extra sgl 2020-02-13 17:05:26 +08:00
Makefile crypto: qce - allow building only hashes/ciphers 2019-12-27 18:18:04 +08:00
regs-v5.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
sha.c crypto: qce - fix uaf on qce_ahash_register_one 2022-01-27 10:53:49 +01:00
sha.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
skcipher.c crypto: qce - fix uaf on qce_skcipher_register_one 2022-01-27 10:53:49 +01:00