summaryrefslogtreecommitdiff
path: root/crypto/Kconfig
diff options
context:
space:
mode:
authorPan Bian <bianpan2016@163.com>2018-11-22 18:00:16 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2018-11-29 14:53:59 +0800
commit046f6e8adfd37049d578844eeb06ed093805783b (patch)
tree9ae22c1a7296af6aa2273683b7805da2296632e0 /crypto/Kconfig
parentf5dc455f1b0548b15904e18be717c6f85f1c446d (diff)
downloadlinux-crypto-046f6e8adfd37049d578844eeb06ed093805783b.tar.gz
linux-crypto-046f6e8adfd37049d578844eeb06ed093805783b.zip
crypto: do not free algorithm before using
In multiple functions, the algorithm fields are read after its reference is dropped through crypto_mod_put. In this case, the algorithm memory may be freed, resulting in use-after-free bugs. This patch delays the put operation until the algorithm is never used. Fixes: cd89eb27bee6 ("crypto: cbc - Convert to skcipher") Fixes: df5fcebba63e ("crypto: cfb - add support for Cipher FeedBack mode") Fixes: 469cb2e223ed ("crypto: pcbc - Convert to skcipher") Cc: <stable@vger.kernel.org> Signed-off-by: Pan Bian <bianpan2016@163.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/Kconfig')
0 files changed, 0 insertions, 0 deletions