summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2024-06-17 18:41:52 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-08-03 09:49:34 +0300
commit271cab2ca00652bc984e269cf1208699a1e09cdd (patch)
tree0818ee0e3600e58e1e13e4ae5d4c9cbe30f19a42 /include/uapi/linux
parent8c95f5bde8e38c6e81bc9309a51ca35097217711 (diff)
downloadlinux-271cab2ca00652bc984e269cf1208699a1e09cdd.tar.xz
udf: Avoid using corrupted block bitmap buffer
commit a90d4471146de21745980cba51ce88e7926bcc4f 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: syzbot+5f682cd029581f9edfd1@syzkaller.appspotmail.com CC: stable@vger.kernel.org Link: https://patch.msgid.link/20240617154201.29512-2-jack@suse.cz Fixes: 1e0d4adf17e7 ("udf: Check consistency of Space Bitmap Descriptor") Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions