Question: what if the whole presidential line of succession dies?
Answer: The 25th Amendment, Section 1, clarifies Article II, Section 1, Clause 6, by stating unequivocally that the vice president is the direct successor of the president, and becomes president if the incumbent dies, resigns or is removed from office.