]> git.baikalelectronics.ru Git - kernel.git/commit
udf: Check component length before reading it
authorJan Kara <jack@suse.cz>
Fri, 19 Dec 2014 13:27:55 +0000 (14:27 +0100)
committerJan Kara <jack@suse.cz>
Sun, 21 Dec 2014 21:42:19 +0000 (22:42 +0100)
commit79a6ed9a6eb57924674de89045d5def23c7f7728
tree33e14928a5c2fdee03df67e2e1e4f9991e056fc7
parentb00fa6ad9a7871a83419a789d70ff33a6e3ac35d
udf: Check component length before reading it

Check that length specified in a component of a symlink fits in the
input buffer we are reading. Also properly ignore component length for
component types that do not use it. Otherwise we read memory after end
of buffer for corrupted udf image.

Reported-by: Carl Henrik Lunde <chlunde@ping.uio.no>
CC: stable@vger.kernel.org
Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/symlink.c