OESA-2025-1042 (CVE-2023-4039)
Vulnerability from osv_openeuler – Published: 2025-01-17 11:08 – Updated: 2026-08-06 11:08 – Source websiteThe gcc package contains the GNU Compiler Collection version 12. You'll need this package in order to compile C code.
Security Fix(es):
DISPUTEDA 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.
(CVE-2023-4039)
| URL | Type | |
|---|---|---|
{
"affected": [
{
"ecosystem_specific": {
"aarch64": [
"cpp-12.3.1-38.oe2403.aarch64.rpm",
"gcc-12.3.1-38.oe2403.aarch64.rpm",
"gcc-c++-12.3.1-38.oe2403.aarch64.rpm",
"gcc-debuginfo-12.3.1-38.oe2403.aarch64.rpm",
"gcc-debugsource-12.3.1-38.oe2403.aarch64.rpm",
"gcc-gdb-plugin-12.3.1-38.oe2403.aarch64.rpm",
"gcc-gfortran-12.3.1-38.oe2403.aarch64.rpm",
"gcc-objc++-12.3.1-38.oe2403.aarch64.rpm",
"gcc-objc-12.3.1-38.oe2403.aarch64.rpm",
"gcc-plugin-devel-12.3.1-38.oe2403.aarch64.rpm",
"libasan-12.3.1-38.oe2403.aarch64.rpm",
"libasan-static-12.3.1-38.oe2403.aarch64.rpm",
"libatomic-12.3.1-38.oe2403.aarch64.rpm",
"libatomic-static-12.3.1-38.oe2403.aarch64.rpm",
"libgcc-12.3.1-38.oe2403.aarch64.rpm",
"libgccjit-12.3.1-38.oe2403.aarch64.rpm",
"libgccjit-devel-12.3.1-38.oe2403.aarch64.rpm",
"libgfortran-12.3.1-38.oe2403.aarch64.rpm",
"libgfortran-static-12.3.1-38.oe2403.aarch64.rpm",
"libgomp-12.3.1-38.oe2403.aarch64.rpm",
"libitm-12.3.1-38.oe2403.aarch64.rpm",
"libitm-devel-12.3.1-38.oe2403.aarch64.rpm",
"libitm-static-12.3.1-38.oe2403.aarch64.rpm",
"liblsan-12.3.1-38.oe2403.aarch64.rpm",
"liblsan-static-12.3.1-38.oe2403.aarch64.rpm",
"libobjc-12.3.1-38.oe2403.aarch64.rpm",
"libquadmath-12.3.1-38.oe2403.aarch64.rpm",
"libquadmath-devel-12.3.1-38.oe2403.aarch64.rpm",
"libquadmath-static-12.3.1-38.oe2403.aarch64.rpm",
"libstdc++-12.3.1-38.oe2403.aarch64.rpm",
"libstdc++-devel-12.3.1-38.oe2403.aarch64.rpm",
"libstdc++-static-12.3.1-38.oe2403.aarch64.rpm",
"libtsan-12.3.1-38.oe2403.aarch64.rpm",
"libtsan-static-12.3.1-38.oe2403.aarch64.rpm",
"libubsan-12.3.1-38.oe2403.aarch64.rpm",
"libubsan-static-12.3.1-38.oe2403.aarch64.rpm"
],
"src": [
"gcc-12.3.1-38.oe2403.src.rpm"
],
"x86_64": [
"cpp-12.3.1-38.oe2403.x86_64.rpm",
"gcc-12.3.1-38.oe2403.x86_64.rpm",
"gcc-c++-12.3.1-38.oe2403.x86_64.rpm",
"gcc-debuginfo-12.3.1-38.oe2403.x86_64.rpm",
"gcc-debugsource-12.3.1-38.oe2403.x86_64.rpm",
"gcc-gdb-plugin-12.3.1-38.oe2403.x86_64.rpm",
"gcc-gfortran-12.3.1-38.oe2403.x86_64.rpm",
"gcc-objc++-12.3.1-38.oe2403.x86_64.rpm",
"gcc-objc-12.3.1-38.oe2403.x86_64.rpm",
"gcc-plugin-devel-12.3.1-38.oe2403.x86_64.rpm",
"libasan-12.3.1-38.oe2403.x86_64.rpm",
"libasan-static-12.3.1-38.oe2403.x86_64.rpm",
"libatomic-12.3.1-38.oe2403.x86_64.rpm",
"libatomic-static-12.3.1-38.oe2403.x86_64.rpm",
"libgcc-12.3.1-38.oe2403.x86_64.rpm",
"libgccjit-12.3.1-38.oe2403.x86_64.rpm",
"libgccjit-devel-12.3.1-38.oe2403.x86_64.rpm",
"libgfortran-12.3.1-38.oe2403.x86_64.rpm",
"libgfortran-static-12.3.1-38.oe2403.x86_64.rpm",
"libgomp-12.3.1-38.oe2403.x86_64.rpm",
"libitm-12.3.1-38.oe2403.x86_64.rpm",
"libitm-devel-12.3.1-38.oe2403.x86_64.rpm",
"libitm-static-12.3.1-38.oe2403.x86_64.rpm",
"liblsan-12.3.1-38.oe2403.x86_64.rpm",
"liblsan-static-12.3.1-38.oe2403.x86_64.rpm",
"libobjc-12.3.1-38.oe2403.x86_64.rpm",
"libquadmath-12.3.1-38.oe2403.x86_64.rpm",
"libquadmath-devel-12.3.1-38.oe2403.x86_64.rpm",
"libquadmath-static-12.3.1-38.oe2403.x86_64.rpm",
"libstdc++-12.3.1-38.oe2403.x86_64.rpm",
"libstdc++-devel-12.3.1-38.oe2403.x86_64.rpm",
"libstdc++-static-12.3.1-38.oe2403.x86_64.rpm",
"libtsan-12.3.1-38.oe2403.x86_64.rpm",
"libtsan-static-12.3.1-38.oe2403.x86_64.rpm",
"libubsan-12.3.1-38.oe2403.x86_64.rpm",
"libubsan-static-12.3.1-38.oe2403.x86_64.rpm"
]
},
"package": {
"ecosystem": "openEuler:24.03-LTS",
"name": "gcc",
"purl": "pkg:rpm/openEuler/gcc\u0026distro=openEuler-24.03-LTS"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "12.3.1-38.oe2403"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"database_specific": {
"severity": "Medium"
},
"details": "The gcc package contains the GNU Compiler Collection version 12. You\u0026apos;ll need this package in order to compile C code.\r\n\r\nSecurity Fix(es):\r\n\r\n\r\n\r\n**DISPUTED**A failure in the -fstack-protector feature in GCC-based toolchains \nthat target AArch64 allows an attacker to exploit an existing buffer \noverflow in dynamically-sized local variables in your application \nwithout this being detected. This stack-protector failure only applies \nto C99-style dynamically-sized local variables or those created using \nalloca(). The stack-protector operates as intended for statically-sized \nlocal variables.\r\n\r\nThe default behavior when the stack-protector \ndetects an overflow is to terminate your application, resulting in \ncontrolled loss of availability. An attacker who can exploit a buffer \noverflow without triggering the stack-protector might be able to change \nprogram flow control to cause an uncontrolled loss of availability or to\n 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.\r\n\r\n\r\n\r\n\r\n\r\n(CVE-2023-4039)",
"id": "OESA-2025-1042",
"modified": "2026-08-06T11:08:08Z",
"published": "2025-01-17T11:08:08Z",
"references": [
{
"type": "ADVISORY",
"url": "https://www.openeuler.org/zh/security/security-bulletins/detail/?id=openEuler-SA-2025-1042"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2023-4039"
}
],
"schema_version": "1.7.2",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N",
"type": "CVSS_V3"
}
],
"summary": "gcc security update",
"upstream": [
"CVE-2023-4039"
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.