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 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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | gcc-arm-none-eabi | Fix pending | UBUNTU-CVE-2018-12886 | |
| Ubuntu 26.10 | gcc-snapshot | Fix pending | UBUNTU-CVE-2018-12886 | |
| Ubuntu 26.04 | gcc-arm-none-eabi | Under investigation | UBUNTU-CVE-2018-12886 | |
| Ubuntu 26.04 | gcc-avr | Not affected vulnerable_code_not_present | ||
| Ubuntu 26.04 | gcc-h8300-hms | Not affected vulnerable_code_not_present | ||
| Ubuntu 26.04 | gcc-snapshot | Under investigation | UBUNTU-CVE-2018-12886 | |
| Ubuntu 25.10 | gcc-arm-none-eabi | Will 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.10 | gcc-avr | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | gcc-h8300-hms | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | gcc-snapshot | Will 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.04 | gcc-9 | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | gcc-arm-none-eabi | Under investigation | UBUNTU-CVE-2018-12886 | |
| Ubuntu 24.04 | gcc-avr | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | gcc-h8300-hms | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | gcc-snapshot | Under investigation | UBUNTU-CVE-2018-12886 | |
| Ubuntu 22.04 | gcc-9 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | gcc-arm-none-eabi | Under investigation | UBUNTU-CVE-2018-12886 | |
| Ubuntu 22.04 | gcc-avr | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | gcc-h8300-hms | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | gcc-m68hc1x | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | gcc-msp430 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | gcc-snapshot | Under investigation | UBUNTU-CVE-2018-12886 | |
| Ubuntu 20.04 | gcc-7 | Will 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.04 | gcc-8 | Will 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.04 | gcc-arm-none-eabi | Will 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.04 | gcc-avr | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | gcc-h8300-hms | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | gcc-m68hc1x | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | gcc-msp430 | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | gcc-snapshot | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | gcc-4.8 | Will 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.04 | gcc-6 | Will 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.04 | gcc-7 | Will 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.04 | gcc-8 | Will 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.04 | gcc-arm-none-eabi | Will 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.04 | gcc-avr | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | gcc-h8300-hms | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | gcc-m68hc1x | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | gcc-msp430 | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | gcc-snapshot | Will 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.04 | gcc-4.8 | Will 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.04 | gcc-4.9 | Will 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.04 | gcc-arm-none-eabi | Will 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.04 | gcc-avr | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | gcc-h8300-hms | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | gcc-m68hc1x | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | gcc-msp430 | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | gcc-snapshot | Will 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.04 | gcc-4.8 | Will 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.04 | gcc-arm-none-eabi | Will 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.04 | gcc-avr | Not affected vulnerable_code_not_present | ||
| Ubuntu 14.04 | gcc-h8300-hms | Not affected vulnerable_code_not_present | ||
| Ubuntu 14.04 | gcc-m68hc1x | Not affected vulnerable_code_not_present | ||
| Ubuntu 14.04 | gcc-msp430 | Not affected vulnerable_code_not_present | ||
| Ubuntu 14.04 | gcc-snapshot | Will 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 8 | cpp | Not affected | ||
| Red Hat Enterprise Linux 8 | gcc | Not affected | ||
| Red Hat Enterprise Linux 8 | gcc-c++ | Not affected | ||
| Red Hat Enterprise Linux 8 | gcc-gdb-plugin | Not affected | ||
| Red Hat Enterprise Linux 8 | gcc-gfortran | Not affected | ||
| Red Hat Enterprise Linux 8 | gcc-offload-nvptx | Not affected | ||
| Red Hat Enterprise Linux 8 | gcc-plugin-annobin | Not affected | ||
| Red Hat Enterprise Linux 8 | gcc-plugin-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | libasan | Not affected | ||
| Red Hat Enterprise Linux 8 | libatomic | Not affected | ||
| Red Hat Enterprise Linux 8 | libatomic-static | Not affected | ||
| Red Hat Enterprise Linux 8 | libgcc | Not affected | ||
| Red Hat Enterprise Linux 8 | libgfortran | Not affected | ||
| Red Hat Enterprise Linux 8 | libgfortran-static | Not affected | ||
| Red Hat Enterprise Linux 8 | libgomp | Not affected | ||
| Red Hat Enterprise Linux 8 | libgomp-offload-nvptx | Not affected | ||
| Red Hat Enterprise Linux 8 | libitm | Not affected | ||
| Red Hat Enterprise Linux 8 | libitm-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | liblsan | Not affected | ||
| Red Hat Enterprise Linux 8 | libquadmath | Not affected | ||
| Red Hat Enterprise Linux 8 | libquadmath-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | libquadmath-static | Not affected | ||
| Red Hat Enterprise Linux 8 | libstdc++ | Not affected | ||
| Red Hat Enterprise Linux 8 | libstdc++-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | libstdc++-docs | Not affected | ||
| Red Hat Enterprise Linux 8 | libstdc++-static | Not affected | ||
| Red Hat Enterprise Linux 8 | libtsan | Not affected | ||
| Red Hat Enterprise Linux 8 | libubsan | Not affected | ||
| Red Hat Enterprise Linux 7 | cpp | Not affected | ||
| Red Hat Enterprise Linux 7 | gcc | Not affected | ||
| Red Hat Enterprise Linux 7 | gcc-c++ | Not affected | ||
| Red Hat Enterprise Linux 7 | gcc-gfortran | Not affected | ||
| Red Hat Enterprise Linux 7 | gcc-gnat | Not affected | ||
| Red Hat Enterprise Linux 7 | gcc-go | Not affected | ||
| Red Hat Enterprise Linux 7 | gcc-objc | Not affected | ||
| Red Hat Enterprise Linux 7 | gcc-objc++ | Not affected | ||
| Red Hat Enterprise Linux 7 | gcc-plugin-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | libasan | Not affected | ||
| Red Hat Enterprise Linux 7 | libasan-static | Not affected | ||
| Red Hat Enterprise Linux 7 | libatomic | Not affected | ||
| Red Hat Enterprise Linux 7 | libatomic-static | Not affected | ||
| Red Hat Enterprise Linux 7 | libgcc | Not affected | ||
| Red Hat Enterprise Linux 7 | libgfortran | Not affected | ||
| Red Hat Enterprise Linux 7 | libgfortran-static | Not affected | ||
| Red Hat Enterprise Linux 7 | libgnat | Not affected | ||
| Red Hat Enterprise Linux 7 | libgnat-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | libgnat-static | Not affected | ||
| Red Hat Enterprise Linux 7 | libgo | Not affected | ||
| Red Hat Enterprise Linux 7 | libgo-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | libgo-static | Not affected | ||
| Red Hat Enterprise Linux 7 | libgomp | Not affected | ||
| Red Hat Enterprise Linux 7 | libitm | Not affected | ||
| Red Hat Enterprise Linux 7 | libitm-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | libitm-static | Not affected | ||
| Red Hat Enterprise Linux 7 | libmudflap | Not affected | ||
| Red Hat Enterprise Linux 7 | libmudflap-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | libmudflap-static | Not affected | ||
| Red Hat Enterprise Linux 7 | libobjc | Not affected | ||
| Red Hat Enterprise Linux 7 | libquadmath | Not affected | ||
| Red Hat Enterprise Linux 7 | libquadmath-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | libquadmath-static | Not affected | ||
| Red Hat Enterprise Linux 7 | libstdc++ | Not affected | ||
| Red Hat Enterprise Linux 7 | libstdc++-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | libstdc++-docs | Not affected | ||
| Red Hat Enterprise Linux 7 | libstdc++-static | Not affected | ||
| Red Hat Enterprise Linux 7 | libtsan | Not affected | ||
| Red Hat Enterprise Linux 7 | libtsan-static | Not affected | ||
| Red Hat Enterprise Linux 6 | cpp | Not affected | ||
| Red Hat Enterprise Linux 6 | gcc | Not affected | ||
| Red Hat Enterprise Linux 6 | gcc-c++ | Not affected | ||
| Red Hat Enterprise Linux 6 | gcc-gfortran | Not affected | ||
| Red Hat Enterprise Linux 6 | gcc-gnat | Not affected | ||
| Red Hat Enterprise Linux 6 | gcc-java | Not affected | ||
| Red Hat Enterprise Linux 6 | gcc-objc | Not affected | ||
| Red Hat Enterprise Linux 6 | gcc-objc++ | Not affected | ||
| Red Hat Enterprise Linux 6 | libatomic | Not affected | ||
| Red Hat Enterprise Linux 6 | libgcc | Not affected | ||
| Red Hat Enterprise Linux 6 | libgcj | Not affected | ||
| Red Hat Enterprise Linux 6 | libgcj-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | libgcj-src | Not affected | ||
| Red Hat Enterprise Linux 6 | libgfortran | Not affected | ||
| Red Hat Enterprise Linux 6 | libgnat | Not affected | ||
| Red Hat Enterprise Linux 6 | libgnat-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | libgomp | Not affected | ||
| Red Hat Enterprise Linux 6 | libitm | Not affected | ||
| Red Hat Enterprise Linux 6 | libmudflap | Not affected | ||
| Red Hat Enterprise Linux 6 | libmudflap-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | libobjc | Not affected | ||
| Red Hat Enterprise Linux 6 | libquadmath | Not affected | ||
| Red Hat Enterprise Linux 6 | libstdc++ | Not affected | ||
| Red Hat Enterprise Linux 6 | libstdc++-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | libstdc++-docs | Not affected | ||
| Red Hat Enterprise Linux 5 | gcc | Not affected | ||
| Red Hat Enterprise Linux 5 | gcc44 | Not affected | ||
| Red Hat Enterprise Linux 4 | gcc | Not affected | ||
| Red Hat Enterprise Linux 4 | gcc4 | Not affected |
References
- https://www.gnu.org/software/gcc/gcc-8/changes.html
- https://gcc.gnu.org/viewcvs/gcc/trunk/gcc/config/arm/arm-protos.h?revision=266379&view=markup
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.