CVE-2017-12967
Medium · 6.5CVSS
6.5
EPSS
3.1%
Published
Aug 19, 2017
CISA due date
—
Cloudanix analysis
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
- Craft a malformed TekHex binary file exploiting the buffer over-read in getsym
- Deliver the file to a target system
- Trick or force the victim to process the file with a vulnerable Binutils tool
- 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
- CVE-2025-8225 A vulnerability was found in GNU Binutils 2.44 and classified as problematic. Also affects binutils
- CVE-2025-8224 A vulnerability has been found in GNU Binutils 2.44 and classified as problematic. Also affects binutils
- CVE-2025-7546 A vulnerability, which was classified as problematic, has been found in GNU Binutils 2.45. Also affects binutils
- CVE-2025-7545 A vulnerability classified as problematic was found in GNU Binutils 2.45. Also affects binutils
- CVE-2025-5245 A vulnerability classified as critical has been found in GNU Binutils up to 2.44. Also affects binutils
- CVE-2025-5244 A vulnerability was found in GNU Binutils up to 2.44. Also affects binutils
- CVE-2025-3198 A vulnerability has been found in GNU Binutils 2.43/2.44 and classified as problematic. Also affects binutils
- CVE-2025-1182 A vulnerability, which was classified as critical, was found in GNU Binutils 2.43. Also affects binutils