]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
udf: Verify partition map count
authorJan Kara <jack@suse.cz>
Fri, 11 Jul 2025 17:01:20 +0000 (19:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:28:15 +0000 (16:28 +0200)
commit5a1e1ab8379639315535d5d77d70bc9af114c2f8
tree82404882f01c4366f789357f51cc6b5e79d32271
parentce8da5d13d8c2a7b30b2fb376a22e8eb1a70b8bb
udf: Verify partition map count

[ Upstream commit 1a11201668e8635602577dcf06f2e96c591d8819 ]

Verify that number of partition maps isn't insanely high which can lead
to large allocation in udf_sb_alloc_partition_maps(). All partition maps
have to fit in the LVD which is in a single block.

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