crypto: lrw - Free rctx->ext with kzfree
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 23 Mar 2018 00:14:44 +0000 (08:14 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 8 Apr 2018 12:26:31 +0000 (14:26 +0200)
commit77827f3d63d0b12d840ed27b362f877e049dbbf5
tree5ae0f17888f500fc3ac41060812042e6119702bb
parent3c6096ca8e491a2c5a6d578fd4f191e94961dc20
crypto: lrw - Free rctx->ext with kzfree

commit 8c9bdab21289c211ca1ca6a5f9b7537b4a600a02 upstream.

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

Cc: <stable@vger.kernel.org>
Fixes: 700cb3f5fe75 ("crypto: lrw - Convert to skcipher")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
crypto/lrw.c