CVE-2017-9040
Medium · 5.5CVSS
5.5
EPSS
2.1%
Published
May 18, 2017
CISA due date
—
Cloudanix analysis
A flaw in a file-reading tool can make certain MySQL software stop working when it encounters a specially made 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
The flaw triggers a NULL pointer dereference and application crash in the process_mips_specific function within readelf.c when a crafted ELF file attempts an excessively large memory allocation.
Why it matters to the business
Denial of service disrupts ELF file processing workflows in MySQL container images and dependent build or analysis pipelines; low exploit likelihood but high operational impact on affected Chainguard MySQL deployments until patched.
How an attack unfolds
An attacker supplies a maliciously crafted ELF file to the vulnerable readelf utility (included via binutils dependency in MySQL packages), causing the tool to attempt oversized memory allocation that results in a NULL dereference and crash.
How to fix it
Upgrade mysql-8.0, mysql-8.0-dev, mysql-8.0-oci-entrypoint, mysql-8.0-oci-entrypoint-compat, and mysql-8.0-client packages to version 8.0.38-r0 or later in Chainguard environments.
How to confirm the fix worked
Confirm installed package versions meet or exceed the listed fixed releases and re-test ELF processing with known trigger files to verify absence of crashes.
Typical attack path
- Craft an ELF file engineered to force a large memory allocation request
- Invoke the readelf binary from an affected package on the malicious file
- Trigger the process_mips_specific path leading to NULL pointer dereference and crash
How to detect it
Inspect system logs and crash reports for readelf or ELF processing failures; enumerate package versions in running containers and build systems to identify exposure.
What your security team should do
- Immediately update all listed MySQL packages to 8.0.38-r0
- Audit container images and build pipelines for residual vulnerable binutils dependencies
- Review change logs and test environments post-upgrade before production rollout
The record
GNU Binutils 2017-04-03 allows remote attackers to cause a denial of service (NULL pointer dereference and application crash), related to the process_mips_specific function in readelf.c, via a crafted ELF file that triggers a large memory-allocation attempt.
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