]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
isofs: Fix out of bound access for corrupted isofs image
authorJan Kara <jack@suse.cz>
Mon, 18 Oct 2021 10:37:41 +0000 (12:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Nov 2021 13:40:50 +0000 (14:40 +0100)
commitb0ddff8d68f2e43857a84dce54c3deab181c8ae1
treee758cc7ed80cf8cf4a860015d580e6870a1588a1
parenta9342139ac906e97675bb250ce69e0e683504943
isofs: Fix out of bound access for corrupted isofs image

commit e96a1866b40570b5950cda8602c2819189c62a48 upstream.

When isofs image is suitably corrupted isofs_read_inode() can read data
beyond the end of buffer. Sanity-check the directory entry length before
using it.

Reported-and-tested-by: syzbot+6fc7fb214625d82af7d1@syzkaller.appspotmail.com
CC: stable@vger.kernel.org
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/isofs/inode.c