GNU gdb (GDB) 13.0.50.20220805-git exists to contain a heap use after free via the function add_pe_exported_sym() at /gdb/coff-pe-read.c.
gnu gdb 13.0.50.20220805-git