diff options
author | Chengfeng Ye <cyeaa@connect.ust.hk> | 2021-11-04 06:46:42 -0700 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2021-11-20 15:02:08 +1100 |
commit | e9c195aaeed1b45c9012adbe29dedb6031e85aa8 (patch) | |
tree | f3c77d9cd5a2e7069f1e50ec7d6f4103cdc985dc /crypto/testmgr.h | |
parent | b4cb4d31631912842eb7dce02b4350cbb7562d5e (diff) | |
download | lwn-e9c195aaeed1b45c9012adbe29dedb6031e85aa8.tar.gz lwn-e9c195aaeed1b45c9012adbe29dedb6031e85aa8.zip |
crypto: qce - fix uaf on qce_skcipher_register_one
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>
Diffstat (limited to 'crypto/testmgr.h')
0 files changed, 0 insertions, 0 deletions