CVE-2019-13103: disk: stop infinite recursion in DOS Partitions
authorPaul Emge <paulemge@forallsecure.com>
Mon, 8 Jul 2019 23:37:03 +0000 (16:37 -0700)
committerTom Rini <trini@konsulko.com>
Thu, 18 Jul 2019 15:31:28 +0000 (11:31 -0400)
commit232e2f4fd9a24bf08215ddc8c53ccadffc841fb5
tree2bde1d5dff61061f52f05ffd2d8fa353484a73c0
parent1493b140e4a9211635964cd1c0276e599405f403
CVE-2019-13103: disk: stop infinite recursion in DOS Partitions

part_get_info_extended and print_partition_extended can recurse infinitely
while parsing a self-referential filesystem or one with a silly number of
extended partitions. This patch adds a limit to the number of recursive
partitions.

Signed-off-by: Paul Emge <paulemge@forallsecure.com>
disk/part_dos.c