]> code.ossystems Code Review - openembedded-core.git/commitdiff
binutils: Security fix for CVE-2017-9038 and CVE-2017-9044
authorArmin Kuster <akuster808@gmail.com>
Sun, 26 Nov 2017 21:28:58 +0000 (13:28 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 11 Dec 2017 22:01:54 +0000 (22:01 +0000)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/recipes-devtools/binutils/binutils-2.28.inc
meta/recipes-devtools/binutils/binutils/CVE-2017-9038_9044.patch [new file with mode: 0644]

index 5b6270a7c2772c0448f3d4f4b7d47085de8759f9..377165a7ff14fed707c16f004d520708a31b257b 100644 (file)
@@ -51,6 +51,7 @@ SRC_URI = "\
      file://CVE-2017-8396_8397.patch \
      file://CVE-2017-8398.patch \
      file://CVE-2017-8421.patch \
+     file://CVE-2017-9038_9044.patch \
 "
 S  = "${WORKDIR}/git"
 
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 (file)
index 0000000..535efc3
--- /dev/null
@@ -0,0 +1,51 @@
+From f32ba72991d2406b21ab17edc234a2f3fa7fb23d Mon Sep 17 00:00:00 2001
+From: Nick Clifton <nickc@redhat.com>
+Date: Mon, 3 Apr 2017 11:01:45 +0100
+Subject: [PATCH] readelf: Update check for invalid word offsets in ARM unwind
+ information.
+
+       PR binutils/21343
+       * readelf.c (get_unwind_section_word): Fix snafu checking for
+       invalid word offsets in ARM unwind information.
+
+Upstream-Status: Backport
+CVE: CVE-2017-9038
+CVE: CVE-2017-9044
+Signed-off-by: Armin Kuster <akuster@mvista.com>
+
+---
+ binutils/ChangeLog | 6 ++++++
+ binutils/readelf.c | 6 +++---
+ 2 files changed, 9 insertions(+), 3 deletions(-)
+
+Index: git/binutils/readelf.c
+===================================================================
+--- git.orig/binutils/readelf.c
++++ git/binutils/readelf.c
+@@ -7972,9 +7972,9 @@ get_unwind_section_word (struct arm_unw_
+     return FALSE;
+   /* If the offset is invalid then fail.  */
+-  if (word_offset > (sec->sh_size - 4)
+-      /* PR 18879 */
+-      || (sec->sh_size < 5 && word_offset >= sec->sh_size)
++  if (/* PR 21343 *//* PR 18879 */
++      sec->sh_size < 4
++      || word_offset > (sec->sh_size - 4)
+       || ((bfd_signed_vma) word_offset) < 0)
+     return FALSE;
+Index: git/binutils/ChangeLog
+===================================================================
+--- git.orig/binutils/ChangeLog
++++ git/binutils/ChangeLog
+@@ -1,3 +1,9 @@
++2017-04-03  Nick Clifton  <nickc@redhat.com>
++
++       PR binutils/21343
++       * readelf.c (get_unwind_section_word): Fix snafu checking for
++       invalid word offsets in ARM unwind information.
++
+ 2017-05-02  Nick Clifton  <nickc@redhat.com>
+        PR 21440