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:25:05 +0000 (10:25 +0200)
commit61f8b8965c11df8f0eedce895f8eeb6eb7c1538f
treeee420c400c5fcbc2379c69bac1687bf41f36bff0
parent97efdabe90f035d16d3f79218055e87c76ec02e6
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