CVE-2026-102010

Gcc-toolset-15-gcc: gcc: gcc-toolset-16: gcc: denial of service via use-after-free in binary heap erase_if

Published Sep 28, 2026 CVSS 3.1 · 7 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

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

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 available
History
Type Values Removed Values Added
First Time appeared Redhat enterprise Linux Eus
Redhat rhel Eus
CPEs cpe:/a:redhat:rhel_eus:9.8::appstream
cpe:/a:redhat:rhel_eus:9.8::crb
cpe:/o:redhat:enterprise_linux_eus:10.2
cpe:/o:redhat:rhel_eus:9.8::baseos
Vendors & Products Redhat enterprise Linux Eus
Redhat rhel Eus
References
Type Values Removed Values Added
CPEs cpe:/a:redhat:enterprise_linux:9::appstream
cpe:/a:redhat:enterprise_linux:9::crb
cpe:/o:redhat:enterprise_linux:9::baseos
References
Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:10.3
References
Type Values Removed Values Added
First Time appeared Redhat openshift Ai
CPEs cpe:/a:redhat:openshift_ai
Vendors & Products Redhat openshift Ai
References
Type Values Removed Values Added
First Time appeared Redhat rhel Els
CPEs 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
cpe:/a:redhat:enterprise_linux:10
cpe:/a:redhat:enterprise_linux:8
cpe:/a:redhat:enterprise_linux:9
cpe:/o:redhat:rhel_els:6
cpe:/o:redhat:rhel_els:7
Vendors & Products Redhat rhel Els
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:5
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
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
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Weaknesses CWE-825
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'}

Weaknesses
  • CWE-825

    Expired Pointer Dereference

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 11, 2026, 7:17 PM
Reserved
Sep 28, 2026, 5:33 PM
Status
Awaiting Analysis
Published
Sep 28, 2026, 7:16 PM
Modified
Nov 11, 2026, 8:17 PM
Severity
Moderate
Public date
Sep 28, 2026, 5:44 PM