summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorJann Horn <jannh@google.com>2019-05-28 17:32:26 +0200
committerJohn Johansen <john.johansen@canonical.com>2019-06-18 16:04:16 -0700
commit8404d7a674c49278607d19726e0acc0cae299357 (patch)
treef78a44caa2a078b9325289d67d05993024aab15f /samples
parent23375b13f98c5464c2b4d15f983cc062940f1f4e (diff)
apparmor: enforce nullbyte at end of tag string
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>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions