[oe-commits] [openembedded-core] 11/51: binutils: CVE-2017-7223

git at git.openembedded.org git at git.openembedded.org
Sun Jan 7 17:11:20 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch morty
in repository openembedded-core.

commit b35c5c25947daf47b5cbccd8836e22234baa6f0f
Author: Thiruvadi Rajaraman <trajaraman at mvista.com>
AuthorDate: Mon Sep 4 13:52:14 2017 +0530

    binutils: CVE-2017-7223
    
    Source: git://sourceware.org/git/binutils-gdb.git
    MR: 74322
    Type: Security Fix
    Disposition: Backport from binutils-2_29-branch
    ChangeID: c7e14cdaab09996e736a6294834d3470ac9ddb6c
    Description:
    
    Fix seg fault attempting to unget an EOF character.
    
        PR gas/20898
        * app.c (do_scrub_chars): Do not attempt to unget EOF.
    
    Affects: <= 2.29
    
    Signed-off-by: Thiruvadi Rajaraman <trajaraman at mvista.com>
    Reviewed-by: Armin Kuster <akuster at mvista.com>
    Signed-off-by: Armin Kuster <akuster at mvista.com>
    Signed-off-by: Armin Kuster <akuster808 at gmail.com>
---
 meta/recipes-devtools/binutils/binutils-2.27.inc   |  1 +
 .../binutils/binutils/CVE-2017-7223.patch          | 40 ++++++++++++++++++++++
 2 files changed, 41 insertions(+)

diff --git a/meta/recipes-devtools/binutils/binutils-2.27.inc b/meta/recipes-devtools/binutils/binutils-2.27.inc
index 3b7c9f7..06c69b9 100644
--- a/meta/recipes-devtools/binutils/binutils-2.27.inc
+++ b/meta/recipes-devtools/binutils/binutils-2.27.inc
@@ -59,6 +59,7 @@ SRC_URI = "\
      file://CVE-2017-12451.patch \
      file://CVE-2017-12450_12452_12453_12454_12456_1.patch \
      file://CVE-2017-12450_12452_12453_12454_12456.patch \
+     file://CVE-2017-7223.patch \
 "
 S  = "${WORKDIR}/git"
 
diff --git a/meta/recipes-devtools/binutils/binutils/CVE-2017-7223.patch b/meta/recipes-devtools/binutils/binutils/CVE-2017-7223.patch
new file mode 100644
index 0000000..eb9fc6f
--- /dev/null
+++ b/meta/recipes-devtools/binutils/binutils/CVE-2017-7223.patch
@@ -0,0 +1,40 @@
+commit 69ace2200106348a1b00d509a6a234337c104c17
+Author: Nick Clifton <nickc at redhat.com>
+Date:   Thu Dec 1 15:20:19 2016 +0000
+
+    Fix seg fault attempting to unget an EOF character.
+    
+        PR gas/20898
+        * app.c (do_scrub_chars): Do not attempt to unget EOF.
+
+Upstream-Status: backport
+
+CVE: CVE-2017-7223
+Signed-off-by: Thiruvadi Rajaraman <trajaraman at mvista.com>
+
+Index: git/gas/ChangeLog
+===================================================================
+--- git.orig/gas/ChangeLog	2017-09-04 12:42:08.941602299 +0530
++++ git/gas/ChangeLog	2017-09-04 12:48:28.863820763 +0530
+@@ -1,3 +1,8 @@
++2016-12-01  Nick Clifton  <nickc at redhat.com>
++
++	PR gas/20898
++	* app.c (do_scrub_chars): Do not attempt to unget EOF.
++
+ 2016-08-05  Nick Clifton  <nickc at redhat.com>
+ 
+ 	PR gas/20364
+Index: git/gas/app.c
+===================================================================
+--- git.orig/gas/app.c	2017-09-04 12:42:05.261580103 +0530
++++ git/gas/app.c	2017-09-04 12:47:19.923428673 +0530
+@@ -1187,7 +1187,7 @@
+ 		  state = -2;
+ 		  break;
+ 		}
+-	      else
++	      else if (ch2 != EOF)
+ 		{
+ 		  UNGET (ch2);
+ 		}

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list