aboutsummaryrefslogtreecommitdiff
Fix CVE-2019-19126:

https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-19126
https://sourceware.org/bugzilla/show_bug.cgi?id=25204

Taken from upstream:
https://sourceware.org/git/?p=glibc.git;a=commit;h=37c90e117310728a4ad1eb998c0bbe7d79c4a398

diff --git a/sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h b/sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
index 975cbe2..df2cdfd 100644
--- a/sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
+++ b/sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
@@ -31,7 +31,8 @@
    environment variable, LD_PREFER_MAP_32BIT_EXEC.  */
 #define EXTRA_LD_ENVVARS \
   case 21:								  \
-    if (memcmp (envline, "PREFER_MAP_32BIT_EXEC", 21) == 0)		  \
+    if (!__libc_enable_secure						  \
+	&& memcmp (envline, "PREFER_MAP_32BIT_EXEC", 21) == 0)		  \
       GLRO(dl_x86_cpu_features).feature[index_arch_Prefer_MAP_32BIT_EXEC] \
 	|= bit_arch_Prefer_MAP_32BIT_EXEC;				  \
     break;
s hours and seconds....Ludovic Courtès 2016-04-03build: Add a Guile custom test driver using SRFI-64....Mathieu Lirzin 2016-03-02utils: Use '@' for separating package names and version numbers....Mathieu Lirzin 2015-09-24ui: Gracefully handle Unicode description strings....Ludovic Courtès 2015-09-18Add (guix scripts)....Alex Kost 2015-02-26ui: Honor --no-* options passed via $GUIX_BUILD_OPTIONS....Ludovic Courtès 2015-02-26ui: Factorize command-line + env. var. option parsing....Ludovic Courtès 2015-02-08ui: Simplify 'show-manifest-transaction' test....Ludovic Courtès 2014-10-10ui: Move 'show-manifest-transaction' from (guix profiles)....Alex Kost 2014-10-03ui: Recognize the same size units as Coreutils....Ludovic Courtès 2014-08-11ui: Fix handling of periods by fill-paragraph....Cyrill Schenkel 2014-05-19ui: Gracefully deal with zero-output derivations....Ludovic Courtès 2014-04-08ui: Add 'size->number'....Ludovic Courtès