]> git.baikalelectronics.ru Git - kernel.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)
committerJan Kara <jack@suse.cz>
Tue, 19 Oct 2021 10:51:02 +0000 (12:51 +0200)
commitb0b4b5e57aafc30d5523182819e4e924f57a0952
treebc072688dd9d5cf68965fb96e6f34de6c9675151
parentbae182c12c3cf2b515ac92634ebee0754a8f35ec
isofs: Fix out of bound access for corrupted isofs image

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>
fs/isofs/inode.c