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.
{
"license": "CC-BY-4.0",
"sources": [
{
"affected": {
"gnu:gcc": [
">= 4.1, <= 8.0"
]
},
"database_specific": {
"status": "Modified"
},
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2018-12886",
"id": "CVE-2018-12886",
"imported": "2026-12-03T19:33:56.566Z",
"modified": "2026-10-14T07:16:41.957Z",
"published": "2019-05-22T19:29:00.297Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2018-12886"
}
]
}