Cloudanix VulnDB

CVE-2017-15025

Medium · 5.5

CVSS

5.5

EPSS

1.8%

Published

Oct 5, 2017

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A problem in tools that read program files can make those tools crash when they encounter certain specially made files.

Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
Low
Impact
Denial Of Service
Component
Library
Class
Improper Input Validation
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

A crafted ELF file triggers a divide-by-zero in decode_line_info within libbfd's dwarf2.c handling, resulting in an application crash.

Why it matters to the business

Processing of untrusted or attacker-supplied binary files can cause crashes in build, debug, or analysis tools, interrupting development workflows and requiring restarts or workarounds.

How an attack unfolds

An attacker creates a malformed ELF containing invalid DWARF line information that forces a zero divisor during parsing; when a user or automated process opens the file with an affected Binutils-based tool, the application terminates.

How to fix it

Upgrade affected redka packages to the fixed versions: redka (Chainguard) 0.4.0-r1 or later and redka (Wolfi) 0.4.0-r1 or later. Rebuild any dependent images or containers after the upgrade.

How to confirm the fix worked

Confirm the installed package version meets or exceeds the listed fixed releases, then test processing of known-malformed ELF samples to verify absence of crashes.

Typical attack path

  1. Craft an ELF file containing malformed DWARF line tables that trigger division by zero
  2. Deliver the file to a target environment via download, package, or shared storage
  3. Induce the victim process or user to invoke a Binutils utility such as objdump or readelf on the file
  4. Observe application crash and denial of service

How to detect it

Monitor application and system logs for unexpected crashes or segmentation faults when processing ELF files; review process core dumps or stack traces referencing dwarf2.c or decode_line_info for signs of prior exploitation attempts.

What your security team should do

  • Apply the 0.4.0-r1 updates to redka packages immediately in all build and CI environments
  • Inventory systems that consume ELF files with Binutils tooling and prioritize upgrades
  • Add automated scanning of third-party binaries in pipelines to block malformed inputs

The record

decode_line_info in dwarf2.c in the Binary File Descriptor (BFD) library (aka libbfd), as distributed in GNU Binutils 2.29, allows remote attackers to cause a denial of service (divide-by-zero error and application crash) via a crafted ELF file.

Affected packages

Ecosystem Package Introduced Fixed
Debian:10 binutils 0 2.29.90.20180122-1
Debian:11 binutils 0 2.29.90.20180122-1
Debian:12 binutils 0 2.29.90.20180122-1
Debian:13 binutils 0 2.29.90.20180122-1
Mageia:6 binutils 0 2.32-1.1.mga6
Ubuntu:18.04:LTS binutils 0 2.30-21ubuntu1~18.04.1
Ubuntu:Pro:14.04:LTS binutils 0 No fix
Ubuntu:Pro:16.04:LTS binutils 0 2.26.1-1ubuntu1~16.04.8+esm1

Related vulnerabilities