Patch "security/keys: make BIG_KEYS dependent on stdrng." has been added to the 4.8-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
security/keys: make BIG_KEYS dependent on stdrng.
to the 4.8-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
security-keys-make-big_keys-dependent-on-stdrng.patch
and it can be found in the queue-4.8 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
31e6ec4519c0fe0ee4a2f6ba3ab278e9506b9500Mon Sep 17 00:00:00 2001
From: Artem Savkov <[email protected]>
Date: Wed, 26 Oct 2016 15:02:09 +0100
Subject: security/keys: make BIG_KEYS dependent on stdrng.
From: Artem Savkov <[email protected]>
commit 31e6ec4519c0fe0ee4a2f6ba3ab278e9506b9500 upstream.
Since BIG_KEYS can't be compiled as module it requires one of the "stdrng" providers to be compiled into kernel. Otherwise big_key_crypto_init() fails on crypto_alloc_rng step and next dereference of big_key_skcipher (e.g. in big_key_preparse()) results in a NULL pointer dereference.
--- security/keys/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
security/keys/Kconfig +1 -1
@@ -41,7 +41,7 @@ config BIG_KEYS bool "Large payload keys" depends on KEYS depends on TMPFS - select CRYPTO + depends on (CRYPTO_ANSI_CPRNG = y || CRYPTO_DRBG = y) select CRYPTO_AES select CRYPTO_ECB select CRYPTO_RNG
Patches currently in stable-queue which might be from [email protected] are
queue-4.8/security-keys-make-big_keys-dependent-on-stdrng.patch queue-4.8/keys-sort-out-big_key-initialisation.patch