Skip to content
Snippets Groups Projects
Commit 2ebc4e3d authored by Jan Kara's avatar Jan Kara Committed by Frieder Schrempf
Browse files

udf: Avoid using corrupted block bitmap buffer


commit a90d4471 upstream.

When the filesystem block bitmap is corrupted, we detect the corruption
while loading the bitmap and fail the allocation with error. However the
next allocation from the same bitmap will notice the bitmap buffer is
already loaded and tries to allocate from the bitmap with mixed results
(depending on the exact nature of the bitmap corruption). Fix the
problem by using BH_verified bit to indicate whether the bitmap is valid
or not.

Reported-by: default avatar <syzbot+5f682cd029581f9edfd1@syzkaller.appspotmail.com>
CC: stable@vger.kernel.org
Link: https://patch.msgid.link/20240617154201.29512-2-jack@suse.cz


Fixes: 1e0d4adf ("udf: Check consistency of Space Bitmap Descriptor")
Signed-off-by: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d676809f
No related branches found
No related tags found
1 merge request!162🤖 Sync Bot: Update v6.1-ktn to Latest Stable Kernel (v6.1.103)
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment