A use-after-free exists in Python through 3.9 via heappushpop in heapq.
CVE-2022-48560 (Candidate) is related to these bugs: