WSL2-Linux-Kernel/security/selinux
Christian Göttsche 22426e1ce6 selinux: set next pointer before attaching to list
commit 70d91dc9b2 upstream.

Set the next pointer in filename_trans_read_helper() before attaching
the new node under construction to the list, otherwise garbage would be
dereferenced on subsequent failure during cleanup in the out goto label.

Cc: <stable@vger.kernel.org>
Fixes: 4300590243 ("selinux: implement new format of filename transitions")
Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-08-30 16:18:17 +02:00
..
include selinux: allow FIOCLEX and FIONCLEX with policy capability 2022-04-08 14:23:55 +02:00
ss selinux: set next pointer before attaching to list 2023-08-30 16:18:17 +02:00
.gitignore
Kconfig
Makefile selinux: don't use make's grouped targets feature yet 2023-06-09 10:32:32 +02:00
avc.c
hooks.c selinux: allow FIOCLEX and FIONCLEX with policy capability 2022-04-08 14:23:55 +02:00
ibpkey.c
ima.c selinux: fix misuse of mutex_is_locked() 2022-03-02 11:47:48 +01:00
netif.c
netlabel.c
netlink.c
netnode.c
netport.c
nlmsgtab.c include/uapi/linux/xfrm.h: Fix XFRM_MSG_MAPPING ABI breakage 2021-09-14 10:31:35 +02:00
selinuxfs.c selinux: check return value of sel_make_avc_files 2022-04-08 14:23:04 +02:00
status.c
xfrm.c selinux: use correct type for context length 2022-04-08 14:23:55 +02:00