CVE-2023-4039: arm ltd arm gnu toolchain Protection Mechanism Failure
Vulnerability summary
CVE-2023-4039 is a medium (CVSS 4.8) Protection Mechanism Failure vulnerability in arm ltd arm gnu toolchain. EPSS estimates a 1.04% chance of exploitation in the next 30 days, higher than 63.3% of scored vulnerabilities. 2 public exploits are recorded.
Advisory lineage
Upstream 0 · Downstream 1 · Related 5Timeline
- 13-09-2023PublishedVulnerability first disclosed.
- 14-10-2026Last modifiedVulnerability information updated.
Description
**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.
CVSS metrics
7 scores · 7 sources · 1 version- OSV · AlpineEcosystem advisory · calculated4.8MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
- OSV · UbuntuEcosystem advisory · calculated4.8MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
- OSV · DebianEcosystem advisory · calculated4.8MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
- OSV · WolfiEcosystem advisory · calculated4.8MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
- OSV · ChainguardEcosystem advisory · calculated4.8MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
- NVDNIST4.8MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
EPSS trend
Probability
1.04%
Chance of exploitation in the next 30 days
Percentile
63%
Versus all other CVEs
30-day change
+0.27 pp
From 0.76% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
2 foundExternal Disclosures
Maturity: poc
Exploit Reference (developer.arm.com)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Suse96 products
- cross-nvptx-gcc12&distro=SUSE Enterprise Storage 7< 12.3.0+git1204-150000.1.16.1
- cross-nvptx-gcc12&distro=SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS< 12.3.0+git1204-150000.1.16.1
- cross-nvptx-gcc12&distro=SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS< 12.3.0+git1204-150000.1.16.1
- cross-nvptx-gcc12&distro=SUSE Linux Enterprise High Performance Computing 15 SP3-ESPOS< 12.3.0+git1204-150000.1.16.1
- cross-nvptx-gcc12&distro=SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS< 12.3.0+git1204-150000.1.16.1
Ubuntu46 products
- gcc-10< 10.5.0-1ubuntu1~20.04.1+esm1 | < 10.5.0-1ubuntu1~22.04.2 | < 10.5.0-4ubuntu2
- gcc-10-crossAll versions (No fix recorded) | < 23ubuntu2
- gcc-10-cross-portsAll versions (No fix recorded)
- gcc-11< 11.4.0-1ubuntu1~22.04.2 | < 11.4.0-4ubuntu1
- gcc-11-crossAll versions (No fix recorded) | < 21ubuntu2
Chainguard15 products
- gcc< 13.2.0-r3
- gcc-12< 12.3.0-r4
- gcc-6< 6.5.0-r5
- gcc-doc< 13.2.0-r3
- gfortran< 13.2.0-r3
Wolfi15 products
- gcc< 13.2.0-r3
- gcc-12< 12.3.0-r4
- gcc-6< 6.5.0-r5
- gcc-doc< 13.2.0-r3
- gfortran< 13.2.0-r3
Opensuse14 products
- cross-nvptx-gcc12&distro=openSUSE Leap 15.4< 12.3.0+git1204-150000.1.16.1
- cross-nvptx-gcc13&distro=openSUSE Leap 15.4< 13.2.1+git7813-150000.1.3.2 | < 13.2.1+git7813-150000.1.6.1
- cross-nvptx-gcc13&distro=openSUSE Leap 15.5< 13.2.1+git7813-150000.1.3.2 | < 13.2.1+git7813-150000.1.6.1
- gcc12-testresults&distro=openSUSE Leap 15.4< 12.3.0+git1204-150000.1.16.1
- gcc12&distro=openSUSE Leap 15.4< 12.3.0+git1204-150000.1.16.1
Debian3 products
- gcc-11All versions (No fix recorded)
- gcc-12< 12.2.0-14+deb12u1 | < 12.3.0-9
- gcc-13< 13.2.0-4
Alpine1 product
- gcc< 13.2.1_git20231014-r0
Arm ltd1 product
- arm gnu toolchainAll versions where option -fstack-protector is used
Gnu1 product
- gccAll versions of GCC that target AArch64 when option -fstack-protector is used | < 2023-09-12
9 vendors · 192 products
References
33 links- developer.arm.com/Arm%20Security%20Center/GCC%20Stack%20Protector%20Vulnerability%20AArch64REPORTFIXExploitPatchThird Party Advisory
- github.com/metaredteam/external-disclosures/security/advisories/GHSA-x7ch-h5rf-w2mfREPORTFIXExploitPatchThird Party Advisory