]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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:42:06 +0000 (16:42 +0200)
commitc9b9843dd4abfad3b599af9183a57a59bcea0756
treeedd2e956a46a30a94e8c16e9c7efc8f36c6c5ee5
parent4eb946e960cbd9f4e4e251a3f26db52ea8fbb810
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