Cloudanix VulnDB

CVE-2017-9039

Medium · 5.5

CVSS

5.5

EPSS

2.1%

Published

May 18, 2017

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A flaw in an old version of a common binary analysis tool can let a malicious file use up all available memory and stop related processes from working.

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

What it actually does

Remote attackers can trigger excessive memory allocation in the get_program_headers function when processing an ELF binary containing an abnormally large number of program headers, resulting in denial of service.

Why it matters to the business

Processing untrusted ELF files in build, debugging, or packaging pipelines may cause processes to exhaust memory and become unavailable, leading to interrupted development or deployment workflows; the issue affects older Chainguard mysql packages that bundle the vulnerable binutils component.

How an attack unfolds

An attacker creates a specially crafted ELF file with thousands of program headers, then supplies the file to any tool that invokes the vulnerable readelf logic; when the target processes the file, memory consumption grows until the process is terminated or the system becomes unresponsive.

How to fix it

Upgrade affected Chainguard mysql packages to the versions that include the fixed binutils: mysql-8.0, mysql-8.0-dev, mysql-8.0-oci-entrypoint, mysql-8.0-oci-entrypoint-compat, and mysql-8.0-client all fixed in 8.0.38-r0. Rebuild any images or containers that embed older versions.

How to confirm the fix worked

Confirm package versions match the fixed releases, then attempt to process a test ELF containing a large number of program headers and verify that memory usage remains bounded.

Typical attack path

  1. Attacker generates ELF binary with excessive PHDR count
  2. Attacker delivers the file to a system running vulnerable readelf (via build scripts, package inspection, or manual invocation)
  3. readelf parses the header table and allocates memory for each entry
  4. Memory usage exhausts available resources, causing DoS

How to detect it

Review process accounting, memory usage logs, and any build or packaging logs that record invocations of readelf on external ELF files; look for sudden spikes in memory consumption correlated with ELF processing.

What your security team should do

  • Apply the 8.0.38-r0 updates to all listed mysql packages immediately
  • Scan container registries and build pipelines for any remaining references to pre-8.0.38-r0 mysql images
  • Add ELF file validation or resource limits to any automated tooling that invokes readelf on untrusted inputs

The record

GNU Binutils 2.28 allows remote attackers to cause a denial of service (memory consumption) via a crafted ELF file with many program headers, related to the get_program_headers function in readelf.c.

Affected packages

Ecosystem Package Introduced Fixed
Debian:10 binutils 0 2.28-6
Debian:11 binutils 0 2.28-6
Debian:12 binutils 0 2.28-6
Debian:13 binutils 0 2.28-6
Mageia:6 binutils 0 2.32-1.1.mga6
SUSE:Linux Enterprise Desktop 12 SP2 binutils 0 2.29.1-9.20.2
SUSE:Linux Enterprise Desktop 12 SP3 binutils 0 2.29.1-9.20.2
SUSE:Linux Enterprise Server 12 SP2 binutils 0 2.29.1-9.20.2
SUSE:Linux Enterprise Server 12 SP3 binutils 0 2.29.1-9.20.2
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 binutils 0 2.29.1-9.20.2
SUSE:Linux Enterprise Server for SAP Applications 12 SP1 binutils 0 2.29.1-9.20.2
SUSE:Linux Enterprise Server for SAP Applications 12 SP2 binutils 0 2.29.1-9.20.2
SUSE:Linux Enterprise Server for SAP Applications 12 SP3 binutils 0 2.29.1-9.20.2
SUSE:Linux Enterprise Software Development Kit 12 SP2 binutils 0 2.29.1-9.20.2
SUSE:Linux Enterprise Software Development Kit 12 SP2 cross-ppc-binutils 0 2.29.1-9.20.2
SUSE:Linux Enterprise Software Development Kit 12 SP2 cross-spu-binutils 0 2.29.1-9.20.2
SUSE:Linux Enterprise Software Development Kit 12 SP3 binutils 0 2.29.1-9.20.2
SUSE:Linux Enterprise Software Development Kit 12 SP3 cross-ppc-binutils 0 2.29.1-9.20.2
SUSE:Linux Enterprise Software Development Kit 12 SP3 cross-spu-binutils 0 2.29.1-9.20.2
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