Bug 198824 - [security] multiple vulnerabilities in contrib/binutils
Summary: [security] multiple vulnerabilities in contrib/binutils
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: gnu (show other bugs)
Version: CURRENT
Hardware: Any Any
: Normal Affects Some People
Assignee: Ed Maste
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-23 08:24 UTC by Sevan Janiyan
Modified: 2017-11-30 18:16 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Sevan Janiyan 2015-05-21 11:55:18 UTC
ping!
Comment 2 Xin LI freebsd_committer freebsd_triage 2015-06-01 20:30:19 UTC
Take.  This only affects those who use the base system binutils but we would issue a SA for it anyway once we get a changeset that is licensed under the same license of base system binutils or have the functionality removed permanently.
Comment 3 Mark Felder freebsd_committer freebsd_triage 2016-01-08 18:53:02 UTC
Just checking in on this
Comment 4 commit-hook freebsd_committer freebsd_triage 2017-11-23 14:31:41 UTC
A commit references this bug:

Author: emaste
Date: Thu Nov 23 14:30:42 UTC 2017
New revision: 326135
URL: https://svnweb.freebsd.org/changeset/base/326135

Log:
  bfd: fix segfault in the ihex parser on malformed ihex file

  From binutils commit 0102ea8cec5fc509bba6c91df61b7ce23a799d32, made
  available under GPLv2 by Nick Clifton.

  PR:		198824
  MFC after:	1 week
  Security:	CVE-2014-8503

Changes:
  head/contrib/binutils/bfd/ihex.c
Comment 5 commit-hook freebsd_committer freebsd_triage 2017-11-23 16:05:00 UTC
A commit references this bug:

Author: emaste
Date: Thu Nov 23 16:04:52 UTC 2017
New revision: 326136
URL: https://svnweb.freebsd.org/changeset/base/326136

Log:
  bfd: avoid crash on corrupt binaries

  From binutils commits 5a4b0ccc20ba30caef53b01bee2c0aaa5b855339 and
  7e1e19887abd24aeb15066b141cdff5541e0ec8e, made available under GPLv2
  by Nick Clifton.

  PR:		198824
  MFC after:	1 week
  Security:	CVE-2014-8501
  Security:	CVE-2014-8502

Changes:
  head/contrib/binutils/bfd/peXXigen.c
Comment 6 Ed Maste freebsd_committer freebsd_triage 2017-11-23 18:58:15 UTC
Note there are additional ways in which binutils poorly handles malformed input. I have merged these changes as they were identified here and Nick Clifton gave permission to apply them under GPLv2.
Comment 7 commit-hook freebsd_committer freebsd_triage 2017-11-30 00:25:33 UTC
A commit references this bug:

Author: emaste
Date: Thu Nov 30 00:24:28 UTC 2017
New revision: 326379
URL: https://svnweb.freebsd.org/changeset/base/326379

Log:
  MFC r326136: bfd: avoid crash on corrupt binaries

  From binutils commits 5a4b0ccc20ba30caef53b01bee2c0aaa5b855339 and
  7e1e19887abd24aeb15066b141cdff5541e0ec8e, made available under GPLv2
  by Nick Clifton.

  PR:		198824
  Security:	CVE-2014-8501
  Security:	CVE-2014-8502

Changes:
_U  stable/11/
  stable/11/contrib/binutils/bfd/peXXigen.c
Comment 8 commit-hook freebsd_committer freebsd_triage 2017-11-30 00:25:36 UTC
A commit references this bug:

Author: emaste
Date: Thu Nov 30 00:25:26 UTC 2017
New revision: 326380
URL: https://svnweb.freebsd.org/changeset/base/326380

Log:
  MFC r326136: bfd: avoid crash on corrupt binaries

  From binutils commits 5a4b0ccc20ba30caef53b01bee2c0aaa5b855339 and
  7e1e19887abd24aeb15066b141cdff5541e0ec8e, made available under GPLv2
  by Nick Clifton.

  PR:		198824
  Security:	CVE-2014-8501
  Security:	CVE-2014-8502

Changes:
_U  stable/10/
  stable/10/contrib/binutils/bfd/peXXigen.c
Comment 9 commit-hook freebsd_committer freebsd_triage 2017-11-30 00:27:40 UTC
A commit references this bug:

Author: emaste
Date: Thu Nov 30 00:26:45 UTC 2017
New revision: 326381
URL: https://svnweb.freebsd.org/changeset/base/326381

Log:
  MFC r326135: bfd: fix segfault in the ihex parser on malformed ihex file

  From binutils commit 0102ea8cec5fc509bba6c91df61b7ce23a799d32, made
  available under GPLv2 by Nick Clifton.

  PR:		198824
  Security:	CVE-2014-8503

Changes:
_U  stable/11/
  stable/11/contrib/binutils/bfd/ihex.c
Comment 10 commit-hook freebsd_committer freebsd_triage 2017-11-30 00:28:43 UTC
A commit references this bug:

Author: emaste
Date: Thu Nov 30 00:27:49 UTC 2017
New revision: 326382
URL: https://svnweb.freebsd.org/changeset/base/326382

Log:
  MFC r326135: bfd: fix segfault in the ihex parser on malformed ihex file

  From binutils commit 0102ea8cec5fc509bba6c91df61b7ce23a799d32, made
  available under GPLv2 by Nick Clifton.

  PR:		198824
  Security:	CVE-2014-8503

Changes:
_U  stable/10/
  stable/10/contrib/binutils/bfd/ihex.c
Comment 11 Ed Maste freebsd_committer freebsd_triage 2017-11-30 18:16:56 UTC
Those changes committed and merged to stable/11 and stable/10.

Other issues remain in our outdated binutils, mitigated somewhat by the fact that we now use only three binutils: as, ld, objdump. I'm happy to bring in additional fixes for these kinds of issues if we're able to obtain permission to use them under GPLv2.