android_kernel_motorola_sm6375/security/integrity
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Xiu Jianfeng 8176538866 ima: Fix misuse of dereference of pointer in template_desc_init_fields()
[ Upstream commit 25369175ce84813dd99d6604e710dc2491f68523 ]

The input parameter @fields is type of struct ima_template_field ***, so
when allocates array memory for @fields, the size of element should be
sizeof(**field) instead of sizeof(*field).

Actually the original code would not cause any runtime error, but it's
better to make it logically right.

Fixes: adf53a778a ("ima: new templates management mechanism")
Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Reviewed-by: Roberto Sassu <roberto.sassu@huawei.com>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-01-18 11:41:03 +01:00
..
evm Revert "evm: Fix memleak in init_desc" 2022-07-21 20:59:18 +02:00
ima ima: Fix misuse of dereference of pointer in template_desc_init_fields() 2023-01-18 11:41:03 +01:00
platform_certs efi: Correct Macmini DMI match in uefi cert quirk 2022-10-15 07:54:39 +02:00
digsig.c integrity: Fix memory leakage in keyring allocation error path 2023-01-18 11:41:03 +01:00
digsig_asymmetric.c
iint.c
integrity.h
integrity_audit.c
Kconfig
Makefile