diff options
| author | Roberto Sassu <[email protected]> | 2019-05-29 13:30:33 +0000 |
|---|---|---|
| committer | Mimi Zohar <[email protected]> | 2019-05-30 03:18:25 +0000 |
| commit | 221be106d75c1b511973301542f47d6000d0b63e (patch) | |
| tree | 18f8246e67943de8fc8f5d9ebe2fcb927b8ed391 /lib/mpi | |
| parent | ima: fix wrong signed policy requirement when not appraising (diff) | |
| download | kernel-221be106d75c1b511973301542f47d6000d0b63e.tar.gz kernel-221be106d75c1b511973301542f47d6000d0b63e.zip | |
evm: check hash algorithm passed to init_desc()
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: 5feeb61183dde ("evm: Allow non-SHA1 digital signatures")
Signed-off-by: Roberto Sassu <[email protected]>
Cc: [email protected]
Signed-off-by: Mimi Zohar <[email protected]>
Diffstat (limited to 'lib/mpi')
0 files changed, 0 insertions, 0 deletions
