CVEfocus › CVE database › CVE-2018-12886

CVE-2018-12886

CVSS 8.1 HighEPSS 2.7% (higher than 86% of CVEs)Published 2019-05-22Updated 2026-10-14Assigner: mitre

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.

What to do

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fix pending
6Under investigation
18Will not fix
125Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10gcc-arm-none-eabiFix pendingUBUNTU-CVE-2018-12886
Ubuntu 26.10gcc-snapshotFix pendingUBUNTU-CVE-2018-12886
Ubuntu 26.04gcc-arm-none-eabiUnder investigationUBUNTU-CVE-2018-12886
Ubuntu 26.04gcc-avrNot affected
vulnerable_code_not_present
Ubuntu 26.04gcc-h8300-hmsNot affected
vulnerable_code_not_present
Ubuntu 26.04gcc-snapshotUnder investigationUBUNTU-CVE-2018-12886
Ubuntu 25.10gcc-arm-none-eabiWill not fix
Upstream has fixed this in GCC9 only as of 2019-05-30. 32-bit ARM only, risky backport, and would require archive rebuild. Setting priority as low for now, we…
UBUNTU-CVE-2018-12886
Ubuntu 25.10gcc-avrNot affected
vulnerable_code_not_present
Ubuntu 25.10gcc-h8300-hmsNot affected
vulnerable_code_not_present
Ubuntu 25.10gcc-snapshotWill not fix
Upstream has fixed this in GCC9 only as of 2019-05-30. 32-bit ARM only, risky backport, and would require archive rebuild. Setting priority as low for now, we…
UBUNTU-CVE-2018-12886
Ubuntu 24.04gcc-9Not affected
vulnerable_code_not_present
Ubuntu 24.04gcc-arm-none-eabiUnder investigationUBUNTU-CVE-2018-12886
Ubuntu 24.04gcc-avrNot affected
vulnerable_code_not_present
Ubuntu 24.04gcc-h8300-hmsNot affected
vulnerable_code_not_present
Ubuntu 24.04gcc-snapshotUnder investigationUBUNTU-CVE-2018-12886
Ubuntu 22.04gcc-9Not affected
vulnerable_code_not_present
Ubuntu 22.04gcc-arm-none-eabiUnder investigationUBUNTU-CVE-2018-12886
Ubuntu 22.04gcc-avrNot affected
vulnerable_code_not_present
Ubuntu 22.04gcc-h8300-hmsNot affected
vulnerable_code_not_present
Ubuntu 22.04gcc-m68hc1xNot affected
vulnerable_code_not_present
Ubuntu 22.04gcc-msp430Not affected
vulnerable_code_not_present
Ubuntu 22.04gcc-snapshotUnder investigationUBUNTU-CVE-2018-12886
Ubuntu 20.04gcc-7Will not fix
Upstream has fixed this in GCC9 only as of 2019-05-30. 32-bit ARM only, risky backport, and would require archive rebuild. Setting priority as low for now, we…
UBUNTU-CVE-2018-12886
Ubuntu 20.04gcc-8Will not fix
Upstream has fixed this in GCC9 only as of 2019-05-30. 32-bit ARM only, risky backport, and would require archive rebuild. Setting priority as low for now, we…
UBUNTU-CVE-2018-12886
Ubuntu 20.04gcc-arm-none-eabiWill not fix
Upstream has fixed this in GCC9 only as of 2019-05-30. 32-bit ARM only, risky backport, and would require archive rebuild. Setting priority as low for now, we…
UBUNTU-CVE-2018-12886
Ubuntu 20.04gcc-avrNot affected
vulnerable_code_not_present
Ubuntu 20.04gcc-h8300-hmsNot affected
vulnerable_code_not_present
Ubuntu 20.04gcc-m68hc1xNot affected
vulnerable_code_not_present
Ubuntu 20.04gcc-msp430Not affected
vulnerable_code_not_present
Ubuntu 20.04gcc-snapshotNot affected
vulnerable_code_not_present
Ubuntu 18.04gcc-4.8Will not fix
Upstream has fixed this in GCC9 only as of 2019-05-30. 32-bit ARM only, risky backport, and would require archive rebuild. Setting priority as low for now, we…
UBUNTU-CVE-2018-12886
Ubuntu 18.04gcc-6Will not fix
Upstream has fixed this in GCC9 only as of 2019-05-30. 32-bit ARM only, risky backport, and would require archive rebuild. Setting priority as low for now, we…
UBUNTU-CVE-2018-12886
Ubuntu 18.04gcc-7Will not fix
Upstream has fixed this in GCC9 only as of 2019-05-30. 32-bit ARM only, risky backport, and would require archive rebuild. Setting priority as low for now, we…
UBUNTU-CVE-2018-12886
Ubuntu 18.04gcc-8Will not fix
Upstream has fixed this in GCC9 only as of 2019-05-30. 32-bit ARM only, risky backport, and would require archive rebuild. Setting priority as low for now, we…
UBUNTU-CVE-2018-12886
Ubuntu 18.04gcc-arm-none-eabiWill not fix
Upstream has fixed this in GCC9 only as of 2019-05-30. 32-bit ARM only, risky backport, and would require archive rebuild. Setting priority as low for now, we…
UBUNTU-CVE-2018-12886
Ubuntu 18.04gcc-avrNot affected
vulnerable_code_not_present
Ubuntu 18.04gcc-h8300-hmsNot affected
vulnerable_code_not_present
Ubuntu 18.04gcc-m68hc1xNot affected
vulnerable_code_not_present
Ubuntu 18.04gcc-msp430Not affected
vulnerable_code_not_present
Ubuntu 18.04gcc-snapshotWill not fix
Upstream has fixed this in GCC9 only as of 2019-05-30. 32-bit ARM only, risky backport, and would require archive rebuild. Setting priority as low for now, we…
UBUNTU-CVE-2018-12886
Ubuntu 16.04gcc-4.8Will not fix
Upstream has fixed this in GCC9 only as of 2019-05-30. 32-bit ARM only, risky backport, and would require archive rebuild. Setting priority as low for now, we…
UBUNTU-CVE-2018-12886
Ubuntu 16.04gcc-4.9Will not fix
Upstream has fixed this in GCC9 only as of 2019-05-30. 32-bit ARM only, risky backport, and would require archive rebuild. Setting priority as low for now, we…
UBUNTU-CVE-2018-12886
Ubuntu 16.04gcc-arm-none-eabiWill not fix
Upstream has fixed this in GCC9 only as of 2019-05-30. 32-bit ARM only, risky backport, and would require archive rebuild. Setting priority as low for now, we…
UBUNTU-CVE-2018-12886
Ubuntu 16.04gcc-avrNot affected
vulnerable_code_not_present
Ubuntu 16.04gcc-h8300-hmsNot affected
vulnerable_code_not_present
Ubuntu 16.04gcc-m68hc1xNot affected
vulnerable_code_not_present
Ubuntu 16.04gcc-msp430Not affected
vulnerable_code_not_present
Ubuntu 16.04gcc-snapshotWill not fix
Upstream has fixed this in GCC9 only as of 2019-05-30. 32-bit ARM only, risky backport, and would require archive rebuild. Setting priority as low for now, we…
UBUNTU-CVE-2018-12886
Ubuntu 14.04gcc-4.8Will not fix
Upstream has fixed this in GCC9 only as of 2019-05-30. 32-bit ARM only, risky backport, and would require archive rebuild. Setting priority as low for now, we…
UBUNTU-CVE-2018-12886
Ubuntu 14.04gcc-arm-none-eabiWill not fix
Upstream has fixed this in GCC9 only as of 2019-05-30. 32-bit ARM only, risky backport, and would require archive rebuild. Setting priority as low for now, we…
Ubuntu 14.04gcc-avrNot affected
vulnerable_code_not_present
Ubuntu 14.04gcc-h8300-hmsNot affected
vulnerable_code_not_present
Ubuntu 14.04gcc-m68hc1xNot affected
vulnerable_code_not_present
Ubuntu 14.04gcc-msp430Not affected
vulnerable_code_not_present
Ubuntu 14.04gcc-snapshotWill not fix
Upstream has fixed this in GCC9 only as of 2019-05-30. 32-bit ARM only, risky backport, and would require archive rebuild. Setting priority as low for now, we…
Red Hat Enterprise Linux 8cppNot affected
Red Hat Enterprise Linux 8gccNot affected
Red Hat Enterprise Linux 8gcc-c++Not affected
Red Hat Enterprise Linux 8gcc-gdb-pluginNot affected
Red Hat Enterprise Linux 8gcc-gfortranNot affected
Red Hat Enterprise Linux 8gcc-offload-nvptxNot affected
Red Hat Enterprise Linux 8gcc-plugin-annobinNot affected
Red Hat Enterprise Linux 8gcc-plugin-develNot affected
Red Hat Enterprise Linux 8libasanNot affected
Red Hat Enterprise Linux 8libatomicNot affected
Red Hat Enterprise Linux 8libatomic-staticNot affected
Red Hat Enterprise Linux 8libgccNot affected
Red Hat Enterprise Linux 8libgfortranNot affected
Red Hat Enterprise Linux 8libgfortran-staticNot affected
Red Hat Enterprise Linux 8libgompNot affected
Red Hat Enterprise Linux 8libgomp-offload-nvptxNot affected
Red Hat Enterprise Linux 8libitmNot affected
Red Hat Enterprise Linux 8libitm-develNot affected
Red Hat Enterprise Linux 8liblsanNot affected
Red Hat Enterprise Linux 8libquadmathNot affected
Red Hat Enterprise Linux 8libquadmath-develNot affected
Red Hat Enterprise Linux 8libquadmath-staticNot affected
Red Hat Enterprise Linux 8libstdc++Not affected
Red Hat Enterprise Linux 8libstdc++-develNot affected
Red Hat Enterprise Linux 8libstdc++-docsNot affected
Red Hat Enterprise Linux 8libstdc++-staticNot affected
Red Hat Enterprise Linux 8libtsanNot affected
Red Hat Enterprise Linux 8libubsanNot affected
Red Hat Enterprise Linux 7cppNot affected
Red Hat Enterprise Linux 7gccNot affected
Red Hat Enterprise Linux 7gcc-c++Not affected
Red Hat Enterprise Linux 7gcc-gfortranNot affected
Red Hat Enterprise Linux 7gcc-gnatNot affected
Red Hat Enterprise Linux 7gcc-goNot affected
Red Hat Enterprise Linux 7gcc-objcNot affected
Red Hat Enterprise Linux 7gcc-objc++Not affected
Red Hat Enterprise Linux 7gcc-plugin-develNot affected
Red Hat Enterprise Linux 7libasanNot affected
Red Hat Enterprise Linux 7libasan-staticNot affected
Red Hat Enterprise Linux 7libatomicNot affected
Red Hat Enterprise Linux 7libatomic-staticNot affected
Red Hat Enterprise Linux 7libgccNot affected
Red Hat Enterprise Linux 7libgfortranNot affected
Red Hat Enterprise Linux 7libgfortran-staticNot affected
Red Hat Enterprise Linux 7libgnatNot affected
Red Hat Enterprise Linux 7libgnat-develNot affected
Red Hat Enterprise Linux 7libgnat-staticNot affected
Red Hat Enterprise Linux 7libgoNot affected
Red Hat Enterprise Linux 7libgo-develNot affected
Red Hat Enterprise Linux 7libgo-staticNot affected
Red Hat Enterprise Linux 7libgompNot affected
Red Hat Enterprise Linux 7libitmNot affected
Red Hat Enterprise Linux 7libitm-develNot affected
Red Hat Enterprise Linux 7libitm-staticNot affected
Red Hat Enterprise Linux 7libmudflapNot affected
Red Hat Enterprise Linux 7libmudflap-develNot affected
Red Hat Enterprise Linux 7libmudflap-staticNot affected
Red Hat Enterprise Linux 7libobjcNot affected
Red Hat Enterprise Linux 7libquadmathNot affected
Red Hat Enterprise Linux 7libquadmath-develNot affected
Red Hat Enterprise Linux 7libquadmath-staticNot affected
Red Hat Enterprise Linux 7libstdc++Not affected
Red Hat Enterprise Linux 7libstdc++-develNot affected
Red Hat Enterprise Linux 7libstdc++-docsNot affected
Red Hat Enterprise Linux 7libstdc++-staticNot affected
Red Hat Enterprise Linux 7libtsanNot affected
Red Hat Enterprise Linux 7libtsan-staticNot affected
Red Hat Enterprise Linux 6cppNot affected
Red Hat Enterprise Linux 6gccNot affected
Red Hat Enterprise Linux 6gcc-c++Not affected
Red Hat Enterprise Linux 6gcc-gfortranNot affected
Red Hat Enterprise Linux 6gcc-gnatNot affected
Red Hat Enterprise Linux 6gcc-javaNot affected
Red Hat Enterprise Linux 6gcc-objcNot affected
Red Hat Enterprise Linux 6gcc-objc++Not affected
Red Hat Enterprise Linux 6libatomicNot affected
Red Hat Enterprise Linux 6libgccNot affected
Red Hat Enterprise Linux 6libgcjNot affected
Red Hat Enterprise Linux 6libgcj-develNot affected
Red Hat Enterprise Linux 6libgcj-srcNot affected
Red Hat Enterprise Linux 6libgfortranNot affected
Red Hat Enterprise Linux 6libgnatNot affected
Red Hat Enterprise Linux 6libgnat-develNot affected
Red Hat Enterprise Linux 6libgompNot affected
Red Hat Enterprise Linux 6libitmNot affected
Red Hat Enterprise Linux 6libmudflapNot affected
Red Hat Enterprise Linux 6libmudflap-develNot affected
Red Hat Enterprise Linux 6libobjcNot affected
Red Hat Enterprise Linux 6libquadmathNot affected
Red Hat Enterprise Linux 6libstdc++Not affected
Red Hat Enterprise Linux 6libstdc++-develNot affected
Red Hat Enterprise Linux 6libstdc++-docsNot affected
Red Hat Enterprise Linux 5gccNot affected
Red Hat Enterprise Linux 5gcc44Not affected
Red Hat Enterprise Linux 4gccNot affected
Red Hat Enterprise Linux 4gcc4Not affected

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.