CVE-2017-9043
High · 7.8CVSS
7.8
EPSS
2.1%
Published
May 18, 2017
CISA due date
—
Cloudanix analysis
A flaw in a common tool that reads program files can make the tool crash or behave unexpectedly when given a specially made file, so updating the affected software removes the problem.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Application
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Improper input validation in ELF parsing allows a crafted file to trigger a shift exponent error in readelf, leading to application crash or potential further memory corruption.
Why it matters to the business
Organizations using affected packages risk service disruption or compromise when processing untrusted ELF binaries; low exploit prevalence reduces urgency but patching remains necessary for any ELF-handling workflows.
How an attack unfolds
An attacker crafts a malicious ELF file containing an oversized shift value, then supplies it to any affected tool or process that invokes the vulnerable readelf logic; successful parsing triggers the flaw, potentially crashing the application or enabling further impact.
How to fix it
Upgrade all affected packages to the listed fixed versions: wavefront-proxy (Chainguard) 13.4-r4, wavefront-proxy (Wolfi) 13.4-r4, wavefront-proxy-compat (Chainguard) 13.4-r4, wavefront-proxy-compat (Wolfi) 13.4-r4, wavefront-proxy-config (Chainguard) 13.4-r4, wavefront-proxy-config (Wolfi) 13.4-r4, wavefront-proxy-licenses (Chainguard) 13.4-r4, wavefront-proxy-licenses (Wolfi) 13.4-r4. Rebuild or redeploy containers after upgrade.
How to confirm the fix worked
Verify installed package versions match or exceed the fixed releases; test by attempting to parse a known-malformed ELF sample in a controlled environment and confirm no crash occurs.
Typical attack path
- Obtain or create a malformed ELF file with invalid shift exponent
- Deliver the file to a target system or process that uses the vulnerable Binutils library
- Trigger parsing via readelf or dependent tooling
- Cause denial of service or attempt to leverage memory corruption for further access
How to detect it
Review process execution logs and file access records for unexpected invocations of readelf or dependent tools on external or untrusted ELF files; monitor for application crashes or segmentation faults during ELF parsing.
What your security team should do
- Apply the specified package upgrades immediately in all environments that process ELF files
- Scan build pipelines and container images for older versions of the affected packages
- Restrict processing of untrusted ELF binaries until patches are deployed
The record
readelf.c in GNU Binutils 2017-04-12 has a "shift exponent too large for type unsigned long" issue, which might allow remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact via a crafted ELF file.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:10 | binutils | 0 | 2.29-1 |
| Debian:11 | binutils | 0 | 2.29-1 |
| Debian:12 | binutils | 0 | 2.29-1 |
| Debian:13 | binutils | 0 | 2.29-1 |
| 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 |
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