Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ima: Fix use after free in ima_read_modsig()
If we can't parse the PKCS7 in the appended modsig, we will free the modsig structure and then access one of its members to determine the error value. Fixes: 39b0709 ("ima: Implement support for module-style appended signatures") Reported-by: kbuild test robot <[email protected]> Reported-by: Julia Lawall <[email protected]> Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Thiago Jung Bauermann <[email protected]> Reviewed-by: Gustavo A. R. Silva <[email protected]> Signed-off-by: Mimi Zohar <[email protected]>
- Loading branch information