Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] eglibc: add security patch for CVE-2013-4788
@ 2013-11-27  0:51 Gustavo Zacarias
  2013-11-27  0:51 ` [Buildroot] [PATCH 2/2] qemu/mips64-malta: switch to eglibc Gustavo Zacarias
  2013-11-28 13:46 ` [Buildroot] [PATCH 1/2] eglibc: add security patch for CVE-2013-4788 Peter Korsgaard
  0 siblings, 2 replies; 8+ messages in thread
From: Gustavo Zacarias @ 2013-11-27  0:51 UTC (permalink / raw)
  To: buildroot

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-4788
http://hmarco.org/bugs/CVE-2013-4788.html

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 .../2.17-svnr22064/eglibc-0001-ptr_mangle.patch    | 35 ++++++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 package/glibc/2.17-svnr22064/eglibc-0001-ptr_mangle.patch

diff --git a/package/glibc/2.17-svnr22064/eglibc-0001-ptr_mangle.patch b/package/glibc/2.17-svnr22064/eglibc-0001-ptr_mangle.patch
new file mode 100644
index 0000000..c9bf107
--- /dev/null
+++ b/package/glibc/2.17-svnr22064/eglibc-0001-ptr_mangle.patch
@@ -0,0 +1,35 @@
+Fix for CVE-2013-4788 from http://hmarco.org/bugs/CVE-2013-4788.html
+
+Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
+
+diff -rupN glibc-2.17/csu/libc-start.c glibc-2.17-mangle-fix/csu/libc-start.c
+--- glibc-2.17/libc/csu/libc-start.c	2012-12-25 04:02:13.000000000 +0100
++++ glibc-2.17-mangle-fix/libc/csu/libc-start.c	2013-07-10 00:13:48.000000000 +0200
+@@ -38,6 +38,12 @@ extern void __pthread_initialize_minimal
+    in thread local area.  */
+ uintptr_t __stack_chk_guard attribute_relro;
+ # endif
++
++# ifndef  THREAD_SET_POINTER_GUARD
++uintptr_t __pointer_chk_guard_local
++     attribute_relro attribute_hidden __attribute__ ((nocommon));
++# endif
++
+ #endif
+ 
+ #ifdef HAVE_PTR_NTHREADS
+@@ -184,6 +190,14 @@ LIBC_START_MAIN (int (*main) (int, char
+ # else
+   __stack_chk_guard = stack_chk_guard;
+ # endif
++    uintptr_t pointer_chk_guard = _dl_setup_pointer_guard (_dl_random,
++                          stack_chk_guard);
++# ifdef THREAD_SET_POINTER_GUARD
++      THREAD_SET_POINTER_GUARD (pointer_chk_guard);
++# else
++      __pointer_chk_guard_local = pointer_chk_guard;
++# endif
++
+ #endif
+ 
+   /* Register the destructor of the dynamic linker if there is any.  */
-- 
1.8.3.2

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-11-28 13:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-27  0:51 [Buildroot] [PATCH 1/2] eglibc: add security patch for CVE-2013-4788 Gustavo Zacarias
2013-11-27  0:51 ` [Buildroot] [PATCH 2/2] qemu/mips64-malta: switch to eglibc Gustavo Zacarias
2013-11-27  8:24   ` Thomas Petazzoni
2013-11-27 10:06     ` Gustavo Zacarias
2013-11-27 13:03       ` Thomas Petazzoni
2013-11-27 13:10         ` Gustavo Zacarias
2013-11-27 10:15   ` Markos Chandras
2013-11-28 13:46 ` [Buildroot] [PATCH 1/2] eglibc: add security patch for CVE-2013-4788 Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox