Description
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.
Published: 2026-09-28
Score: 7 High
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service
Action: Patch Immediately
AI Analysis

Impact

A use‑after‑free flaw has been discovered in libstdc++ when an application calls the erase_if function on a binary heap priority queue. The reallocation performed by the function does not update an internal pointer, allowing an attacker who can trigger the call to cause a crash or corrupt memory. This results in a denial of service through application failure. The flaw is classified as CWE‑825, a memory integrity weakness.

Affected Systems

Affected systems include Red Hat Enterprise Linux versions 6, 7, 8, 9 and 10, the Red Hat Hardened Images distribution, the Hummingbird project, and the OpenShift Container Platform 4. Any package that includes the GCC 15 or GCC 16 toolsets on these platforms is potentially vulnerable.

Risk and Exploitability

The CVSS score of 7 indicates a high‑impact vulnerability. The EPSS score is not available and the issue is not listed in CISA KEV, suggesting limited known exploitation. Based on the description, the likely attack vector is local: an attacker who can execute code that calls erase_if on a binary heap in an application linked to the vulnerable GCC libstdc++ can trigger the use‑after‑free. No additional prerequisites are specified.

Generated by OpenCVE AI on September 28, 2026 at 20:51 UTC.

Remediation

Vendor 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.


OpenCVE Recommended Actions

  • Apply the latest Red Hat security update that contains the fixed GCC 15 or GCC 16 toolset on all affected RHEL and Red Hat Hardened Images systems.
  • If a patch is not yet available for a specific distribution, upgrade the GCC toolset to a version that includes the fix, such as GCC 16 or newer.
  • Review application code for use of erase_if on binary heap priority queues and refactor or remove such calls, or replace the heap implementation with one that does not rely on erase_if.

Generated by OpenCVE AI on September 28, 2026 at 20:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 26 Oct 2026 14:00:00 +0000

Type Values Removed Values Added
CPEs cpe:/a:redhat:enterprise_linux:8::appstream
cpe:/a:redhat:enterprise_linux:8::crb
cpe:/o:redhat:enterprise_linux:8::baseos
References

Fri, 02 Oct 2026 02:45:00 +0000

Type Values Removed Values Added
References

Wed, 30 Sep 2026 10:30:00 +0000

Type Values Removed Values Added
References

Tue, 29 Sep 2026 13:30:00 +0000

Type Values Removed Values Added
First Time appeared Gnu
Gnu gcc
Redhat hardened Images
Redhat openshift Container Platform
Vendors & Products Gnu
Gnu gcc
Redhat hardened Images
Redhat openshift Container Platform

Tue, 29 Sep 2026 13:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Mon, 28 Sep 2026 21:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 28 Sep 2026 19:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-825

Mon, 28 Sep 2026 19:00:00 +0000

Type Values Removed Values Added
Description 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.
Title Gcc-toolset-15-gcc: gcc: gcc-toolset-16: gcc: denial of service via use-after-free in binary heap erase_if
First Time appeared Redhat
Redhat enterprise Linux
Redhat hummingbird
Redhat openshift
CPEs cpe:/a:redhat:hummingbird:1
cpe:/a:redhat:openshift:4
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
Redhat hummingbird
Redhat openshift
References
Metrics cvssV3_1

{'score': 7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H'}


Subscriptions

Gnu Gcc
Redhat Enterprise Linux Hardened Images Hummingbird Openshift Openshift Container Platform
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-10-26T13:49:58.721Z

Reserved: 2026-09-28T17:33:28.667Z

Link: CVE-2026-102010

cve-icon Vulnrichment

Updated: 2026-09-28T20:53:16.730Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-09-28T19:16:48.830

Modified: 2026-10-26T14:16:22.300

Link: CVE-2026-102010

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-09-28T17:44:00Z

Links: CVE-2026-102010 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-29T13:20:25Z

Weaknesses
  • CWE-825

    Expired Pointer Dereference