summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorThiruvadi Rajaraman <trajaraman@mvista.com>2017-11-08 12:38:06 +0530
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-01-07 17:10:09 +0000
commit05281ec4a64e22b2c8fcaa153e0f03464800092c (patch)
tree8270ab6dcf0ced91d3c14e422822c64ecf12fec2 /meta/recipes-devtools
parente7f53f5fe5f5977c2f5fe206052e8c6d0b3bd1a2 (diff)
downloadpoky-05281ec4a64e22b2c8fcaa153e0f03464800092c.tar.gz
binutils: CVE-2017-14729
Source: binutils-gdb.git MR: 76278 Type: Security Fix Disposition: Backport from binutils-2_29 ChangeID: 05de8bcd22d8d0b54badcd3826cd370b3aed81de Description: x86: Guard against corrupted PLT There should be only one entry in PLT for a given symbol. Set howto to NULL after processing a PLT entry to guard against corrupted PLT so that the duplicated PLT entries are skipped. PR binutils/22170 Affects: <= 2.29 (From OE-Core rev: 51fc4c8d86bc7c567794305bcc08e5054e9e204a) Signed-off-by: Thiruvadi Rajaraman <trajaraman@mvista.com> Reviewed-by: Armin Kuster <akuster@mvista.com> Signed-off-by: Armin Kuster <akuster@mvista.com> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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