GCC's-fstack-protector fails to guard dynamically-sized local variables on AArch64
Arm Ltd Arm GNU Toolchain · GNU GCC
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Arm Ltd Arm GNU Toolchain |
| No fix yet |
| GNU GCC |
| No fix yet |
Original 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.