Smack: slab-out-of-bounds in vsscanf
authorCasey Schaufler <casey@schaufler-ca.com>
Thu, 9 Apr 2020 23:35:28 +0000 (16:35 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Jun 2020 08:24:12 +0000 (10:24 +0200)
commitd9010023962a37eeaf1c75bdc5fcb15e235a5d1a
tree9d8ed02db0ed57ab27246da2f0498a53a9002515
parent5317abc46279d900c7e63cc122682d819da658bd
Smack: slab-out-of-bounds in vsscanf

commit 84e99e58e8d1e26f04c097f4266e431a33987f36 upstream.

Add barrier to soob. Return -EOVERFLOW if the buffer
is exceeded.

Suggested-by: Hillf Danton <hdanton@sina.com>
Reported-by: syzbot+bfdd4a2f07be52351350@syzkaller.appspotmail.com
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
security/smack/smackfs.c