summaryrefslogtreecommitdiff
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2025-09-04 10:25:37 +0300
committerPaul Moore <paul@paul-moore.com>2025-09-04 18:06:33 +0300
commit2aef21a6a60305244ab3508c5d15b24a8ac8e66f (patch)
tree963eb1f15bcdbdd2950817829c0bced7a8f98de1 /security/selinux/hooks.c
parent0ffbc876d03c80b83d70aeefac7bbb94a9f4e135 (diff)
downloadlinux-2aef21a6a60305244ab3508c5d15b24a8ac8e66f.tar.xz
audit: init ab->skb_list earlier in audit_buffer_alloc()
syzbot found a bug in audit_buffer_alloc() if nlmsg_new() returns NULL. We need to initialize ab->skb_list before calling audit_buffer_free() which will use both the skb_list spinlock and list pointers. Fixes: eb59d494eebd ("audit: add record for multiple task security contexts") Reported-by: syzbot+bb185b018a51f8d91fd2@syzkaller.appspotmail.com Closes: https://lore.kernel.org/lkml/68b93e3c.a00a0220.eb3d.0000.GAE@google.com/T/#u Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Casey Schaufler <casey@schaufler-ca.com> Cc: Paul Moore <paul@paul-moore.com> Cc: Eric Paris <eparis@redhat.com> Cc: audit@vger.kernel.org Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions