Skip to content
OpenAdvisories
Unscored CVE-2018-12886 EUVD-2018-4839GHSA-5mwp-7q9c-cgg2

stack_protect_prologue in cfgexpand.c and stack_protect_epilogue in function.c in GNU Compiler Collection (GCC) 4.1 through 8 (under certai…

Published May 22, 2019 · Updated Oct 14, 2026 · Assigned by mitre

Description

stack_protect_prologue in cfgexpand.c and stack_protect_epilogue in function.c in GNU Compiler Collection (GCC) 4.1 through 8 (under certain circumstances) generate instruction sequences when targeting ARM targets that spill the address of the stack protector guard, which allows an attacker to bypass the protection of -fstack-protector, -fstack-protector-all, -fstack-protector-strong, and -fstack-protector-explicit against stack overflow by controlling what the stack canary is compared against.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 gcc-snapshot +1 No fix yet —
Ubuntu 26.04 LTS gcc-snapshot +1 No fix yet —
Ubuntu 25.10 gcc-snapshot +1 No fix yet —
Ubuntu 24.04 LTS gcc-snapshot +1 No fix yet —
Ubuntu 22.04 LTS gcc-snapshot +1 No fix yet —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS gcc-7 +2 No fix yet —
Ubuntu 18.04 LTS gcc-6 +5 No fix yet —
Ubuntu 16.04 LTS gcc-4.8 +3 No fix yet —
Ubuntu 14.04 LTS gcc-4.8 No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling gcc-6 6.5.0-r5 —

Advisories 4

References