Cloudanix VulnDB

CVE-2017-12967

Medium · 6.5

CVSS

6.5

EPSS

3.1%

Published

Aug 19, 2017

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A flaw in software that reads certain binary files can let attackers crash programs by feeding them a specially made bad file.

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 vulnerability is a stack-based buffer over-read in the getsym function of the BFD library when parsing a malformed TekHex binary, leading to application crash.

Why it matters to the business

Attackers can crash tools that process binary files, disrupting build processes, reverse engineering, or malware analysis workflows. Given the age and lack of known exploitation, immediate risk is low but unpatched systems remain exposed to potential DoS.

How an attack unfolds

An attacker crafts a malformed TekHex binary file and supplies it to a vulnerable application using libbfd, such as objdump or readelf, causing the parser to read beyond allocated stack buffer and crash the process.

How to fix it

Upgrade to fixed versions: for Chainguard patch in 2.7.6-r3, for Wolfi patch in 2.7.6-r3. Avoid processing untrusted binary files with older versions.

How to confirm the fix worked

Verify the installed version of binutils or libbfd is at least 2.7.6-r3 in affected distributions. Test parsing of sample malformed files to confirm no crash.

Typical attack path

  1. Craft a malformed TekHex binary file exploiting the buffer over-read in getsym
  2. Deliver the file to a target system
  3. Trick or force the victim to process the file with a vulnerable Binutils tool
  4. Cause denial of service through application crash

How to detect it

Look for application crashes or segmentation faults in tools like objdump, nm, or readelf when processing TekHex files. Check system logs for binutils crashes around file processing times.

What your security team should do

  • Prioritize patching affected systems to the fixed versions
  • Implement file type validation before processing binaries
  • Monitor for unusual crashes in binutils-related processes

The record

The getsym function in tekhex.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 (stack-based buffer over-read and application crash) via a malformed tekhex binary.

Affected packages

Ecosystem Package Introduced Fixed
Debian:11 binutils 0 2.29-5
Debian:12 binutils 0 2.29-5
Debian:13 binutils 0 2.29-5
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