]> git.baikalelectronics.ru Git - kernel.git/commit
Smack: fix another vsscanf out of bounds
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 23 Jul 2020 15:22:19 +0000 (18:22 +0300)
committerCasey Schaufler <casey@schaufler-ca.com>
Mon, 27 Jul 2020 20:35:03 +0000 (13:35 -0700)
commit1653f585afb8b2d715c5dca9802057b8a45239f3
tree0f8604f6e759a170eb0e6c5e8e25edd9b0fbc231
parent6931a5926c46a8bdec1f41c803cc118adcfbd6f7
Smack: fix another vsscanf out of bounds

This is similar to commit 60493a607688 ("Smack: slab-out-of-bounds in
vsscanf") where we added a bounds check on "rule".

Reported-by: syzbot+a22c6092d003d6fe1122@syzkaller.appspotmail.com
Fixes: 43ef6d1e05b3 ("Smack: allow for significantly longer Smack labels v4")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
security/smack/smackfs.c