linux-stable/fs/udf
Jan Kara 4d50988da0 udf: Fix uninitialized array access for some pathnames
[ Upstream commit 028f6055c9 ]

For filenames that begin with . and are between 2 and 5 characters long,
UDF charset conversion code would read uninitialized memory in the
output buffer. The only practical impact is that the name may be prepended a
"unification hash" when it is not actually needed but still it is good
to fix this.

Reported-by: syzbot+cd311b1e43cc25f90d18@syzkaller.appspotmail.com
Link: https://lore.kernel.org/all/000000000000e2638a05fe9dc8f9@google.com
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-07-27 08:56:44 +02:00
..
Kconfig fs: build the legacy direct I/O code conditionally 2023-01-26 10:30:56 -07:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
balloc.c udf: Check consistency of Space Bitmap Descriptor 2023-02-07 11:49:43 +01:00
dir.c udf: Convert udf_readdir() to new directory iteration 2023-01-09 10:39:51 +01:00
directory.c udf: Avoid directory type conversion failure due to ENOMEM 2023-02-09 10:37:12 +01:00
ecma_167.h udf: Get rid of 0-length arrays in struct fileIdentDesc 2021-08-11 16:54:44 +02:00
file.c \n 2023-02-20 12:44:08 -08:00
ialloc.c \n 2023-02-20 12:44:08 -08:00
inode.c udf: Use folios in udf_adinicb_writepage() 2023-03-08 18:55:25 +01:00
lowlevel.c udf: Unify types in anchor block detection 2023-01-26 16:46:32 +01:00
misc.c udf: Drop VARCONV support 2023-01-26 16:46:32 +01:00
namei.c Revert "udf: Protect rename against modification of moved directory" 2023-07-19 16:36:55 +02:00
osta_udf.h udf: Get rid of 0-length arrays 2021-08-11 16:54:44 +02:00
partition.c udf: remove reporting loc in debug output 2023-02-07 12:02:09 +01:00
super.c udf: Limit file size to 4TB 2023-01-26 16:46:37 +01:00
symlink.c \n 2023-02-20 12:44:08 -08:00
truncate.c udf: use wrapper i_blocksize() in udf_discard_prealloc() 2023-03-13 11:16:16 +01:00
udf_i.h udf: Preserve link count of system files 2023-01-09 10:39:53 +01:00
udf_sb.h udf: Drop VARCONV support 2023-01-26 16:46:32 +01:00
udfdecl.h udf: Move udf_adinicb_readpage() to inode.c 2023-01-26 16:46:36 +01:00
udfend.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
udftime.c udf: convert inode stamps to timespec64 2018-06-27 13:58:00 +02:00
unicode.c udf: Fix uninitialized array access for some pathnames 2023-07-27 08:56:44 +02:00