Skip to contentSkip to conversation

binutils: Security fix for CVE-2017-17123

PATCH Superseded Armin Kuster 2 participants 13 messages Aug 8, 2018

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/12 binutils: Security fix for CVE-2017-17123

From: Armin Kuster <[email protected]>

Affects: <= 2.29.1

---
 meta/recipes-devtools/binutils/binutils-2.29.1.inc |  1 +
 .../binutils/binutils/CVE-2017-17123.patch         | 33 ++++++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 100644 meta/recipes-devtools/binutils/binutils/CVE-2017-17123.patch
meta/recipes-devtools/binutils/binutils-2.29.1.inc +1 -0
index f80b59a..8fe897e 100644
@@ -64,6 +64,7 @@ SRC_URI = "\
      file://CVE-2017-17121.patch \
      file://CVE-2017-17122.patch \
      file://CVE-2017-17125.patch \
+     file://CVE-2017-17123.patch \
 "
 S  = "${WORKDIR}/git"
 
meta/recipes-devtools/binutils/binutils/CVE-2017-17123.patch new file +33 -0
new file mode 100644
index 0000000..0841210
@@ -0,0 +1,33 @@
+From 4581a1c7d304ce14e714b27522ebf3d0188d6543 Mon Sep 17 00:00:00 2001
+From: Nick Clifton <[email protected]>
+Date: Wed, 29 Nov 2017 17:12:12 +0000
+Subject: [PATCH] Check for a NULL symbol pointer when reading relocs from a
+ COFF based file.
+
+	PR 22509
+	* coffcode.h (coff_slurp_reloc_table): Check for a NULL symbol
+	pointer when processing relocs.
+
+Upstream-Status: Backport
+Affects: <= 2.29.1
+CVE: CVE-2017-17123
+Signed-off-by: Armin Kuster <[email protected]>
+
+---
+ bfd/ChangeLog  | 6 ++++++
+ bfd/coffcode.h | 2 +-
+ 2 files changed, 7 insertions(+), 1 deletion(-)
+
+Index: git/bfd/coffcode.h
+===================================================================
+--- git.orig/bfd/coffcode.h
++++ git/bfd/coffcode.h
+@@ -5326,7 +5326,7 @@ coff_slurp_reloc_table (bfd * abfd, sec_
+ #else
+       cache_ptr->address = dst.r_vaddr;
+ 
+-      if (dst.r_symndx != -1)
++      if (dst.r_symndx != -1 && symbols != NULL)
+ 	{
+ 	  if (dst.r_symndx < 0 || dst.r_symndx >= obj_conv_table_size (abfd))
+ 	    {
Signature · 1 line
2.7.4
#1 lore raw

PATCH 2/12 Binutils: Security fix for CVE-2018-10372

From: Armin Kuster <[email protected]>

Affects: <= 2.30

---
 meta/recipes-devtools/binutils/binutils-2.29.1.inc |  1 +
 .../binutils/binutils/CVE-2018-10372.patch         | 58 ++++++++++++++++++++++
 2 files changed, 59 insertions(+)
 create mode 100644 meta/recipes-devtools/binutils/binutils/CVE-2018-10372.patch
meta/recipes-devtools/binutils/binutils-2.29.1.inc +1 -0
index 8fe897e..7830b87 100644
@@ -65,6 +65,7 @@ SRC_URI = "\
      file://CVE-2017-17122.patch \
      file://CVE-2017-17125.patch \
      file://CVE-2017-17123.patch \
+     file://CVE-2018-10372.patch \
 "
 S  = "${WORKDIR}/git"
 
meta/recipes-devtools/binutils/binutils/CVE-2018-10372.patch new file +58 -0

58 lines not on this page · raw message

Signature · 1 line
2.7.4
#2 lore raw

PATCH 3/12 Binutils: Security fix for CVE-2018-10373

In reply to Armin Kuster

From: Armin Kuster <[email protected]>

Affects: <= 2.30

---
 meta/recipes-devtools/binutils/binutils-2.29.1.inc |  1 +
 .../binutils/binutils/CVE-2018-10373.patch         | 45 ++++++++++++++++++++++
 2 files changed, 46 insertions(+)
 create mode 100644 meta/recipes-devtools/binutils/binutils/CVE-2018-10373.patch
meta/recipes-devtools/binutils/binutils-2.29.1.inc +1 -0
index 7830b87..1916743 100644
@@ -66,6 +66,7 @@ SRC_URI = "\
      file://CVE-2017-17125.patch \
      file://CVE-2017-17123.patch \
      file://CVE-2018-10372.patch \
+     file://CVE-2018-10373.patch \
 "
 S  = "${WORKDIR}/git"
 
meta/recipes-devtools/binutils/binutils/CVE-2018-10373.patch new file +45 -0

45 lines not on this page · raw message

Signature · 1 line
2.7.4
#3 lore raw

PATCH 4/12 Binutils: Security fix for CVE-2018-10534

In reply to Armin Kuster

From: Armin Kuster <[email protected]>

Affects: <= 2.30

---
 meta/recipes-devtools/binutils/binutils-2.29.1.inc |    1 +
 .../binutils/binutils/CVE-2018-10534.patch         | 2443 ++++++++++++++++++++
 2 files changed, 2444 insertions(+)
 create mode 100644 meta/recipes-devtools/binutils/binutils/CVE-2018-10534.patch
meta/recipes-devtools/binutils/binutils-2.29.1.inc +1 -0
index 1916743..ab61745 100644
@@ -67,6 +67,7 @@ SRC_URI = "\
      file://CVE-2017-17123.patch \
      file://CVE-2018-10372.patch \
      file://CVE-2018-10373.patch \
+     file://CVE-2018-10534.patch \
 "
 S  = "${WORKDIR}/git"
 
meta/recipes-devtools/binutils/binutils/CVE-2018-10534.patch new file +2443 -0

2,443 lines not on this page · raw message

Signature · 1 line
2.7.4
#4 lore raw

PATCH 5/12 Binutils: Security fix for CVE-2018-10535

In reply to Armin Kuster

From: Armin Kuster <[email protected]>

Affects: <= 2.30

---
 meta/recipes-devtools/binutils/binutils-2.29.1.inc |  1 +
 .../binutils/binutils/CVE-2018-10535.patch         | 63 ++++++++++++++++++++++
 2 files changed, 64 insertions(+)
 create mode 100644 meta/recipes-devtools/binutils/binutils/CVE-2018-10535.patch
meta/recipes-devtools/binutils/binutils-2.29.1.inc +1 -0
index ab61745..4d9983b 100644
@@ -68,6 +68,7 @@ SRC_URI = "\
      file://CVE-2018-10372.patch \
      file://CVE-2018-10373.patch \
      file://CVE-2018-10534.patch \
+     file://CVE-2018-10535.patch \
 "
 S  = "${WORKDIR}/git"
 
meta/recipes-devtools/binutils/binutils/CVE-2018-10535.patch new file +63 -0

63 lines not on this page · raw message

Signature · 1 line
2.7.4
#5 lore raw

PATCH 6/12 Binutils: Security fix for CVE-2018-13033

In reply to Armin Kuster

From: Armin Kuster <[email protected]>

Affects: <= 2.30

---
 meta/recipes-devtools/binutils/binutils-2.29.1.inc |  1 +
 .../binutils/binutils/CVE-2018-13033.patch         | 71 ++++++++++++++++++++++
 2 files changed, 72 insertions(+)
 create mode 100644 meta/recipes-devtools/binutils/binutils/CVE-2018-13033.patch
meta/recipes-devtools/binutils/binutils-2.29.1.inc +1 -0
index 4d9983b..2f9b4fe 100644
@@ -69,6 +69,7 @@ SRC_URI = "\
      file://CVE-2018-10373.patch \
      file://CVE-2018-10534.patch \
      file://CVE-2018-10535.patch \
+     file://CVE-2018-13033.patch \
 "
 S  = "${WORKDIR}/git"
 
meta/recipes-devtools/binutils/binutils/CVE-2018-13033.patch new file +71 -0

71 lines not on this page · raw message

Signature · 1 line
2.7.4
#6 lore raw

PATCH 7/12 Binutils: Security fix for CVE-2018-6323

In reply to Armin Kuster

From: Armin Kuster <[email protected]>

Affected: <= 2.29.1

---
 meta/recipes-devtools/binutils/binutils-2.29.1.inc |  1 +
 .../binutils/binutils/CVE-2018-6323.patch          | 55 ++++++++++++++++++++++
 2 files changed, 56 insertions(+)
 create mode 100644 meta/recipes-devtools/binutils/binutils/CVE-2018-6323.patch
meta/recipes-devtools/binutils/binutils-2.29.1.inc +1 -0
index 2f9b4fe..db7305a 100644
@@ -70,6 +70,7 @@ SRC_URI = "\
      file://CVE-2018-10534.patch \
      file://CVE-2018-10535.patch \
      file://CVE-2018-13033.patch \
+     file://CVE-2018-6323.patch \
 "
 S  = "${WORKDIR}/git"
 
meta/recipes-devtools/binutils/binutils/CVE-2018-6323.patch new file +55 -0

55 lines not on this page · raw message

Signature · 1 line
2.7.4
#7 lore raw

PATCH 8/12 Binutils: Security fix for CVE-2018-6759

In reply to Armin Kuster

From: Armin Kuster <[email protected]>

Affects: <= 2.30

---
 meta/recipes-devtools/binutils/binutils-2.29.1.inc |   1 +
 .../binutils/binutils/CVE-2018-6759.patch          | 108 +++++++++++++++++++++
 2 files changed, 109 insertions(+)
 create mode 100644 meta/recipes-devtools/binutils/binutils/CVE-2018-6759.patch
meta/recipes-devtools/binutils/binutils-2.29.1.inc +1 -0
index db7305a..c668e63 100644
@@ -71,6 +71,7 @@ SRC_URI = "\
      file://CVE-2018-10535.patch \
      file://CVE-2018-13033.patch \
      file://CVE-2018-6323.patch \
+     file://CVE-2018-6759.patch \
 "
 S  = "${WORKDIR}/git"
 
meta/recipes-devtools/binutils/binutils/CVE-2018-6759.patch new file +108 -0

108 lines not on this page · raw message

Signature · 1 line
2.7.4
#8 lore raw

PATCH 9/12 Binutils: Security fix for CVE-2018-7208

In reply to Armin Kuster

From: Armin Kuster <[email protected]>

Affects: <= 2.30

---
 meta/recipes-devtools/binutils/binutils-2.29.1.inc |  1 +
 .../binutils/binutils/CVE-2018-7208.patch          | 47 ++++++++++++++++++++++
 2 files changed, 48 insertions(+)
 create mode 100644 meta/recipes-devtools/binutils/binutils/CVE-2018-7208.patch
meta/recipes-devtools/binutils/binutils-2.29.1.inc +1 -0
index c668e63..13389a1 100644
@@ -72,6 +72,7 @@ SRC_URI = "\
      file://CVE-2018-13033.patch \
      file://CVE-2018-6323.patch \
      file://CVE-2018-6759.patch \
+     file://CVE-2018-7208.patch \
 "
 S  = "${WORKDIR}/git"
 
meta/recipes-devtools/binutils/binutils/CVE-2018-7208.patch new file +47 -0

47 lines not on this page · raw message

Signature · 1 line
2.7.4
#9 lore raw

PATCH 10/12 Binutils: Security fix for CVE-2018-7568

In reply to Armin Kuster

From: Armin Kuster <[email protected]>

Affects: <= 2.30

---
 meta/recipes-devtools/binutils/binutils-2.29.1.inc |   2 +
 .../binutils/binutils/CVE-2018-7568_p1.patch       | 161 +++++++++++++++++++++
 .../binutils/binutils/CVE-2018-7568_p2.patch       |  73 ++++++++++
 3 files changed, 236 insertions(+)
 create mode 100644 meta/recipes-devtools/binutils/binutils/CVE-2018-7568_p1.patch
 create mode 100644 meta/recipes-devtools/binutils/binutils/CVE-2018-7568_p2.patch
meta/recipes-devtools/binutils/binutils-2.29.1.inc +2 -0
index 13389a1..ceb8e85 100644
@@ -73,6 +73,8 @@ SRC_URI = "\
      file://CVE-2018-6323.patch \
      file://CVE-2018-6759.patch \
      file://CVE-2018-7208.patch \
+     file://CVE-2018-7568_p1.patch \
+     file://CVE-2018-7568_p2.patch \
 "
 S  = "${WORKDIR}/git"
 
meta/recipes-devtools/binutils/binutils/CVE-2018-7568_p1.patch new file +161 -0

161 lines not on this page · raw message

meta/recipes-devtools/binutils/binutils/CVE-2018-7568_p2.patch new file +73 -0

73 lines not on this page · raw message

Signature · 1 line
2.7.4
#10 lore raw

PATCH 11/12 Binutils: Security fix for CVE-2018-7569

In reply to Armin Kuster

From: Armin Kuster <[email protected]>

Affects: <= 2.30

---
 meta/recipes-devtools/binutils/binutils-2.29.1.inc |   1 +
 .../binutils/binutils/CVE-2018-7569.patch          | 120 +++++++++++++++++++++
 2 files changed, 121 insertions(+)
 create mode 100644 meta/recipes-devtools/binutils/binutils/CVE-2018-7569.patch
meta/recipes-devtools/binutils/binutils-2.29.1.inc +1 -0
index ceb8e85..cfde35c 100644
@@ -75,6 +75,7 @@ SRC_URI = "\
      file://CVE-2018-7208.patch \
      file://CVE-2018-7568_p1.patch \
      file://CVE-2018-7568_p2.patch \
+     file://CVE-2018-7569.patch \
 "
 S  = "${WORKDIR}/git"
 
meta/recipes-devtools/binutils/binutils/CVE-2018-7569.patch new file +120 -0

120 lines not on this page · raw message

Signature · 1 line
2.7.4
#11 lore raw

PATCH 12/12 Binutils: Security fix for CVE-2018-7642

In reply to Armin Kuster

From: Armin Kuster <[email protected]>

Affects: <= 2.30

---
 meta/recipes-devtools/binutils/binutils-2.29.1.inc |  1 +
 .../binutils/binutils/CVE-2018-7642.patch          | 51 ++++++++++++++++++++++
 2 files changed, 52 insertions(+)
 create mode 100644 meta/recipes-devtools/binutils/binutils/CVE-2018-7642.patch
meta/recipes-devtools/binutils/binutils-2.29.1.inc +1 -0
index cfde35c..eccb128 100644
@@ -76,6 +76,7 @@ SRC_URI = "\
      file://CVE-2018-7568_p1.patch \
      file://CVE-2018-7568_p2.patch \
      file://CVE-2018-7569.patch \
+     file://CVE-2018-7642.patch \
 "
 S  = "${WORKDIR}/git"
 
meta/recipes-devtools/binutils/binutils/CVE-2018-7642.patch new file +51 -0

51 lines not on this page · raw message

Signature · 1 line
2.7.4
#12 lore raw

✗ patchtest: failure for "[ROCKO] binutils: Security fix..." and 11 more

In reply to Armin Kuster

== Series Details ==

Series: "[ROCKO] binutils: Security fix..." and 11 more
Revision: 1
URL : https://patchwork.openembedded.org/series/13433/
State : failure

== Summary ==

Thank you for submitting this patch series to OpenEmbedded Core. This is an automated response. Several tests have been executed on the proposed series by patchtest resulting in the following failures:

* Issue Series does not apply on top of target branch [test_series_merge_on_head]
Suggested fix Rebase your series on top of targeted branch
Targeted branch rocko (currently at 931a52e869)

If you believe any of these test results are incorrect, please reply to the mailing list ([email protected]) raising your concerns. Otherwise we would appreciate you correcting the issues and submitting a new version of the patchset if applicable. Please ensure you add/increment the version number when sending the new version (i.e. [PATCH] -> [PATCH v2] -> [PATCH v3] -> ...).

---

Guidelines:     https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite:     http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe