Cloudanix VulnDB

CVE-2017-9040

Medium · 5.5

CVSS

5.5

EPSS

2.1%

Published

May 18, 2017

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

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

  1. Craft an ELF file engineered to force a large memory allocation request
  2. Invoke the readelf binary from an affected package on the malicious file
  3. 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