Cloudanix VulnDB

CVE-2017-7612

Medium · 5.5

CVSS

5.5

EPSS

1.8%

Published

Apr 9, 2017

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A bug in a common Linux tool that reads program files lets attackers crash the tool by handing it one specially made file.

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

What it actually does

The flaw is a heap-based buffer over-read in check_sysv_hash within elflint.c that occurs while parsing a specially crafted ELF file, resulting in an immediate application crash.

Why it matters to the business

Tools and build pipelines that rely on elfutils to inspect or validate ELF binaries can be forced offline by a single malicious file, interrupting compilation, packaging, and forensic workflows with no data loss but clear availability impact.

How an attack unfolds

An attacker prepares an ELF binary containing an invalid SysV hash section sized to trigger an out-of-bounds read, then supplies the file to any process that invokes the vulnerable check_sysv_hash routine; the resulting over-read immediately terminates the application.

How to fix it

Upgrade elfutils to the first release containing the corrected check_sysv_hash implementation; rebuild any locally compiled packages or containers that embed the vulnerable library.

How to confirm the fix worked

Confirm the installed elfutils version is newer than 0.168, then run the tool against a known-triggering ELF sample and verify that no crash occurs and the expected diagnostic output is produced.

Typical attack path

  1. Craft a minimal ELF file whose SysV hash table triggers the over-read in check_sysv_hash
  2. Deliver the file to a target system or CI pipeline that uses elfutils 0.168 or earlier
  3. Invoke elflint or any dependent binary-analysis tool on the file
  4. Observe immediate process termination due to the heap over-read

How to detect it

Monitor process crash logs and core dumps for elflint or any binary that links libelf, looking for segmentation faults or heap-buffer over-read signals immediately after ELF file processing; correlate with file-creation or download events involving ELF binaries of unknown provenance.

What your security team should do

  • Inventory all systems and containers that ship or link against elfutils and schedule immediate upgrades
  • Add elfutils version checks to package-build and CI pipelines to block re-introduction of the vulnerable release
  • Treat untrusted ELF files as high-risk inputs and isolate analysis workloads until patches are deployed

The record

The check_sysv_hash function in elflint.c in elfutils 0.168 allows remote attackers to cause a denial of service (heap-based buffer over-read and application crash) via a crafted ELF file.

Affected packages

Ecosystem Package Introduced Fixed
Debian:11 elfutils 0 0.168-1
Debian:12 elfutils 0 0.168-1
Debian:13 elfutils 0 0.168-1
Debian:8 elfutils 0 0.159-4.2+deb8u1
Mageia:5 elfutils 0 0.169-1.mga5
Mageia:6 elfutils 0 0.176-1.mga6
SUSE:Linux Enterprise Desktop 12 SP3 elfutils 0 0.158-7.7.2
SUSE:Linux Enterprise Desktop 12 SP4 elfutils 0 0.158-7.7.2
SUSE:Linux Enterprise Micro 5.1 dwarves 0 1.22-150300.7.3.1
SUSE:Linux Enterprise Micro 5.1 elfutils 0 0.177-150300.11.3.1
SUSE:Linux Enterprise Micro 5.2 dwarves 0 1.22-150300.7.3.1
SUSE:Linux Enterprise Micro 5.2 elfutils 0 0.177-150300.11.3.1
SUSE:Linux Enterprise Module for Basesystem 15 elfutils 0 0.168-4.5.3
SUSE:Linux Enterprise Module for Basesystem 15 SP1 elfutils 0 0.168-4.5.3
SUSE:Linux Enterprise Module for Basesystem 15 SP3 dwarves 0 1.22-150300.7.3.1
SUSE:Linux Enterprise Module for Basesystem 15 SP3 elfutils 0 0.177-150300.11.3.1
SUSE:Linux Enterprise Server 12 SP3 elfutils 0 0.158-7.7.2
SUSE:Linux Enterprise Server 12 SP4 elfutils 0 0.158-7.7.2
SUSE:Linux Enterprise Server for SAP Applications 12 SP3 elfutils 0 0.158-7.7.2
SUSE:Linux Enterprise Server for SAP Applications 12 SP4 elfutils 0 0.158-7.7.2
SUSE:Linux Enterprise Software Development Kit 12 SP3 elfutils 0 0.158-7.7.2
SUSE:Linux Enterprise Software Development Kit 12 SP4 elfutils 0 0.158-7.7.2
Ubuntu:14.04:LTS elfutils 0 0.158-0ubuntu5.3
Ubuntu:16.04:LTS elfutils 0 0.165-3ubuntu1.1
Ubuntu:18.04:LTS elfutils 0 0.170-0.4
openSUSE:Leap 15.0 elfutils 0 0.168-lp151.4.3.1
openSUSE:Leap 15.1 elfutils 0 0.168-lp151.4.3.1
openSUSE:Leap 15.3 dwarves 0 1.22-150300.7.3.1
openSUSE:Leap 15.3 elfutils 0 0.177-150300.11.3.1
openSUSE:Leap Micro 5.2 dwarves 0 1.22-150300.7.3.1
openSUSE:Leap Micro 5.2 elfutils 0 0.177-150300.11.3.1

Related vulnerabilities