CVE-2026-102010: GCC libstdc++ use-after-free in priority queue erase_if

CVE-2026-102010 · Severity: high · CVSS 7 · Published 2026-09-28

GCC's standard C++ library (libstdc++) contains a flaw in its priority queue implementation that can be triggered by calling the erase_if function. When exploited, this causes the application to crash or potentially corrupt memory, resulting in denial of service. Applications using C++ with binary heap priority queues are at risk if they rely on this library function.

Vendors: Gnu.

Quick answers

Is CVE-2026-102010 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-102010 being exploited in the wild.
How severe is CVE-2026-102010?
High severity, with a CVSS score of 7, published 28 September 2026.
Which products and versions are affected?
Gnu GCC 15, 16.
Is there a fix for CVE-2026-102010?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is CVE-2026-102010 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-102010?
Check whether you run Gnu GCC at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

A use-after-free vulnerability exists in libstdc++'s binary heap priority queue implementation when the erase_if function is called. The library reallocates storage but fails to update the internal entry pointer, leaving stale references to freed memory. An attacker who can trigger the erase_if operation on a priority queue can cause application crashes or memory corruption.

Affected products

  • GNU GCC 15, 16

Timeline

  • 2026-09-28: disclosed

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.