linux-stable/security/selinux
Christian Göttsche d6b64d710e 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:11:07 +02:00
..
include lsm/stable-6.1 PR 20221003 2022-10-03 17:51:52 -07:00
ss selinux: set next pointer before attaching to list 2023-08-30 16:11:07 +02:00
.gitignore
avc.c selinux: declare data arrays const 2022-05-03 15:53:49 -04:00
hooks.c whack-a-mole: constifying struct path * 2022-10-06 17:31:02 -07:00
ibpkey.c selinux: various sparse fixes 2022-02-01 19:08:28 -05:00
ima.c selinux/stable-5.18 PR 20220321 2022-03-21 20:47:54 -07:00
Kconfig
Makefile selinux: don't use make's grouped targets feature yet 2023-06-09 10:34:24 +02:00
netif.c selinux: remove unused global variables 2021-01-12 09:49:01 -05:00
netlabel.c security: pass asoc to sctp_assoc_request and sctp_sk_clone 2021-11-03 11:09:20 +00:00
netlink.c selinux: mark some global variables __ro_after_init 2021-01-12 10:08:55 -05:00
netnode.c selinux: various sparse fixes 2022-02-01 19:08:28 -05:00
netport.c selinux: various sparse fixes 2022-02-01 19:08:28 -05:00
nlmsgtab.c selinux: resolve checkpatch errors 2022-05-03 13:59:15 -04:00
selinuxfs.c selinux: use int arrays for boolean values 2022-08-30 17:03:33 -04:00
status.c
xfrm.c selinux: use correct type for context length 2022-02-18 10:45:54 -05:00