Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: 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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2018-12886
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 04:15 UTC · Revision 1

Source evidence

CVE-2018-12886

core-osv · Original source

Published 22 May 2019, 19:29 UTC

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.

osv:CVE-2018-12886
Complete source record
{
  "id": "cccf26e08e714c783e274c1ba165e88f3ea124d50fbeee602fbab228ecede3f0",
  "url": "https://osv.dev/vulnerability/CVE-2018-12886",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-12886",
    "summary": "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.",
    "evidence": "osv:CVE-2018-12886",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2018-12886",
      "aliases": [
        "CVE-2018-12886"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/gcc-mirror/gcc",
              "type": "GIT",
              "events": [
                {
                  "introduced": "dcaac250fcc1a1ce514d97613e4547aded83033c"
                },
                {
                  "last_affected": "341e59fef8d4b9c86f1c95abfe3ed60482293f23"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "4.1"
                      },
                      {
                        "last_affected": "8"
                      }
                    ],
                    "source": "DESCRIPTION"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-12886.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:15.923993512Z",
      "provider": "osv",
      "references": [
        "https://cert-portal.siemens.com/productcert/html/ssa-398330.html",
        "https://cert-portal.siemens.com/productcert/html/ssa-565386.html",
        "https://gcc.gnu.org/viewcvs/gcc/trunk/gcc/config/arm/arm-protos.h?revision=266379&view=markup",
        "https://www.gnu.org/software/gcc/gcc-8/changes.html"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:gnu:gcc:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "gnu:gcc",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "4.1"
                  },
                  {
                    "last_affected": "8.0"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2018-12886",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 429240,
  "published_at": "2019-05-22T19:29:00.297+00:00"
}