Out-of-bounds Write Affecting binutils package, versions <2.26.1-1ubuntu1~16.04.8+esm1


low

Snyk CVSS

    Attack Complexity Low
    Availability High

    Threat Intelligence

    EPSS 0.08% (32nd percentile)
Expand this section
NVD
5.5 medium
Expand this section
SUSE
5.3 medium
Expand this section
Red Hat
2.8 low

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-UBUNTU1604-BINUTILS-349236
  • published 29 Apr 2018
  • disclosed 29 Apr 2018

How to fix?

Upgrade Ubuntu:16.04 binutils to version 2.26.1-1ubuntu1~16.04.8+esm1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream binutils package and not the binutils package as distributed by Ubuntu. See How to fix? for Ubuntu:16.04 relevant fixed versions and status.

The _bfd_XX_bfd_copy_private_bfd_data_common function in peXXigen.c in the Binary File Descriptor (BFD) library (aka libbfd), as distributed in GNU Binutils 2.30, processes a negative Data Directory size with an unbounded loop that increases the value of (external_IMAGE_DEBUG_DIRECTORY) *edd so that the address exceeds its own memory region, resulting in an out-of-bounds memory write, as demonstrated by objcopy copying private info with _bfd_pex64_bfd_copy_private_bfd_data_common in pex64igen.c.