#1152817 gcc-14: CVE-2026-114690 CVE-2026-114691 CVE-2026-115455

Package:
src:gcc-14
Source:
src:gcc-14
Submitter:
Moritz Mühlenhoff
Date:
2026-11-07 16:21:01 UTC
Severity:
normal
Tags:
#1152817#5
Date:
2026-11-01 19:46:48 UTC
From:
To:
Hi,

The following vulnerabilities were published for gcc-14.

CVE-2026-114690[0]:
| A flaw was found in GCC. An out-of-bounds memory access
| vulnerability exists in the libstdc++ parallel search implementation
| due to an undersized internal buffer. A local attacker can exploit
| this flaw by providing crafted search data to an application
| compiled with parallel mode, causing the process to crash and
| leading to a Denial of Service (DoS).

https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=c1f32b67510f6f9998deadaef5090b6663adb979 (main)
https://bugzilla.redhat.com/show_bug.cgi?id=2478652


CVE-2026-114691[1]:
| A flaw was found in the libstdc++ component of GCC. An attacker who
| can provide an excessively large element count to a boolean vector
| (std::vector<bool>) constructor can trigger an integer wrap during
| internal memory calculations. This issue leaves the container in an
| inconsistent state, leading to out-of-bounds memory access and
| resulting in an application crash or a Denial of Service (DoS)
| during subsequent operations.

https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=2fd8866591b5aea7098835f80ab7e176382175ae
https://bugzilla.redhat.com/show_bug.cgi?id=2478508


CVE-2026-115455[2]:
| 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).

https://gcc.gnu.org/cgit/gcc/commit/?id=5d419c69ce2e6b86d7da75f18736904885674219
https://bugzilla.redhat.com/show_bug.cgi?id=2562933


If you fix the vulnerabilities please also make sure to include the
CVE (Common Vulnerabilities & Exposures) ids in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2026-114690
https://www.cve.org/CVERecord?id=CVE-2026-114690
[1] https://security-tracker.debian.org/tracker/CVE-2026-114691
https://www.cve.org/CVERecord?id=CVE-2026-114691
[2] https://security-tracker.debian.org/tracker/CVE-2026-115455
https://www.cve.org/CVERecord?id=CVE-2026-115455

Please adjust the affected versions in the BTS as needed.

#1152817#12
Date:
2026-11-03 13:14:18 UTC
From:
To:
Hi,

Upstream fix commits for the three libstdc++ CVEs, from the
gcc-mirror/gcc branch history:

CVE-2026-114690 "Fix buffer overrun in __gnu_parallel search"
master c1f32b67510f, gcc-16 f5808934bc17, gcc-15 b346c341218a,
gcc-14 272e2eb081eb (all committed 2026-10-29)

CVE-2026-114691 "Fix overflow in std::vector<bool> constructors"
master 2fd8866591b5, gcc-16 2ab9ded76e87, gcc-15 dfc15010eda6,
gcc-14 08f9fae91b64 (all committed 2026-10-29)

CVE-2026-115455 "Fix stack corruption in std::bitset stream
extraction [PR124370]" plus the follow-up "do not zero stack buffer
in std::bitset extraction"
master 5d419c69ce2e + 2763d2c22442
gcc-16 3723bab81697 + feac724ca2f7 (2026-10-14)
gcc-15 2ffbcde8634f + 4e269ed1088e (2026-10-26)
gcc-14 b0392114a03a + ad5ec18348ab (2026-10-27)

Compared with the branch snapshots in the current unstable uploads:

gcc-16 16.2.0-4 (git 20261024): already contains the CVE-2026-115455
fix. Its changelog entry lists PR libstdc++/124370, and
debian/patches/git-updates.diff contains the new _Buffer code in
include/std/bitset (no more __builtin_alloca(_Nb)). The 114690 and
114691 fixes are newer than the snapshot.
gcc-15 15.3.0-5 (git 20261024): none of the three. The gcc-15 bitset
backport is from 10-26.
gcc-14 14.4.0-3 (git 20261009): none of the three.

So the next branch update after 2026-10-29 picks up all three on each
branch. For gcc-16, CVE-2026-115455 can probably be marked as fixed in
16.2.0-4.

All three fixes are in libstdc++ headers (parallel/search.h,
bits/stl_bvector.h, std/bitset), so programs only get them once they are
rebuilt against the fixed headers. CVE-2026-114690 only affects code
built with Parallel Mode (_GLIBCXX_PARALLEL).

This is a static check of the upstream branch history and the Debian
source packages only; I did not build gcc or run a reproducer.

Regards

#1152817#17
Date:
2026-11-07 16:19:24 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
gcc-14, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1152817@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Matthias Klose <doko@debian.org> (supplier of updated gcc-14 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sat, 07 Nov 2026 16:51:32 +0100
Source: gcc-14
Architecture: source
Version: 14.4.0-4
Distribution: unstable
Urgency: medium
Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org>
Changed-By: Matthias Klose <doko@debian.org>
Closes: 1152817
Changes:
 gcc-14 (14.4.0-4) unstable; urgency=medium
 .
   * Update to git 20261107 from the gcc-14 branch.
     - Fix PR target/127274 (PPC), PR target/128388 (x86), PR target/121007,
       PR target/128310 (x86), PR target/128270 (x86), PR target/128271 (x86),
       PR target/127459 (x86), PR target/127692 (S390),
       PR target/127393 (AArch64), PR target/127393 (AArch64),
       PR target/126096 (AArch64), PR tree-optimization/127784,
       PR target/127897 (x86),  PR target/128105 (x86), PR middle-end/127517,
       PR middle-end/127492, PR middle-end/127336, PR tree-optimization/127149,
       PR middle-end/127474, PR c/127383, PR c++/125536, PR fortran/127881,
       PR fortran/127683, PR fortran/110421, PR preprocessor/121508,
       PR preprocessor/123339, PR fortran/127845, PR libstdc++/120386,
       PR libstdc++/120384, PR libstdc++/125228.
   * Security issues addressed upstream in this upload (closes: #1152817):
     - Addresses CVE-2026-114690, buffer overrun in __gnu_parallel search.
     - Addresses CVE-2026-114691, overflow in std::vector<bool> constructors.
     - Addresses CVE-2026-115455, PR libstdc++/124370.
Checksums-Sha1:
 afda1681558d0fcb4ec720157fcba6c1a4e59af1 42370 gcc-14_14.4.0-4.dsc
 015c84edb2296b8e30b763177e1d83aeb84f8fbd 667296 gcc-14_14.4.0-4.debian.tar.xz
 420e813212a5c2aa79b7dfef48a7455652fdc084 10025 gcc-14_14.4.0-4_source.buildinfo
Checksums-Sha256:
 c70db6144da43c442e70b87767f3993348ff206a4783d45a7badd8383dbce2fa 42370 gcc-14_14.4.0-4.dsc
 e77553a75f1b850343861e2637125ae9e0af4adb48808aee6978989d0e82728d 667296 gcc-14_14.4.0-4.debian.tar.xz
 d73fd204a2999242aec390b6881f16644d7d1b8e107db20449051c13e6081e91 10025 gcc-14_14.4.0-4_source.buildinfo
Files:
 7c8331915973c7139914b888516a6cf0 42370 devel optional gcc-14_14.4.0-4.dsc
 6e7936b714ea57211179cddc17832a07 667296 devel optional gcc-14_14.4.0-4.debian.tar.xz
 0dfde2362c9cdb9b5864f3aa8dc98b68 10025 devel optional gcc-14_14.4.0-4_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJDBAEBCgAuFiEE1WVxuIqLuvFAv2PWvX6qYHePpvUFAmrvTA8QHGRva29AZGVi
aWFuLm9yZwAKCRC9fqpgd4+m9b6GD/d+cq8MBB9Ei4e2j+lE1yYmpTQoaZpqzdHl
HMAFhvHUp4VExIQ9AUcT/IylqnErXn9eboieXRI1zRAjPEg6grrwpho04j6Xxt+Q
PEnAIP5FcrASssma3KD4xK2pCc7Uu3XUp5eJtc2EeRTbF9jJcn3XtlJXrcFldkHz
dLZZQ/WKglnuOyHiikP0/+ziHCNTK/HmwSXUr3kh2t9kOmhlN2ai3v26MZ3sDQYH
SXsSvD5k5/VZUPxacxwEEsFcn3py3vfuAPykerI9RzWys46cLGyfeQJ4UMBUF+Od
6A1CsftXo1upO9I4Lr6/HR7ggmifEQ+1Zcgf4Ug6CDY/+RZbhlQhK+fdPciWj4WN
FYY9yAbEbKd+xaC49Hn46An9SM8+oEZQta+44xKB07XVMnjpQE0J4AERCkiVkFPq
PRQw0A4HbrUBAJDAf3VjZmU4foJxNHTv4ldxETXIHLYXdAcDA2U6s5h045YnxkmH
jC97IaJ1kQr8SWVnAURRI7nGWLNK2XgSynUDcu6d7zH75R0DZPCmDCAc9S2cCDVb
BY66vtyDweiBM3oCsD6AgPjpfCPJTvBIicRsDClpEx6+Lr1Unp7+dmH1EERHjy9f
fZyFxPt5oT5fjJgatPxKQaQtbtdnSN57DGdUql29mYNw2dAfCtG9Jm/Wahb6MZEX
UV23e+ph
=bTCC
-----END PGP SIGNATURE-----