Files
linux/fs
Arturo Giusti 3638705ecd udf: Fix NULL pointer dereference in udf_symlink function
[ Upstream commit fa236c2b2d ]

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 <koredump@protonmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-20 16:15:59 +02:00
..
2020-11-05 11:08:53 +01:00
2021-06-30 08:48:14 -04:00
2021-05-22 10:59:49 +02:00
2019-08-06 19:06:51 +02:00
2021-07-20 16:15:46 +02:00
2018-08-17 16:20:28 -07:00
2021-07-20 16:15:49 +02:00
2020-06-22 09:05:01 +02:00
2020-03-05 16:42:12 +01:00
2021-01-30 13:32:11 +01:00
2020-03-25 08:06:14 +01:00
2021-05-22 10:59:50 +02:00