{"schemaVersion":4,"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.86622,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.02738},"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":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.02738,"percentile":0.86622}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.02738,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.02738,"percentile":0.86622}]},"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,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"6.5.0-r5","endInclusive":false}}],"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,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"6.5.0-r5","endInclusive":false}}],"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,"bounds":{"kind":"all"}}],"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,"bounds":{"kind":"all"}}],"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,"bounds":{"kind":"all"}}],"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,"bounds":{"kind":"all"}}],"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,"bounds":{"kind":"all"}}],"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,"bounds":{"kind":"all"}}],"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,"bounds":{"kind":"all"}}],"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,"bounds":{"kind":"range","start":"4.1","startInclusive":true,"end":"8.0","endInclusive":true}}],"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":["WEB"]},{"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":["WEB"]}],"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}],"priority":{"label":"prioritise","tag":"public-exploit","reason":"Public exploit (reference, Date unknown)","nextStep":"Check applicability and the vendor advisory: no fix release is recorded here","rank":[0,0,0,1,3,81],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.02738,"stale":false,"promoted":null},{"type":"cvss","source":"nvd","date":"2026-10-14T06:30:34.554Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.1,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.0","headline":true},{"type":"cvss","source":"nvd","date":"2026-10-14T06:30:34.554Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","version":"2.0"},{"type":"cvss","source":"osv_ubuntu","date":"2026-10-14T06:30:34.554Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.1,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},{"type":"cvss","source":"osv_wolfi","date":"2026-10-14T06:30:34.554Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.1,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},{"type":"cvss","source":"osv_chainguard","date":"2026-10-14T06:30:34.554Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.1,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},{"type":"exploit","source":"reference","date":null,"status":"valid","statusDate":null,"statusSource":null,"disputes":[],"maturity":"unknown","verified":false}],"epss":{"value":0.02738,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T04:02:19.840Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T04:02:20.356Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T04:02:20.556Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T04:00:57.992Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T04:02:18.199Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T04:02:17.270Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T04:10:04.933Z","stale":false,"partial":false}}