mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 00:49:33 +02:00
binutils: Secuirty fix CVE-2017-14930
affects <= 2.29.1 (From OE-Core rev: 47c3add5dcc7a29d4647da2c0ad86d756323aa8f) Signed-off-by: Armin Kuster <akuster@mvista.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
1ce31b2a81
commit
701eecc7d3
@@ -36,6 +36,7 @@ SRC_URI = "\
|
|||||||
file://0014-Detect-64-bit-MIPS-targets.patch \
|
file://0014-Detect-64-bit-MIPS-targets.patch \
|
||||||
file://0015-sync-with-OE-libtool-changes.patch \
|
file://0015-sync-with-OE-libtool-changes.patch \
|
||||||
file://CVE-2017-17124.patch \
|
file://CVE-2017-17124.patch \
|
||||||
|
file://CVE-2017-14930.patch \
|
||||||
"
|
"
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
|
|||||||
53
meta/recipes-devtools/binutils/binutils/CVE-2017-14930.patch
Normal file
53
meta/recipes-devtools/binutils/binutils/CVE-2017-14930.patch
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
From a26a013f22a19e2c16729e64f40ef8a7dfcc086e Mon Sep 17 00:00:00 2001
|
||||||
|
From: Alan Modra <amodra@gmail.com>
|
||||||
|
Date: Sun, 24 Sep 2017 17:10:14 +0930
|
||||||
|
Subject: [PATCH] PR22191, memory leak in dwarf2.c
|
||||||
|
|
||||||
|
table->sequences is a linked list before it is replaced by a bfd_alloc
|
||||||
|
array in sort_line_sequences.
|
||||||
|
|
||||||
|
PR 22191
|
||||||
|
* dwarf2.c (decode_line_info): Properly free line sequences on error.
|
||||||
|
|
||||||
|
Upstream-Status: Backport
|
||||||
|
Affects: <= 2.29.1
|
||||||
|
CVE: CVE-2017-14930
|
||||||
|
Signed-off-by: Armin Kuster <akuster@mvista.com>
|
||||||
|
|
||||||
|
---
|
||||||
|
bfd/ChangeLog | 5 +++++
|
||||||
|
bfd/dwarf2.c | 8 ++++++--
|
||||||
|
2 files changed, 11 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
Index: git/bfd/dwarf2.c
|
||||||
|
===================================================================
|
||||||
|
--- git.orig/bfd/dwarf2.c
|
||||||
|
+++ git/bfd/dwarf2.c
|
||||||
|
@@ -2473,8 +2473,12 @@ decode_line_info (struct comp_unit *unit
|
||||||
|
return table;
|
||||||
|
|
||||||
|
fail:
|
||||||
|
- if (table->sequences != NULL)
|
||||||
|
- free (table->sequences);
|
||||||
|
+ while (table->sequences != NULL)
|
||||||
|
+ {
|
||||||
|
+ struct line_sequence* seq = table->sequences;
|
||||||
|
+ table->sequences = table->sequences->prev_sequence;
|
||||||
|
+ free (seq);
|
||||||
|
+ }
|
||||||
|
if (table->files != NULL)
|
||||||
|
free (table->files);
|
||||||
|
if (table->dirs != NULL)
|
||||||
|
Index: git/bfd/ChangeLog
|
||||||
|
===================================================================
|
||||||
|
--- git.orig/bfd/ChangeLog
|
||||||
|
+++ git/bfd/ChangeLog
|
||||||
|
@@ -1,3 +1,8 @@
|
||||||
|
+2017-09-24 Alan Modra <amodra@gmail.com>
|
||||||
|
+
|
||||||
|
+ PR 22191
|
||||||
|
+ * dwarf2.c (decode_line_info): Properly free line sequences on error.
|
||||||
|
+
|
||||||
|
2017-11-28 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
PR 22507
|
||||||
Reference in New Issue
Block a user