Thread (2 messages) 2 messages, 2 authors, 2017-11-29

Re: [PATCH v2] ARM64: crypto: do not call crypto_unregister_skcipher twice on error

flat view

From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2017-11-29 06:40:54
Also in: linux-arm-kernel, lkml

On Fri, Nov 24, 2017 at 08:22:07AM +0000, Corentin Labbe wrote:
When a cipher fails to register in aes_init(), the error path goes thought
aes_exit() then crypto_unregister_skciphers().
Since aes_exit calls also crypto_unregister_skcipher, this triggers a
refcount_t: underflow; use-after-free.

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Patch applied.  Thanks.
-- 
Email: Herbert Xu [off-list ref]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help