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.28.inc1
-rw-r--r--meta/recipes-devtools/binutils/binutils/CVE-2017-9038_9044.patch51
2 files changed, 52 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils-2.28.inc b/meta/recipes-devtools/binutils/binutils-2.28.inc
index 5b6270a7c2..377165a7ff 100644
--- a/meta/recipes-devtools/binutils/binutils-2.28.inc
+++ b/meta/recipes-devtools/binutils/binutils-2.28.inc
@@ -51,6 +51,7 @@ SRC_URI = "\
51 file://CVE-2017-8396_8397.patch \ 51 file://CVE-2017-8396_8397.patch \
52 file://CVE-2017-8398.patch \ 52 file://CVE-2017-8398.patch \
53 file://CVE-2017-8421.patch \ 53 file://CVE-2017-8421.patch \
54 file://CVE-2017-9038_9044.patch \
54" 55"
55S = "${WORKDIR}/git" 56S = "${WORKDIR}/git"
56 57
diff --git a/meta/recipes-devtools/binutils/binutils/CVE-2017-9038_9044.patch b/meta/recipes-devtools/binutils/binutils/CVE-2017-9038_9044.patch
new file mode 100644
index 0000000000..535efc314f
--- /dev/null
+++ b/meta/recipes-devtools/binutils/binutils/CVE-2017-9038_9044.patch
@@ -0,0 +1,51 @@
1From f32ba72991d2406b21ab17edc234a2f3fa7fb23d Mon Sep 17 00:00:00 2001
2From: Nick Clifton <nickc@redhat.com>
3Date: Mon, 3 Apr 2017 11:01:45 +0100
4Subject: [PATCH] readelf: Update check for invalid word offsets in ARM unwind
5 information.
6
7 PR binutils/21343
8 * readelf.c (get_unwind_section_word): Fix snafu checking for
9 invalid word offsets in ARM unwind information.
10
11Upstream-Status: Backport
12CVE: CVE-2017-9038
13CVE: CVE-2017-9044
14Signed-off-by: Armin Kuster <akuster@mvista.com>
15
16---
17 binutils/ChangeLog | 6 ++++++
18 binutils/readelf.c | 6 +++---
19 2 files changed, 9 insertions(+), 3 deletions(-)
20
21Index: git/binutils/readelf.c
22===================================================================
23--- git.orig/binutils/readelf.c
24+++ git/binutils/readelf.c
25@@ -7972,9 +7972,9 @@ get_unwind_section_word (struct arm_unw_
26 return FALSE;
27
28 /* If the offset is invalid then fail. */
29- if (word_offset > (sec->sh_size - 4)
30- /* PR 18879 */
31- || (sec->sh_size < 5 && word_offset >= sec->sh_size)
32+ if (/* PR 21343 *//* PR 18879 */
33+ sec->sh_size < 4
34+ || word_offset > (sec->sh_size - 4)
35 || ((bfd_signed_vma) word_offset) < 0)
36 return FALSE;
37
38Index: git/binutils/ChangeLog
39===================================================================
40--- git.orig/binutils/ChangeLog
41+++ git/binutils/ChangeLog
42@@ -1,3 +1,9 @@
43+2017-04-03 Nick Clifton <nickc@redhat.com>
44+
45+ PR binutils/21343
46+ * readelf.c (get_unwind_section_word): Fix snafu checking for
47+ invalid word offsets in ARM unwind information.
48+
49 2017-05-02 Nick Clifton <nickc@redhat.com>
50
51 PR 21440