CVE-2017-9038
Medium · 5.5CVSS
5.5
EPSS
2.1%
Published
May 18, 2017
CISA due date
—
Cloudanix analysis
A problem in a program that reads certain executable files can make the program crash when it opens a specially crafted file.
- 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 byte_get_little_endian and get_unwind_section_word when processing ARM unwind information containing invalid word offsets inside a crafted ELF file, resulting in application crash.
Why it matters to the business
Crashes in ELF-parsing tools can interrupt builds, debugging, or analysis pipelines; affected container images must be rebuilt and redeployed, though low exploit maturity and zero KEV/ransomware usage limit urgency.
How an attack unfolds
An attacker creates a malicious ELF file embedding invalid ARM unwind offsets, then causes a vulnerable application (such as readelf from the affected Binutils) to process the file, triggering the over-read and denial of service.
How to fix it
Upgrade grafana-9 to 9.5.19-r1 and grafana-oci-compat-9 to 9.5.19-r1; rebuild and redeploy all dependent container images after the update.
How to confirm the fix worked
Confirm package versions report 9.5.19-r1 or newer; run readelf against known-good and crafted test ELF files to verify crash no longer occurs.
Typical attack path
- Craft ELF file containing invalid ARM unwind word offsets
- Supply the file to a process that invokes byte_get_little_endian or get_unwind_section_word
- Trigger heap over-read leading to immediate application crash
How to detect it
Search build and CI logs for invocations of readelf or similar Binutils tools against untrusted ELF inputs; look for unexpected crashes or segmentation faults during ELF processing.
What your security team should do
- Apply the listed package upgrades immediately in build pipelines
- Scan container images for the vulnerable Binutils version before deployment
- Monitor EPSS trend (stable at ~0.021) and re-evaluate if exploit code appears
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 the byte_get_little_endian function in elfcomm.c, the get_unwind_section_word function in readelf.c, and ARM unwind information that contains invalid word offsets.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Alpine:v3.6 | binutils | 0 | 2.28-r3 |
| 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
- CVE-2017-7614 elflink.c in the Binary File Descriptor (BFD) library (aka libbfd), as distributed in GNU… Also affects binutils
- 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