---
id: CVE-2026-102010
title: A flaw was found in GCC
summary: >-
  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…
severity: high
cvss: 7
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H'
cwe:
  - CWE-825
vendor: Red Hat
product: gcc13-main
affected:
  - gcc13-main (all versions)
  - gcc (all versions)
  - gcc-toolset-15-gcc (all versions)
  - gcc-toolset-16
  - gcc-toolset-16-gcc (all versions)
  - mingw-gcc (all versions)
  - compat-gcc-295 (all versions)
  - compat-gcc-296 (all versions)
  - compat-gcc-32 (all versions)
  - compat-gcc-34 (all versions)
  - gcc (all versions)
  - compat-gcc-32 (all versions)
  - compat-gcc-34 (all versions)
  - compat-gcc-44 (all versions)
  - gcc (all versions)
  - gcc (all versions)
  - gcc-toolset-14-gcc
  - gcc-toolset-15-gcc (all versions)
  - mingw-gcc (all versions)
  - rteval-loads (all versions)
  - gcc (all versions)
  - gcc-toolset-14-gcc (all versions)
  - gcc-toolset-15-gcc (all versions)
  - gcc-toolset-16
  - gcc-toolset-16-gcc (all versions)
  - mingw-gcc (all versions)
  - gcc (all versions)
  - openshift/ose-rhel-coreos-8 (all versions)
  - openshift/ose-rhel-coreos-9 (all versions)
patched:
  - hardened_images
published: '2026-09-28'
updated: '2026-10-02'
sourceUpdated: '2026-10-02T03:16:38.620'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-102010'
references:
  - url: 'https://access.redhat.com/errata/RHSA-2026:73642'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2026:74569'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/security/cve/CVE-2026-102010'
    label: secalert@redhat.com
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2478395'
    label: secalert@redhat.com
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-102010.json
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-102010'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-102010'
  - url: 'https://access.redhat.com/errata/RHSA-2026:89830'
    label: 'RHSA-2026:89830'
tags:
  - nvd
  - cve.org
  - csaf
  - vex
  - red-hat
epss: 0.00333
epssPercentile: 0.26359
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-09-28T20:53:04.426502Z'
ingestedAt: '2026-09-28T19:19:07.733Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **Red Hat VEX** · Moderate · affected: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9, Red Hat OpenShift Container Platform 4 · no fix planned: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, … · updated 2026-10-02 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-102010.json)
- **RHSA-2026:73642** · Red Hat · fixed in: Red Hat Hardened Images · released 2026-09-30 · [advisory](https://access.redhat.com/errata/RHSA-2026:73642)
- **RHSA-2026:74569** · Red Hat · fixed in: Red Hat Hardened Images · released 2026-10-01 · [advisory](https://access.redhat.com/errata/RHSA-2026:74569)
