kernel_samsung_a53x/security
Fedor Pchelkin 241edbd0eb apparmor: use kvfree_sensitive to free data->data
commit 2bc73505a5cd2a18a7a542022722f136c19e3b87 upstream.

Inside unpack_profile() data->data is allocated using kvmemdup() so it
should be freed with the corresponding kvfree_sensitive().

Also add missing data->data release for rhashtable insertion failure path
in unpack_profile().

Found by Linux Verification Center (linuxtesting.org).

Fixes: e025be0f26d5 ("apparmor: support querying extended trusted helper extra data")
Cc: stable@vger.kernel.org
Signed-off-by: Fedor Pchelkin <pchelkin@ispras.ru>
Signed-off-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-23 23:20:13 +01:00
..
apparmor apparmor: use kvfree_sensitive to free data->data 2024-11-23 23:20:13 +01:00
bpf
integrity ima: Avoid blocking in RCU read-side critical section 2024-11-19 14:19:42 +01:00
keys keys: Fix overwrite of key expiration on instantiation 2024-11-19 11:32:49 +01:00
loadpin
lockdown
safesetid
samsung
sdp
selinux selinux: Remove audit dependency 2024-11-19 17:53:57 +01:00
smack ima: Avoid blocking in RCU read-side critical section 2024-11-19 14:19:42 +01:00
tomoyo tomoyo: fix UAF write bug in tomoyo_write_control() 2024-11-18 23:18:29 +01:00
yama
commoncap.c
device_cgroup.c
inode.c
Kconfig
Kconfig.hardening
lsm_audit.c
Makefile selinux: Remove audit dependency 2024-11-19 17:53:57 +01:00
min_addr.c
security.c ima: Avoid blocking in RCU read-side critical section 2024-11-19 14:19:42 +01:00