linux-uconsole/security/integrity/evm
Roberto Sassu 6e322a9e42 evm: check hash algorithm passed to init_desc()
commit 221be106d7 upstream.

This patch prevents memory access beyond the evm_tfm array by checking the
validity of the index (hash algorithm) passed to init_desc(). The hash
algorithm can be arbitrarily set if the security.ima xattr type is not
EVM_XATTR_HMAC.

Fixes: 5feeb61183 ("evm: Allow non-SHA1 digital signatures")
Signed-off-by: Roberto Sassu <roberto.sassu@huawei.com>
Cc: stable@vger.kernel.org
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-06-09 09:17:21 +02:00
..
evm.h evm: Allow non-SHA1 digital signatures 2018-07-18 07:27:22 -04:00
evm_crypto.c evm: check hash algorithm passed to init_desc() 2019-06-09 09:17:21 +02:00
evm_main.c evm: Allow non-SHA1 digital signatures 2018-07-18 07:27:22 -04:00
evm_posix_acl.c ima: fix script messages 2013-10-25 13:17:19 -04:00
evm_secfs.c EVM: fix return value check in evm_write_xattrs() 2018-07-22 14:49:11 -04:00
Kconfig evm: Allow non-SHA1 digital signatures 2018-07-18 07:27:22 -04:00
Makefile evm: posix acls modify i_mode 2011-09-14 15:24:51 -04:00