kernel_samsung_a53x/security/apparmor
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
..
include ima: Avoid blocking in RCU read-side critical section 2024-11-19 14:19:42 +01:00
apparmorfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
audit.c ima: Avoid blocking in RCU read-side critical section 2024-11-19 14:19:42 +01:00
capability.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
crypto.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
domain.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
file.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ipc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
label.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lib.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lsm.c lsm: make security_socket_getpeersec_stream() sockptr_t safe 2024-11-18 23:19:51 +01:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
match.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mount.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
net.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nulldfa.in Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
path.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
policy.c apparmor: use kvfree_sensitive to free data->data 2024-11-23 23:20:13 +01:00
policy_ns.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
policy_unpack.c apparmor: use kvfree_sensitive to free data->data 2024-11-23 23:20:13 +01:00
policy_unpack_test.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
procattr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
resource.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
secid.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stacksplitdfa.in Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
task.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00