]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: drbg - always try to free Jitter RNG instance
authorStephan Müller <smueller@chronox.de>
Sun, 7 Jun 2020 13:20:26 +0000 (15:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Jun 2022 09:45:16 +0000 (11:45 +0200)
commitba6a98f8c776826158e62a7f5798a73bd4dbdc77
tree693980c4e78c7bd177ab43f565d175fab4bb0d04
parentf9d953c3efcb766f8bd04b9df8de1f82f0c201b1
crypto: drbg - always try to free Jitter RNG instance

commit 819966c06b759022e9932f328284314d9272b9f3 upstream.

The Jitter RNG is unconditionally allocated as a seed source follwoing
the patch 97f2650e5040. Thus, the instance must always be deallocated.

Reported-by: syzbot+2e635807decef724a1fa@syzkaller.appspotmail.com
Fixes: 97f2650e5040 ("crypto: drbg - always seeded with SP800-90B ...")
Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
crypto/drbg.c