Skip to content
Commit 4a9dbd02 authored by Chengfeng Ye's avatar Chengfeng Ye Committed by Herbert Xu
Browse files

crypto: qce - fix uaf on qce_aead_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: 9363efb4 ("crypto: qce - Add support for AEAD algorithms")
Signed-off-by: default avatarChengfeng Ye <cyeaa@connect.ust.hk>
Acked-by: default avatarThara Gopinath <thara.gopinath@linaro.org>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 574c833e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment