CVE-2018-12886: gnu gcc
Vulnerability summary
CVE-2018-12886 is a high (CVSS 8.1) vulnerability in gnu gcc. EPSS estimates a 2.74% chance of exploitation in the next 30 days, higher than 85.9% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 0 · Related 2Timeline
- 22-05-2019PublishedVulnerability first disclosed.
- 14-10-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 4 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated8.1HighCVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · WolfiEcosystem advisory · calculated8.1HighCVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated8.1HighCVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
2.74%
Chance of exploitation in the next 30 days
Percentile
86%
Versus all other CVEs
30-day change
+0.57 pp
From 2.17% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundExploit Reference (gnu.org)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Ubuntu7 products
- gcc-4.8All versions (No fix recorded)
- gcc-4.9All versions (No fix recorded)
- gcc-6All versions (No fix recorded)
- gcc-7All versions (No fix recorded)
- gcc-8All versions (No fix recorded)
Chainguard1 product
- gcc-6< 6.5.0-r5
Gnu1 product
- gcc≥ 4.1, ≤ 8.0
Wolfi1 product
- gcc-6< 6.5.0-r5
4 vendors · 10 products
References
7 links- gcc.gnu.org/viewcvs/gcc/trunk/gcc/config/arm/arm-protos.h?revision=266379&view=markupX Refsource CONFIRMVendor AdvisoryAdvisory