Red Hat Enterprise Linux 10
Gcc-toolset-15-gcc: gcc: gcc-toolset-16: gcc: denial of service via use-after-free in binary heap erase_if
A flaw was found in GCC. When an application calls the erase_if function on a binary heap priority queue in libstdc++, the library reallocates storage but fails to update its internal entry pointer. An attacker capable of triggering this operation can exploit this use-after-free condition, leading to a Denial of Service (DoS) via an application crash or potential memory corruption.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
Fixed in 0:15.2.1-7.1.el10_2
Fixed in 0:15.2.1-8.1.el10_3
Fixed in 0:16.2.1-1.3.el10_3
Fixed in 0:14.4.1-4.el10_3
Fixed in 0:14.3.1-4.5.el10_2
Fixed in 0:8.5.0-30.el8_10
Fixed in 0:15.2.1-7.2.el8_10
Fixed in 0:8.5.0-30.el8_10
Fixed in 0:15.2.1-7.3.el9_9
Fixed in 0:11.5.0-16.el9_9
Fixed in 0:16.2.1-1.3.el9_9
Fixed in 0:11.5.0-16.el9_9
Fixed in 0:11.5.0-15.el9_8
Fixed in 0:15.2.1-7.3.el9_8
Fixed in 13.5.0-0.2.hum1
Fixed in 16.2.1-3.hum1
Fixed in 16.2.1-3.2.hum1
Mitigation
Upgrade Red Hat Enterprise Linux 10 to 0:15.2.1-7.1.el10_2 or later.
Upgrade Red Hat Enterprise Linux 10 to 0:15.2.1-8.1.el10_3 or later.
Upgrade Red Hat Enterprise Linux 10 to 0:16.2.1-1.3.el10_3 or later.
Upgrade Red Hat Enterprise Linux 10 to 0:14.4.1-4.el10_3 or later.
Upgrade Red Hat Enterprise Linux 10.2 Extended Update Support to 0:14.3.1-4.5.el10_2 or later.
Upgrade Red Hat Enterprise Linux 8 to 0:8.5.0-30.el8_10 or later.
Upgrade Red Hat Enterprise Linux 8 to 0:15.2.1-7.2.el8_10 or later.
Upgrade Red Hat Enterprise Linux 8 to 0:8.5.0-30.el8_10 or later.
Upgrade Red Hat Enterprise Linux 9 to 0:15.2.1-7.3.el9_9 or later.
Upgrade Red Hat Enterprise Linux 9 to 0:11.5.0-16.el9_9 or later.
Upgrade Red Hat Enterprise Linux 9 to 0:16.2.1-1.3.el9_9 or later.
Upgrade Red Hat Enterprise Linux 9 to 0:11.5.0-16.el9_9 or later.
Upgrade Red Hat Enterprise Linux 9.8 Extended Update Support to 0:11.5.0-15.el9_8 or later.
Upgrade Red Hat Enterprise Linux 9.8 Extended Update Support to 0:15.2.1-7.3.el9_8 or later.
Upgrade Red Hat Hardened Images to 13.5.0-0.2.hum1 or later.
Upgrade Red Hat Hardened Images to 16.2.1-3.hum1 or later.
Upgrade Red Hat Hardened Images to 16.2.1-3.2.hum1 or later.
Workaround
Applications can mitigate this issue by avoiding calls to erase_if() on __gnu_pbds::priority_queue containers that use the binary_heap_tag backend. Where predicate-based removal is required, use an alternative container or a different heap backend in application code. Apart from applying a fixed package when one becomes available, no other mitigation is currently available.
References
- Vendor advisory access.redhat.com/errata/RHSA-2026:73642
- Vendor advisory access.redhat.com/errata/RHSA-2026:74569
- Vendor advisory access.redhat.com/errata/RHSA-2026:89830
5 more
- Vendor advisory access.redhat.com/errata/RHSA-2026:89891
- Vendor advisory access.redhat.com/errata/RHSA-2026:90915
- Vendor advisory access.redhat.com/errata/RHSA-2026:95581
- Vendor advisory access.redhat.com/errata/RHSA-2026:98474
- Vendor advisory access.redhat.com/errata/RHSA-2026:98475
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.