"And you shall eat the flesh of your sons" (Leviticus 26:29) — as in the deed that occurred in Samaria concerning the woman who cried out to Jehoram son of Ahab, king of Israel (2 Kings 6:25-26), and as in the deed concerning Doeg son of Joseph in the [time of the] Second Temple. "And the flesh of your daughters you shall eat" (Leviticus 26:29) — [this comes] to include sons who ate the flesh of their father.
Cannibalism in Siege of Samaria and the Tale of Doeg ben Joseph
Midrash Aggadah, Leviticus 26:29
וכלתם בשר בניכם. כמעשה שנהיה בשומרון אודות האשה אשר צעקה אל יהורם בן אחאב מלך ישראל (מ"ב ו' כ"ה כ"ו), וכמעשה בדואג בן יוסף בבית שני: ובשר בנותיכם תאכלו. להביא בנים שאכלו בשר אביהם: