android_kernel_motorola_sm6375/fs/udf
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Arturo Giusti 80d505aee6 udf: Fix NULL pointer dereference in udf_symlink function
[ Upstream commit fa236c2b2d4436d9f19ee4e5d5924e90ffd7bb43 ]

In function udf_symlink, epos.bh is assigned with the value returned
by udf_tgetblk. The function udf_tgetblk is defined in udf/misc.c
and returns the value of sb_getblk function that could be NULL.
Then, epos.bh is used without any check, causing a possible
NULL pointer dereference when sb_getblk fails.

This fix adds a check to validate the value of epos.bh.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=213083
Signed-off-by: Arturo Giusti <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2021-07-19 08:53:08 +02:00
..
balloc.c
dir.c
directory.c
ecma_167.h udf: Verify domain identifier fields 2019-09-04 18:19:25 +02:00
file.c udf: augment UDF permissions on new inodes 2019-08-27 15:38:46 +02:00
ialloc.c udf: augment UDF permissions on new inodes 2019-08-27 15:38:46 +02:00
inode.c udf: fix silent AED tagLocation corruption 2021-03-17 17:03:41 +01:00
Kconfig
lowlevel.c
Makefile
misc.c
namei.c udf: Fix NULL pointer dereference in udf_symlink function 2021-07-19 08:53:08 +02:00
osta_udf.h
partition.c
super.c udf: fix the problem that the disc content is not displayed 2021-02-07 15:35:49 +01:00
symlink.c
truncate.c
udf_i.h udf: augment UDF permissions on new inodes 2019-08-27 15:38:46 +02:00
udf_sb.h
udfdecl.h udf: augment UDF permissions on new inodes 2019-08-27 15:38:46 +02:00
udfend.h
udftime.c
unicode.c