android_kernel_samsung_a7y1.../security
Jann Horn 076e5e2ff7 apparmor: enforce nullbyte at end of tag string
commit 8404d7a674c49278607d19726e0acc0cae299357 upstream.

A packed AppArmor policy contains null-terminated tag strings that are read
by unpack_nameX(). However, unpack_nameX() uses string functions on them
without ensuring that they are actually null-terminated, potentially
leading to out-of-bounds accesses.

Make sure that the tag string is null-terminated before passing it to
strcmp().

Cc: stable@vger.kernel.org
Fixes: 736ec752d95e ("AppArmor: policy routines for loading and unpacking policy")
Signed-off-by: Jann Horn <jannh@google.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-06 19:16:20 +02:00
..
apparmor apparmor: enforce nullbyte at end of tag string 2020-04-06 19:16:20 +02:00
defex_lsm Revert "security: defex: set Defex to Permissive status" 2020-04-06 19:40:02 +05:30
dsms A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
integrity A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
keys A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mstdrv A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
proca A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
samsung A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sdp A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
selinux selinux: never allow relabeling on context mounts 2020-04-06 16:42:43 +02:00
smack A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tima_uevent A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tomoyo A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tz_iccc A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
yama A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
commoncap.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
device_cgroup.c device_cgroup: fix RCU imbalance in error case 2020-04-06 15:57:12 +02:00
inode.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
lsm_audit.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
min_addr.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
security.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30