Files
linux/security/apparmor
Jann Horn 31c9958068 apparmor: enforce nullbyte at end of tag string
commit 8404d7a674 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: 736ec752d9 ("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>
2019-06-25 11:35:54 +08:00
..
2017-04-07 08:58:35 +10:00
2018-02-09 11:30:01 -08:00
2018-07-12 10:04:15 -04:00
2018-05-03 00:50:12 -07:00
2018-05-03 00:50:30 -07:00
2018-02-09 11:30:01 -08:00
2018-06-07 01:51:01 -07:00