# CVE-2018-12886

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2019-05-22 · Modified: 2026-10-14
- Aliases: UBUNTU-CVE-2018-12886, CGA-6qpw-wxg7-gw36, CGA-vhfc-6fjj-wr39
- Record: https://cvemate.com/vulnerability/CVE-2018-12886 · JSON: https://cvemate.com/vulnerability/CVE-2018-12886/json

## Description

```text
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.
```

## Signals

- CVSS: 8.1 high (v3.0, NVD) CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 2.738%, percentile 86.622%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- chainguard gcc-6 (Chainguard): \< 6.5.0-r5
- wolfi gcc-6 (Wolfi): \< 6.5.0-r5
- ubuntu gcc-4.8 (Ubuntu): All versions (No fix recorded)
- ubuntu gcc-4.9 (Ubuntu): All versions (No fix recorded)
- ubuntu gcc-6 (Ubuntu): All versions (No fix recorded)
- ubuntu gcc-7 (Ubuntu): All versions (No fix recorded)
- ubuntu gcc-8 (Ubuntu): All versions (No fix recorded)
- ubuntu gcc-arm-none-eabi (Ubuntu): All versions (No fix recorded)
- ubuntu gcc-snapshot (Ubuntu): All versions (No fix recorded)
- gnu gcc: ≥ 4.1, ≤ 8.0

## 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>
- <https://ubuntu.com/security/CVE-2018-12886>
- <https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=89d7557202d25a393666ac4c0f7dbdab31e452a2>
- <https://www.cve.org/CVERecord?id=CVE-2018-12886>
- <https://cert-portal.siemens.com/productcert/html/ssa-565386.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>

---

Data as of 2026-12-05T03:12:02.806Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
