linux/fs/isofs
Jan Kara 3ca762283e isofs: Fix unbounded recursion when processing relocated directories
commit 410dd3cf4c upstream.

We did not check relocated directory in any way when processing Rock
Ridge 'CL' tag. Thus a corrupted isofs image can possibly have a CL
entry pointing to another CL entry leading to possibly unbounded
recursion in kernel code and thus stack overflow or deadlocks (if there
is a loop created from CL entries).

Fix the problem by not allowing CL entry to point to a directory entry
with CL entry (such use makes no good sense anyway) and by checking
whether CL entry doesn't point to itself.

Reported-by: Chris Evans <cevans@google.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-09-05 16:34:12 -07:00
..
Kconfig
Makefile
compress.c
dir.c
export.c
inode.c isofs: Fix unbounded recursion when processing relocated directories 2014-09-05 16:34:12 -07:00
isofs.h isofs: Fix unbounded recursion when processing relocated directories 2014-09-05 16:34:12 -07:00
joliet.c
namei.c
rock.c isofs: Fix unbounded recursion when processing relocated directories 2014-09-05 16:34:12 -07:00
rock.h
util.c
zisofs.h