Skip to content

CVE-2018-12886 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 targetin...

HighCVSS 8.1 EPSS 2.7%
Published
Updated
Exploit status
No public exploit known

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.

Affected products

ProductAffected versionsFixed in
ubuntu/gcc-arm-none-eabi(Ubuntu:24.04) All versions No fix listed
ubuntu/gcc-snapshot(Ubuntu:24.04) All versions No fix listed
ubuntu/gcc-arm-none-eabi(Ubuntu:26.04) All versions No fix listed
ubuntu/gcc-snapshot(Ubuntu:26.04) All versions No fix listed
ubuntu/gcc-arm-none-eabi(Ubuntu:26.10) All versions No fix listed
ubuntu/gcc-snapshot(Ubuntu:26.10) All versions No fix listed
Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.0, < V3.1.5 V3.1.5
Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP >= V3.1.0, < V3.1.5 V3.1.5
Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.0, < V3.1.5 V3.1.5
GNU gcc >= 4.1, <= 8.0 No fix listed
ubuntu/gcc-arm-none-eabi(Ubuntu:22.04) All versions No fix listed
ubuntu/gcc-snapshot(Ubuntu:22.04) All versions No fix listed

References