CVE-2023-4039

Name
CVE-2023-4039
Description
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.
NVD Severity
medium
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
MISC https://github.com/metaredteam/external-disclosures/security/advisories/GHSA-x7ch-h5rf-w2mf
MISC https://developer.arm.com/Arm%20Security%20Center/GCC%20Stack%20Protector%20Vulnerability%20AArch64

Match rules

CPE URI Source package Min version Max version
cpe:2.3:a:gnu:gcc:*:*:*:*:*:*:arm64:* gcc >= None < 2023-09-12

Vulnerable and fixed packages

Source package Branch Version Maintainer Status
gcc edge-main 13.1.1_git20230722-r2 Ariadne Conill <ariadne@dereferenced.org> possibly vulnerable
gcc 3.18-main 12.2.1_git20220924-r10 Ariadne Conill <ariadne@dereferenced.org> possibly vulnerable
gcc 3.17-main 12.2.1_git20220924-r4 Ariadne Conill <ariadne@dereferenced.org> possibly vulnerable
gcc 3.16-main 11.2.1_git20220219-r2 Ariadne Conill <ariadne@dereferenced.org> possibly vulnerable
gcc 3.15-main 10.3.1_git20211027-r0 Ariadne Conill <ariadne@dereferenced.org> possibly vulnerable