CVE-2017-17080
Medium · 5.5CVSS
5.5
EPSS
1.3%
Published
Nov 30, 2017
CISA due date
—
Cloudanix analysis
A flaw in software that reads certain binary files can cause programs to crash when they encounter specially crafted files, potentially disrupting analysis or build tasks.
- 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
Missing size validation on core notes in ELF files leads to a heap-based buffer over-read in bfd_getl32 during processing of netbsd, openbsd, or nto procinfo/status sections, resulting in application crash.
Why it matters to the business
Processing untrusted or attacker-supplied binaries with affected tools can trigger crashes, interrupting build pipelines, reverse-engineering workflows, and automated binary analysis across development and security tooling.
How an attack unfolds
An attacker creates a malformed ELF object file containing oversized or invalid core note sections and supplies it to a victim who opens or analyzes the file using vulnerable Binutils-based utilities, triggering the over-read and denial of service.
How to fix it
Upgrade to fixed package versions such as gomplate-fips 3.11.7-r1 or later; rebuild any downstream images against a patched Binutils; avoid processing untrusted ELF files until updated.
How to confirm the fix worked
Confirm the installed Binutils or dependent package reports a version containing the size-validation fix; re-test with known-malformed ELF samples to verify absence of crash.
Typical attack path
- Craft a malicious ELF file with invalid core note sizes
- Deliver the file via download, repository, or shared storage
- Victim invokes a vulnerable tool (objdump, readelf, etc.) on the file
- bfd library performs unchecked read causing heap over-read and crash
How to detect it
Review application and system logs for segmentation faults or crashes in objdump, readelf, or other binutils utilities when processing ELF files; correlate with file-creation or download events preceding the crash.
What your security team should do
- Apply the listed fixed package versions immediately in all build and analysis environments
- Add binary-file sanitization or sandboxing for any workflow that ingests external ELF objects
- Monitor for application crashes in binutils utilities and investigate unexpected terminations
The record
elf.c in the Binary File Descriptor (BFD) library (aka libbfd), as distributed in GNU Binutils 2.29.1, does not validate sizes of core notes, which allows remote attackers to cause a denial of service (bfd_getl32 heap-based buffer over-read and application crash) via a crafted object file, related to elfcore_grok_netbsd_procinfo, elfcore_grok_openbsd_procinfo, and elfcore_grok_nto_status.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:10 | binutils | 0 | 2.29.90.20180122-1 |
| Debian:11 | binutils | 0 | 2.29.90.20180122-1 |
| Debian:12 | binutils | 0 | 2.29.90.20180122-1 |
| Debian:13 | binutils | 0 | 2.29.90.20180122-1 |
| 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
- CVE-2021-3826 Heap/stack buffer overflow in the dlang_lname function in d-demangle.c in libiberty… Also affects binutils
- CVE-2022-38533 In GNU Binutils before 2.40, there is a heap-buffer-overflow in the error function… Also affects binutils
- CVE-2017-17122 The dump_relocs_in_section function in objdump.c in GNU Binutils 2.29.1 does not check… Also affects binutils
- CVE-2017-17123 The coff_slurp_reloc_table function in coffcode.h in the Binary File Descriptor (BFD)… Also affects binutils
- CVE-2017-17124 The _bfd_coff_read_string_table function in coffgen.c in the Binary File Descriptor (BFD)… Also affects binutils
- CVE-2017-17125 nm.c and objdump.c in GNU Binutils 2.29.1 mishandle certain global symbols, which allows… Also affects binutils
- CVE-2017-17126 The load_debug_section function in readelf.c in GNU Binutils 2.29.1 allows remote… Also affects binutils
- CVE-2017-17121 The Binary File Descriptor (BFD) library (aka libbfd), as distributed in GNU Binutils… Also affects binutils