Star64_linux/security
Christian Göttsche 4f1f7bbf7e 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-09-05 01:25:08 +08:00
..
apparmor apparmor: fix missing error check for rhashtable_insert_fast 2023-08-20 15:24:47 +08:00
bpf bpf: Implement task local storage 2020-11-06 08:08:37 -08:00
integrity integrity: Fix possible multiple allocation in integrity_inode_get() 2023-08-20 15:24:48 +08:00
keys security: keys: Modify mismatched function name 2023-08-20 16:01:12 +08:00
landlock landlock: Fix same-layer rule unions 2023-04-19 17:50:02 +08:00
loadpin LoadPin: Ignore the "contents" argument of the LSM hooks 2023-04-19 17:58:04 +08:00
lockdown Merge branch 'next-general' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security 2020-06-02 17:36:24 -07:00
safesetid LSM: SafeSetID: Mark safesetid_initialized as __initdata 2021-06-10 09:52:32 -07:00
selinux selinux: set next pointer before attaching to list 2023-09-05 01:25:08 +08:00
smack Fix incorrect type in assignment of ipv6 port for audit 2023-04-19 17:47:16 +08:00
tomoyo tomoyo: fix broken dependency on *.conf.default 2023-04-19 17:58:50 +08:00
yama task_work: cleanup notification modes 2020-10-17 15:05:30 -06:00
commoncap.c capabilities: fix potential memleak on error path from vfs_getxattr_alloc() 2023-04-19 17:56:03 +08:00
device_cgroup.c device_cgroup: Roll back to original exceptions after copy failure 2023-04-19 17:58:18 +08:00
inode.c Merge branch 'work.mount0' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2019-07-19 10:42:02 -07:00
Kconfig x86/retbleed: Add fine grained Kconfig knobs 2023-04-19 17:51:33 +08:00
Kconfig.hardening security: Restrict CONFIG_ZERO_CALL_USED_REGS to gcc or clang > 15.0.6 2023-04-19 17:58:05 +08:00
lsm_audit.c audit: remove unnecessary 'ret' initialization 2021-06-11 13:21:28 -04:00
Makefile security: remove unneeded subdir-$(CONFIG_...) 2021-09-03 08:17:20 +09:00
min_addr.c sysctl: pass kernel pointers to ->proc_handler 2020-04-27 02:07:40 -04:00
security.c ima: Align ima_file_mmap() parameters with mmap_file LSM hook 2023-04-19 18:00:18 +08:00