summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/binutils/binutils-2.27.inc1
-rw-r--r--meta/recipes-devtools/binutils/binutils/CVE-2017-14729.patch45
2 files changed, 46 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils-2.27.inc b/meta/recipes-devtools/binutils/binutils-2.27.inc
index b38a9583cf..b1669a4ef0 100644
--- a/meta/recipes-devtools/binutils/binutils-2.27.inc
+++ b/meta/recipes-devtools/binutils/binutils-2.27.inc
@@ -100,6 +100,7 @@ SRC_URI = "\
100 file://CVE-2017-9955_7.patch \ 100 file://CVE-2017-9955_7.patch \
101 file://CVE-2017-9955_8.patch \ 101 file://CVE-2017-9955_8.patch \
102 file://CVE-2017-9955_9.patch \ 102 file://CVE-2017-9955_9.patch \
103 file://CVE-2017-14729.patch \
103" 104"
104S = "${WORKDIR}/git" 105S = "${WORKDIR}/git"
105 106
diff --git a/meta/recipes-devtools/binutils/binutils/CVE-2017-14729.patch b/meta/recipes-devtools/binutils/binutils/CVE-2017-14729.patch
new file mode 100644
index 0000000000..09d5143829
--- /dev/null
+++ b/meta/recipes-devtools/binutils/binutils/CVE-2017-14729.patch
@@ -0,0 +1,45 @@
1commit 61e3bf5f83f7e505b6bc51ef65426e5b31e6e360
2Author: H.J. Lu <hjl.tools@gmail.com>
3Date: Fri Sep 22 14:15:40 2017 -0700
4
5x86: Guard against corrupted PLT
6
7There should be only one entry in PLT for a given symbol. Set howto to
8NULL after processing a PLT entry to guard against corrupted PLT so that
9the duplicated PLT entries are skipped.
10
11PR binutils/22170
12
13Upstream-Status: Backport
14
15CVE: CVE-2017-14729
16Signed-off-by: Thiruvadi Rajaraman <trajaraman@mvista.com>
17Index: git/bfd/elf-ifunc.c
18===================================================================
19--- git.orig/bfd/elf-ifunc.c 2017-11-08 12:34:22.063320490 +0530
20+++ git/bfd/elf-ifunc.c 2017-11-08 12:34:29.995404891 +0530
21@@ -473,6 +473,10 @@
22 memcpy (names, "@plt", sizeof ("@plt"));
23 names += sizeof ("@plt");
24 ++s, ++n;
25+ /* There should be only one entry in PLT for a given
26+ symbol. Set howto to NULL after processing a PLT
27+ entry to guard against corrupted PLT. */
28+ p->howto = NULL;
29 }
30
31 free (plt_sym_val);
32Index: git/bfd/ChangeLog
33===================================================================
34--- git.orig/bfd/ChangeLog 2017-11-08 12:34:29.939404297 +0530
35+++ git/bfd/ChangeLog 2017-11-08 12:35:55.660271599 +0530
36@@ -1,3 +1,9 @@
37+2017-09-22 H.J. Lu <hongjiu.lu@intel.com>
38+
39+ PR binutils/22170
40+ * elf-ifunc.c (elf_get_synthetic_symtab): Guard against
41+ corrupted PLT.
42+
43 2017-07-27 Nick Clifton <nickc@redhat.com>
44
45 PR 21840