diff options
author | 2022-03-03 10:23:37 +0800 | |
---|---|---|
committer | 2022-03-09 15:12:31 +1200 | |
commit | 3d950c34074ed74d2713c3856ba01264523289e6 (patch) | |
tree | 10ce50fbb85505349b1e0560c588fbf4c8b13993 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | crypto: ccp - ccp_dmaengine_unregister release dma channels (diff) | |
download | wireguard-linux-3d950c34074ed74d2713c3856ba01264523289e6.tar.xz wireguard-linux-3d950c34074ed74d2713c3856ba01264523289e6.zip |
crypto: ccree - Fix use after free in cc_cipher_exit()
kfree_sensitive(ctx_p->user.key) will free the ctx_p->user.key. But
ctx_p->user.key is still used in the next line, which will lead to a
use after free.
We can call kfree_sensitive() after dev_dbg() to avoid the uaf.
Fixes: 63ee04c8b491 ("crypto: ccree - add skcipher support")
Signed-off-by: Jianglei Nie <niejianglei2021@163.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions