CVE-2026-115455
gcc: Stack overflow in std::bitset on libstdc++
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · October 29, 2026
Updated · November 4, 2026
Description
A flaw was found in GCC libstdc++. When an application extracts data into a bitset from a wide-character stream, internal stack memory allocation fails to properly account for character size and alignment. An attacker capable of supplying crafted input to an affected application could trigger a stack-based buffer overflow leading denial of service (DoS).
Statement
This vulnerability is rated as Moderate impact for Red Hat products because triggering the condition requires an application to extract untrusted wide-character input into a bitset container, an uncommon design pattern in standard enterprise deployments. In typical configurations, applications are only exposed if they specifically process external wide streams using this functionality. Furthermore, Red Hat compiler stack-hardening features generally cause the affected binary to abort upon stack corruption, constraining the risk to a denial of service.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
CVSS / CWE
CVSS 3.1 · 6.5CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
CWE-787 · Out-of-bounds Write