]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
isofs: Fix unchecked printing of ER records
authorJan Kara <jack@suse.cz>
Thu, 18 Dec 2014 16:26:10 +0000 (17:26 +0100)
committerZefan Li <lizefan@huawei.com>
Tue, 14 Apr 2015 09:33:47 +0000 (17:33 +0800)
commite44da0a95a798cbfbc1ec6760b3d1cfa531a9797
treecc0fb94902e962d9769828f60548cdd51ff94501
parent9939834ccd271dde9b020447ff01e0939b058346
isofs: Fix unchecked printing of ER records

commit 4e2024624e678f0ebb916e6192bd23c1f9fdf696 upstream.

We didn't check length of rock ridge ER records before printing them.
Thus corrupted isofs image can cause us to access and print some memory
behind the buffer with obvious consequences.

Reported-and-tested-by: Carl Henrik Lunde <chlunde@ping.uio.no>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Zefan Li <lizefan@huawei.com>
fs/isofs/rock.c