Cloudanix VulnDB

CVE-2017-15024

Medium · 5.5

CVSS

5.5

EPSS

1.6%

Published

Oct 5, 2017

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

Certain build tools can be made to crash by specially crafted files, causing temporary disruption until the software is updated.

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

What it actually does

A flaw in find_abstract_instance_name within dwarf2.c of libbfd allows a specially crafted ELF file to trigger unbounded recursion, exhausting stack resources and crashing the process.

Why it matters to the business

Build and container tooling can be forced offline by untrusted input files, interrupting software supply-chain pipelines and requiring manual restarts or rollbacks until patches are applied.

How an attack unfolds

An attacker crafts a malformed ELF file containing recursive DWARF information, then supplies it to an affected binary such as buildctl or buildkitd; the library enters infinite recursion on parsing and terminates the application.

How to fix it

Upgrade buildkitd and buildctl packages in Chainguard and Wolfi environments to version 0.12.5-r0 or later; rebuild any dependent container images after the update.

How to confirm the fix worked

Confirm installed package versions match the fixed releases, then attempt to process a known-triggering ELF file in a controlled environment to verify absence of crash behavior.

Typical attack path

  1. Obtain or generate a malicious ELF file with crafted DWARF sections
  2. Deliver the file to an affected build tool via local filesystem or build context
  3. Trigger parsing of the ELF during normal operation
  4. Observe process crash due to stack exhaustion

How to detect it

Review process crash logs and core dumps from buildkitd or buildctl for stack-overflow signatures when ELF files are processed; correlate with build job timestamps and input file hashes.

What your security team should do

  • Apply the 0.12.5-r0 updates to all Chainguard and Wolfi buildkitd and buildctl instances immediately
  • Scan build pipelines for any local ELF processing that could accept untrusted inputs
  • Add version pinning and automated update checks to prevent regression to vulnerable releases

The record

find_abstract_instance_name 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 (infinite recursion 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