]> 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)
committerJiri Slaby <jslaby@suse.cz>
Wed, 7 Jan 2015 16:55:05 +0000 (17:55 +0100)
commit2329c797a9dc66982946026cbc1783e072ab8e33
tree7270fbe4574cff3dfb1f98c848a66ec8474f5f3c
parenta49482467c6a9a2dbf13a3a002379bc07d983b23
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: Jiri Slaby <jslaby@suse.cz>
fs/isofs/rock.c