Commit 77827f3d authored by Herbert Xu's avatar Herbert Xu Committed by Greg Kroah-Hartman

crypto: lrw - Free rctx->ext with kzfree

commit 8c9bdab2 upstream.

The buffer rctx->ext contains potentially sensitive data and should
be freed with kzfree.

Cc: <stable@vger.kernel.org>
Fixes: 700cb3f5 ("crypto: lrw - Convert to skcipher")
Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3c6096ca
......@@ -313,7 +313,7 @@ static void exit_crypt(struct skcipher_request *req)
rctx->left = 0;
if (rctx->ext)
kfree(rctx->ext);
kzfree(rctx->ext);
}
static int do_encrypt(struct skcipher_request *req, int err)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment