CVE-2023-4039
GCC's-fstack-protector fails to guard dynamically-sized local variables on AArch64
**DISPUTED**A failure in the -fstack-protector feature in GCC-based toolchains that target AArch64 allows an attacker to exploit an existing buffer overflow in dynamically-sized local variables in your application without this being detected. This stack-protector failure only applies to C99-style dynamically-sized local variables or those created using alloca(). The stack-protector operates as intended for statically-sized local variables. The default behavior when the stack-protector detects an overflow is to terminate your application, resulting in controlled loss of availability. An attacker who can exploit a buffer overflow without triggering the stack-protector might be able to change program flow control to cause an uncontrolled loss of availability or to go further and affect confidentiality or integrity. NOTE: The GCC project argues that this is a missed hardening bug and not a vulnerability by itself.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 1.036% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T15:55:09.885Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 4.8 · published by [email protected]CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Assessment source · checked 2026-11-19T12:41:03.363Z
CVSS 3.1 · 4.8 · published by ArmCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Assessment source · checked 2026-11-19T12:56:58.269Z
CVSS 3.1 · 4.8 · published by [email protected]CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Assessment source · checked 2026-11-19T12:41:03.363Z
CVSS 3.1 · 4.8 · published by Ubuntu SecurityCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Assessment source · checked 2026-11-19T12:50:12.893Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T15:55:09.885Z | CISA KEV |
| cvss | verified | 2026-11-19T12:41:03.363Z | NVD |
| epss | verified | 2026-11-19T16:04:36.838Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:50:12.893Z | Ubuntu Security |
| affected | verified | 2026-11-19T12:56:58.269Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:56:58.269Z | CVE Program |
Affected versions and configuration
Arm Ltd Arm GNU Toolchain; default status: affected: All versions where option -fstack-protector is used [affected; scheme: unspecified] GNU GCC; default status: unaffected: All versions of GCC that target AArch64 when option -fstack-protector is used [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "Arm Ltd",
"product": "Arm GNU Toolchain",
"versions": [
{
"status": "affected",
"version": "All versions where option -fstack-protector is used"
}
],
"defaultStatus": "affected"
},
{
"vendor": "GNU",
"product": "GCC",
"versions": [
{
"status": "affected",
"version": "All versions of GCC that target AArch64 when option -fstack-protector is used"
}
],
"defaultStatus": "unaffected"
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://developer.arm.com/Arm%20Security%20Center/GCC%20Stack%20Protector%20Vulnerability%20AArch64",
"tags": [
"x_transferred"
]
},
{
"url": "https://github.com/metaredteam/external-disclosures/security/advisories/GHSA-x7ch-h5rf-w2mf",
"tags": [
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-02T07:17:11.837Z"
}
},
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2023-4039",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "poc"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2025-06-03T16:04:55.934999Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2026-06-23T17:19:09.321Z"
}
},
{
"affected": [
{
"vendor": "Siemens",
"product": "SIMATIC S7-1500 CPU 1518-4 PN/DP MFP",
"versions": [
{
"status": "affected",
"version": "V3.1.0",
"lessThan": "V3.1.5",
"versionType": "custom"
}
],
"defaultStatus": "unknown"
},
{
"vendor": "Siemens",
"product": "SIMATIC S7-1500 CPU 1518-4 PN/DP MFP",
"versions": [
{
"status": "affected",
"version": "V3.1.0",
"lessThan": "V3.1.5",
"versionType": "custom"
}
],
"defaultStatus": "unknown"
},
{
"vendor": "Siemens",
"product": "SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP",
"versions": [
{
"status": "affected",
"version": "V3.1.0",
"lessThan": "V3.1.5",
"versionType": "custom"
}
],
"defaultStatus": "unknown"
},
{
"vendor": "Siemens",
"product": "SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP",
"versions": [
{
"status": "affected",
"version": "V3.1.0",
"lessThan": "V3.1.5",
"versionType": "custom"
}
],
"defaultStatus": "unknown"
},
{
"vendor": "Siemens",
"product": "SIPLUS S7-1500 CPU 1518-4 PN/DP MFP",
"versions": [
{
"status": "affected",
"version": "V3.1.0",
"lessThan": "V3.1.5",
"versionType": "custom"
}
],
"defaultStatus": "unknown"
},
{
"vendor": "Siemens",
"product": "RUGGEDCOM RST2428P",
"versions": [
{
"status": "affected",
"version": "0",
"lessThan": "V3.2",
"versionType": "custom"
}
],
"defaultStatus": "unknown"
},
{
"vendor": "Siemens",
"product": "SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family",
"versions": [
{
"status": "affected",
"version": "0",
"lessThan": "V3.2",
"versionType": "custom"
}
],
"defaultStatus": "unknown"
},
{
"vendor": "Siemens",
"product": "SCALANCE XCM-/XRM-/XCH-/XRH-300 family",
"versions": [
{
"status": "affected",
"version": "0",
"lessThan": "V3.2",
"versionType": "custom"
}
],
"defaultStatus": "unknown"
}
],
"x_adpType": "supplier",
"references": [
{
"url": "https://cert-portal.siemens.com/productcert/html/ssa-398330.html"
},
{
"url": "https://cert-portal.siemens.com/productcert/html/ssa-355557.html"
}
],
"providerMetadata": {
"orgId": "0b142b55-0307-4c5a-b3c9-f314f3fb7c5e",
"shortName": "siemens-SADP",
"dateUpdated": "2026-10-14T21:23:13.065Z"
}
}
]
}Archived source JSONUbuntu Security · ubuntu-package · full conditions
[
{
"name": "gcc-13",
"debian": "https://tracker.debian.org/pkg/gcc-13",
"source": "https://ubuntu.com/security/cve?package=gcc-13",
"ubuntu": "https://packages.ubuntu.com/search?suite=all§ion=all&arch=any&searchon=sourcenames&keywords=gcc-13",
"statuses": [
{
"pocket": "security",
"status": "released",
"component": null,
"description": "13.2.0-4ubuntu1",
"release_codename": "stonking"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "trusty"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "xenial"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "bionic"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "focal"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "jammy"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "13.2.0-4",
"release_codename": "upstream"
},
{
"pocket": "security",
"status": "ignored",
"component": null,
"description": "end of life, was needs-triage",
"release_codename": "lunar"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "13.2.0-4ubuntu1",
"release_codename": "mantic"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "13.2.0-4ubuntu1",
"release_codename": "noble"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "13.2.0-4ubuntu1",
"release_codename": "oracular"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "13.2.0-4ubuntu1",
"release_codename": "plucky"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "13.2.0-4ubuntu1",
"release_codename": "resolute"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "13.2.0-4ubuntu1",
"release_codename": "questing"
}
]
}
]Archived source JSONNVD · nvd-cpe · full conditions
[
{
"nodes": [
{
"negate": false,
"cpeMatch": [
{
"criteria": "cpe:2.3:a:gnu:gcc:*:*:*:*:*:*:arm64:*",
"vulnerable": true,
"matchCriteriaId": "C8373A25-594D-4F3F-981B-0D02056992FC",
"versionEndExcluding": "2023-09-12"
}
],
"operator": "OR"
}
]
}
]Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| distribution-package | Ubuntu / stonking | gcc-13 | security | 13.2.0-4ubuntu1 | Official record |
| upstream-release | upstream / upstream | gcc-13 | Not a distribution channel | 13.2.0-4 | Official record |
| distribution-package | Ubuntu / mantic | gcc-13 | security | 13.2.0-4ubuntu1 | Official record |
| distribution-package | Ubuntu / noble | gcc-13 | security | 13.2.0-4ubuntu1 | Official record |
| distribution-package | Ubuntu / oracular | gcc-13 | security | 13.2.0-4ubuntu1 | Official record |
| distribution-package | Ubuntu / plucky | gcc-13 | security | 13.2.0-4ubuntu1 | Official record |
| distribution-package | Ubuntu / resolute | gcc-13 | security | 13.2.0-4ubuntu1 | Official record |
| distribution-package | Ubuntu / questing | gcc-13 | security | 13.2.0-4ubuntu1 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- NVDConsulted: 2026-11-19T12:41:03.363ZArchived source JSON
Source publication: 2023-09-13T09:15:15.690Z
Source modification: 2026-10-14T22:17:17.000ZDocument fingerprint
ebcf5ec5a731b802887f2ef74409af04ca2c9b944366e29cfb01bea5ead4d393 - Ubuntu SecurityConsulted: 2026-11-19T12:50:12.893ZArchived source JSON
Source publication: 2023-09-12T15:00:00.000Z
Source modification: 2025-08-21T12:27:38.964ZDocument fingerprint
67ee7359d7f72c248240315fcd4a0b4d68e1c98381065785be4c3fed8d90ac2c - CVE ProgramConsulted: 2026-11-19T12:56:58.269ZArchived source JSON
Source publication: 2023-09-13T08:05:10.274Z
Source modification: 2026-10-14T21:23:13.065ZDocument fingerprint
e525d06ef942d911fedca092ad8f65a207f64623f07745beefc78e261ac3d012 - CISA KEVConsulted: 2026-11-19T15:55:09.885ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:36.838ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
752b5a4ab7063ebae6041b8a2218e2c7a480f9f66d4152a818c6a0713b1fa460
Official status history
- UNKNOWN → PUBLISHED · · evidence