{"schemaVersion":3,"id":"CVE-2018-12886","aliases":["UBUNTU-CVE-2018-12886","CGA-6qpw-wxg7-gw36","CGA-vhfc-6fjj-wr39"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2019-05-22T18:42:10.000Z","modified":"2026-10-14T06:30:34.554Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.1,"severity":"high","version":"3.0","versionLabel":"v3.0","source":"NVD","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":8.1,"severity":"high","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6.8,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":8.1,"severity":"high","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":5.6,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Wolfi","score":8.1,"severity":"high","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":5.6,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Chainguard","score":8.1,"severity":"high","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":5.6,"impact":9.8,"computed":true}]},"epss":{"probability":0.02738,"percentile":0.85943,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.5670000000000002,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.02171},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0212,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02738,"percentile":0.85943}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0212,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02171,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02738,"percentile":0.85943}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_34E9251DE9A127C6","name":"Exploit Reference (gnu.org)","source":"reference","url":"https://www.gnu.org/software/gcc/gcc-8/changes.html","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-209","name":"Generation of Error Message Containing Sensitive Information","description":"The product generates an error message that includes sensitive information about its environment, users, or associated data.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/209.html"}],"affected":[{"vendor":"chainguard","product":"gcc-6","name":"gcc-6","label":"gcc-6","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/gcc-6","purlType":"apk","versions":[{"text":"< 6.5.0-r5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 6.5.0-r5","eol":null,"hubHref":null},{"vendor":"wolfi","product":"gcc-6","name":"gcc-6","label":"gcc-6","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/gcc-6","purlType":"apk","versions":[{"text":"< 6.5.0-r5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 6.5.0-r5","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"gcc-4.8","name":"gcc-4.8","label":"gcc-4.8","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/gcc-4.8","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"gcc-4.9","name":"gcc-4.9","label":"gcc-4.9","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/gcc-4.9","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"gcc-6","name":"gcc-6","label":"gcc-6","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/gcc-6","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"gcc-7","name":"gcc-7","label":"gcc-7","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/gcc-7","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"gcc-8","name":"gcc-8","label":"gcc-8","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/gcc-8","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"gcc-arm-none-eabi","name":"gcc-arm-none-eabi","label":"gcc-arm-none-eabi","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/gcc-arm-none-eabi","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"gcc-snapshot","name":"gcc-snapshot","label":"gcc-snapshot","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/gcc-snapshot","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"gnu","product":"gcc","name":"gcc","label":"gcc","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 4.1, ≤ 8.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.1, ≤ 8.0","eol":null,"hubHref":"/vendor/gnu/gcc"}],"affectedCount":10,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://www.gnu.org/software/gcc/gcc-8/changes.html","label":"www.gnu.org/software/gcc/gcc-8/changes.html","hostname":"www.gnu.org","tags":["X Refsource MISC","Exploit","Vendor Advisory","EVIDENCE"]},{"url":"https://gcc.gnu.org/viewcvs/gcc/trunk/gcc/config/arm/arm-protos.h?revision=266379&view=markup","label":"gcc.gnu.org/viewcvs/gcc/trunk/gcc/config/arm/arm-protos.h?revision=266379&view=markup","hostname":"gcc.gnu.org","tags":["X Refsource CONFIRM","Vendor Advisory","Advisory"]},{"url":"https://ubuntu.com/security/CVE-2018-12886","label":"ubuntu.com/security/CVE-2018-12886","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=89d7557202d25a393666ac4c0f7dbdab31e452a2","label":"gcc.gnu.org/git/?p=gcc.git;a=commit;h=89d7557202d25a393666ac4c0f7dbdab31e452a2","hostname":"gcc.gnu.org","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-12886","label":"www.cve.org/CVERecord?id=CVE-2018-12886","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-565386.html","label":"cert-portal.siemens.com/productcert/html/ssa-565386.html","hostname":"cert-portal.siemens.com","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html","label":"cert-portal.siemens.com/productcert/html/ssa-398330.html","hostname":"cert-portal.siemens.com","tags":[]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-CWFF-7599-RG47","CGA-F6V5-6CG3-6M8H"]},"timeline":[{"kind":"published","date":"2019-05-22T18:42:10.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-14T06:30:34.554Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":43,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T19:50:35.337Z","stale":false,"partial":false}}