CVE-2017-9042
High · 7.8CVSS
7.8
EPSS
2.1%
Published
May 18, 2017
CISA due date
—
Cloudanix analysis
A problem in a program that reads certain file types could let someone crash it by supplying a specially made file, potentially interrupting related services until updated.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Full Compromise
- Component
- Application
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Improper input validation in readelf.c allows a crafted ELF file to trigger a 'cannot be represented in type long' error, leading to application crash or unspecified other impact.
Why it matters to the business
Processing of untrusted ELF files can cause crashes in affected tools or dependent services, resulting in operational disruption; the issue is old with stable low exploit probability and no known ransomware use, but organizations using the listed package should prioritize patching to avoid potential exposure.
How an attack unfolds
An attacker creates a specially crafted ELF file that triggers the type representation error in readelf; the file is then presented to a victim system where readelf is invoked (either directly or via a dependent process like istio-pilot-agent), causing denial of service or further impact. No named threat actors or campaigns are associated.
How to fix it
Upgrade istio-pilot-agent-1.19 (Chainguard) to version 1.19.8-r1 or later; rebuild or redeploy any dependent images incorporating the fixed package.
How to confirm the fix worked
Verify package version after upgrade matches the fixed release; test readelf against known malformed ELF samples to confirm no crash occurs.
Typical attack path
- Craft malicious ELF file exploiting the type representation flaw
- Deliver the file to the target environment via local access or user interaction
- Trick user or process into invoking readelf on the file
- Trigger crash or unspecified impact on the application
How to detect it
Review application logs for readelf crashes or error messages referencing type representation issues when processing ELF files; examine process execution history for unexpected readelf invocations on untrusted files. No ransomware or KEV exploitation indicators apply.
What your security team should do
- Apply the listed fixed version immediately to all instances of the affected package
- Scan container images and build pipelines for the vulnerable version
- Monitor for any new exploit maturity signals given the stable low EPSS
The record
readelf.c in GNU Binutils 2017-04-12 has a "cannot be represented in type 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 |
| 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