Cloudanix VulnDB

CVE-2017-9041

Medium · 5.5

CVSS

5.5

EPSS

1.9%

Published

May 18, 2017

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A tool used to inspect program files can crash when given a specially crafted file, which may interrupt software builds or analysis tasks.

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

What it actually does

Heap-based buffer over-read in process_mips_specific function of readelf.c triggered by crafted ELF files with malformed MIPS GOT sections, causing application crash.

Why it matters to the business

Processing of untrusted or attacker-supplied binary files in build, analysis, or packaging pipelines can trigger crashes, leading to disrupted workflows and potential loss of productivity in environments using older Binutils versions.

How an attack unfolds

An attacker crafts a malicious ELF file containing malformed MIPS GOT data, then supplies the file to a victim system where readelf is invoked either directly or indirectly through automated tools; the mishandling in process_mips_specific results in a buffer over-read and immediate crash.

How to fix it

Upgrade affected packages to the fixed versions: dex (Chainguard) 2.39.1-r2 or later and dex (Wolfi) 2.39.1-r2 or later. Rebuild any dependent images or artifacts after upgrade.

How to confirm the fix worked

Confirm installed Binutils version is at or above the fixed releases, then attempt to process a known triggering ELF sample in a controlled environment and verify absence of crash.

Typical attack path

  1. Craft malicious ELF file with malformed MIPS GOT section
  2. Deliver file to target environment via download, package, or build artifact
  3. Trigger readelf processing of the file through CLI, script, or automated pipeline
  4. Cause heap buffer over-read leading to denial of service crash

How to detect it

Review application and system logs for unexpected readelf crashes or segmentation faults when processing ELF files; correlate with file access timestamps and source of binaries in build or analysis workflows.

What your security team should do

  • Prioritize upgrade of Binutils packages in all build and analysis environments to the specified fixed versions
  • Scan package manifests and container images for vulnerable versions of dex and replace them
  • Add automated version checks to CI pipelines to prevent reintroduction of older Binutils

The record

GNU Binutils 2.28 allows remote attackers to cause a denial of service (heap-based buffer over-read and application crash) via a crafted ELF file, related to MIPS GOT mishandling in the process_mips_specific 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