Skip to contentSkip to conversation

gcc: Fix -fstack-protector issue on aarch64

PATCH New [email protected] 1 participant 1 message Sep 12, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gcc: Fix -fstack-protector issue on aarch64

From: Ross Burton <[email protected]>

This series of patches fixes deficiencies in GCC's -fstack-protector implementation for AArch64 when using dynamically allocated stack space. This is CVE-2023-4039. See:

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

for more details.

---
 meta/recipes-devtools/gcc/gcc-11.4.inc        |    1 +
 .../gcc/gcc/CVE-2023-4039.patch               | 2893 +++++++++++++++++
 2 files changed, 2894 insertions(+)
 create mode 100644 meta/recipes-devtools/gcc/gcc/CVE-2023-4039.patch
meta/recipes-devtools/gcc/gcc-11.4.inc +1 -0
index 3670f494a61..88310e6b790 100644
@@ -68,6 +68,7 @@ SRC_URI = "\
 	   file://0002-aarch64-add-armv9-a-to-march.patch \
 	   file://0003-aarch64-Enable-FP16-feature-by-default-for-Armv9.patch \
 	   file://0004-arm-add-armv9-a-architecture-to-march.patch \
+	   file://CVE-2023-4039.patch \
 "
 
 SRC_URI[sha256sum] = "3f2db222b007e8a4a23cd5ba56726ef08e8b1f1eb2055ee72c1402cea73a8dd9"
meta/recipes-devtools/gcc/gcc/CVE-2023-4039.patch new file +2893 -0

2,893 lines not on this page · raw message

Signature · 1 line
2.34.1