]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
crypto: rng - Fix a refcounting bug in crypto_rng_reset()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 20 Jan 2020 14:38:04 +0000 (17:38 +0300)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 5 May 2020 10:32:22 +0000 (12:32 +0200)
commit1c02856090ef7a10cd8c4d4b12cd8b4c71b3e123
tree84386cbb6d79105546616098984b972d831967af
parent1f941fe4f0740c07a7b43eab5636813f11d188f3
crypto: rng - Fix a refcounting bug in crypto_rng_reset()

BugLink: https://bugs.launchpad.net/bugs/1873481
commit eed74b3eba9eda36d155c11a12b2b4b50c67c1d8 upstream.

We need to decrement this refcounter on these error paths.

Fixes: f7d76e05d058 ("crypto: user - fix use_after_free of struct xxx_request")
Cc: <stable@vger.kernel.org>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
crypto/rng.c