| Name | CVE-2023-4039 |
| 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|
| gcc-10 (PTS) | bullseye | 10.2.1-6 | vulnerable |
| gcc-11 (PTS) | bookworm | 11.3.0-12 | vulnerable |
| sid | 11.5.0-11 | fixed |
| gcc-12 (PTS) | bookworm | 12.2.0-14+deb12u1 | fixed |
| trixie | 12.4.0-5 | fixed |
| forky, sid | 12.5.0-9 | fixed |
| gcc-13 (PTS) | trixie | 13.3.0-16 | fixed |
| forky, sid | 13.4.0-10 | fixed |
| gcc-9 (PTS) | bullseye | 9.3.0-22 | vulnerable |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|
| gcc-10 | source | (unstable) | 10.5.0-3 | unimportant | | |
| gcc-11 | source | (unstable) | 11.4.0-4 | unimportant | | |
| gcc-12 | source | bookworm | 12.2.0-14+deb12u1 | | | |
| gcc-12 | source | (unstable) | 12.3.0-9 | unimportant | | |
| gcc-13 | source | (unstable) | 13.2.0-4 | unimportant | | |
| gcc-7 | source | (unstable) | (unfixed) | unimportant | | |
| gcc-8 | source | (unstable) | (unfixed) | unimportant | | |
| gcc-9 | source | (unstable) | 9.5.0-6 | unimportant | | |
Notes
https://github.com/metaredteam/external-disclosures/security/advisories/GHSA-x7ch-h5rf-w2mf
Not considered a security issue by GCC upstream
https://developer.arm.com/Arm%20Security%20Center/GCC%20Stack%20Protector%20Vulnerability%20AArch64
ZW5kZW5yYWhheXU5QGdtYWlsLmNvbQ==