]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
udf: Limit sparing table size
authorJan Kara <jack@suse.cz>
Fri, 25 Sep 2020 12:53:08 +0000 (14:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Oct 2020 09:08:22 +0000 (10:08 +0100)
commit9a3d398af87db2206996232edbf9a24d7388d7cc
treed8acc34662ff0bf672bf53ede77bfff4d0cd2b0f
parent6a71fc5ca9f573028c1fc99f64be85caaeef840f
udf: Limit sparing table size

[ Upstream commit 44ac6b829c4e173fdf6df18e6dd86aecf9a3dc99 ]

Although UDF standard allows it, we don't support sparing table larger
than a single block. Check it during mount so that we don't try to
access memory beyond end of buffer.

Reported-by: syzbot+9991561e714f597095da@syzkaller.appspotmail.com
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/udf/super.c