]> git.baikalelectronics.ru Git - kernel.git/commit
udf: Detect system inodes linked into directory hierarchy
authorJan Kara <jack@suse.cz>
Tue, 3 Jan 2023 09:03:35 +0000 (10:03 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:34:10 +0000 (09:34 +0100)
commitca2ba28af90ff8c755fc26831d3afd05844d6a21
treed337021048cf0956ed70f172105412baebcc6533
parentc974ade8ac57d2cf5764fef84771a91a1877b932
udf: Detect system inodes linked into directory hierarchy

commit a7ca8abb6267dedaee0c4a69970734202629d08e upstream.

When UDF filesystem is corrupted, hidden system inodes can be linked
into directory hierarchy which is an avenue for further serious
corruption of the filesystem and kernel confusion as noticed by syzbot
fuzzed images. Refuse to access system inodes linked into directory
hierarchy and vice versa.

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