Skip to content
Commit c8f1140c authored by Jan Kara's avatar Jan Kara
Browse files

udf: Avoid invalid LVID used on mount



udf_load_logicalvolint() loads logical volume integrity descriptors.
Since there can be multiple blocks with LVIDs, we verify the contents of
only the last (prevailing) LVID found. However if we fail to load the
last LVID (either due to IO error or because it's checksum fails to
match), we never perform the verification of validity of the LVID we are
going to use. If such LVID contains invalid data, we can hit
out-of-bounds access or similar issues. Fix the problem by verifying
each LVID we are potentially going to accept.

Reported-by: default avatarRobert Morris <rtm@csail.mit.edu>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent d0aa7260
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment