linux-stable/security/selinux/ss
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
..
avtab.c selinux: declare data arrays const 2022-05-03 15:53:49 -04:00
avtab.h selinux: constify some avtab function arguments 2021-05-10 21:35:02 -04:00
conditional.c selinux/stable-5.18 PR 20220321 2022-03-21 20:47:54 -07:00
conditional.h selinux: refactor changing booleans 2020-08-17 21:00:33 -04:00
constraint.h
context.c
context.h selinux: declare read-only parameters const 2022-08-30 17:14:36 -04:00
ebitmap.c selinux: declare read-only parameters const 2022-08-30 17:14:36 -04:00
ebitmap.h selinux: declare read-only parameters const 2022-08-30 17:14:36 -04:00
hashtab.c selinux: fix bad cleanup on error in hashtab_duplicate() 2022-05-17 18:34:35 -04:00
hashtab.h selinux: refactor changing booleans 2020-08-17 21:00:33 -04:00
mls.c selinux: drop return statement at end of void functions 2022-02-18 10:42:12 -05:00
mls.h
mls_types.h selinux: declare read-only parameters const 2022-08-30 17:14:36 -04:00
policydb.c selinux: set next pointer before attaching to list 2023-08-30 16:11:07 +02:00
policydb.h selinux: Add boundary check in put_entry() 2022-06-14 21:52:37 -04:00
services.c selinux: enable use of both GFP_KERNEL and GFP_ATOMIC in convert_context() 2022-10-19 09:55:53 -04:00
services.h selinux: convert policy read-write lock to RCU 2020-08-25 08:34:47 -04:00
sidtab.c selinux: enable use of both GFP_KERNEL and GFP_ATOMIC in convert_context() 2022-10-19 09:55:53 -04:00
sidtab.h selinux: enable use of both GFP_KERNEL and GFP_ATOMIC in convert_context() 2022-10-19 09:55:53 -04:00
symtab.c
symtab.h