GCC v12.0 was discovered to contain an uncontrolled recursion via the component libiberty/rust-demangle.c. This vulnerability allows attackers to cause a Denial of Service (DoS) by consuming excessive CPU and memory resources.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103841
https://euvd.enisa.europa.eu/vulnerability/EUVD-2021-32895
https://cert-portal.siemens.com/productcert/html/ssa-398330.html