]> 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:25:51 +0000 (16:25 +0200)
commitfc5d14e5bd3740f6e35594440f89a7f50aabba26
treed088dbcf18763fdc8713cd9681f85a719fdf3aff
parentac98d54630d5b52e3f684d872f0d82c06c418ea9
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