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>
Wed, 17 Jun 2020 14:40:36 +0000 (16:40 +0200)
commit9c09a772acb4d2e23f2be059b873e3e200848794
tree99c60f59201878da757ca387fa70a2ace7903f07
parentb5c8896bc14f54e5c4dd5a6e42879f125b8abd2d
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