Cloudanix VulnDB

CVE-2017-3302

High · 7.5

CVSS

7.5

EPSS

4.9%

Published

Feb 12, 2017

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A bug in older database client software can cause applications to crash when they connect to certain servers, interrupting normal operations.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Denial Of Service
Component
Library
Class
Use After Free
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Use-after-free in libmysqlclient.so triggered during network packet processing leads to denial-of-service crash with no confidentiality or integrity impact.

Why it matters to the business

Database-dependent applications may experience sudden crashes and downtime when connecting to untrusted or compromised servers; the issue affects very old releases with stable low exploitation probability and no ransomware usage.

How an attack unfolds

An attacker hosts a malicious MySQL server or performs a man-in-the-middle attack; when a vulnerable client connects, the server returns crafted responses that trigger the use-after-free in the client library, causing an immediate crash.

How to fix it

Upgrade mysql/mysql-server to the version containing commit 2793382d656158e3b72451dc47a4ea022b566f7d; ensure deployments run MySQL 5.6.21 or newer, 5.7.5 or newer, or the corresponding fixed MariaDB releases.

How to confirm the fix worked

Confirm installed version is newer than the vulnerable ranges listed in the advisory and perform connection tests against both benign and malformed servers to verify absence of crashes.

Typical attack path

  1. Position malicious MySQL server or intercept client traffic
  2. Wait for vulnerable client to initiate connection
  3. Send specially crafted authentication or result packets
  4. Trigger use-after-free in libmysqlclient resulting in crash

How to detect it

Search application and system logs for abrupt crashes mentioning libmysqlclient around connection establishment; review network traffic for unexpected MySQL protocol responses from external hosts.

What your security team should do

  • Apply the fixed commit or upgrade all affected MySQL and MariaDB instances immediately
  • Restrict database clients to connect only to trusted servers
  • Monitor application and system logs for unexpected client-library crashes

The record

Crash in libmysqlclient.so in Oracle MySQL before 5.6.21 and 5.7.x before 5.7.5 and MariaDB through 5.5.54, 10.0.x through 10.0.29, 10.1.x through 10.1.21, and 10.2.x through 10.2.3.

Affected packages

Ecosystem Package Introduced Fixed
Alpine:v3.10 mariadb 0 10.1.22-r0
Alpine:v3.11 mariadb 0 10.1.22-r0
Alpine:v3.12 mariadb 0 10.1.22-r0
Alpine:v3.13 mariadb 0 10.1.22-r0
Alpine:v3.14 mariadb 0 10.1.22-r0
Alpine:v3.15 mariadb 0 10.1.22-r0
Alpine:v3.16 mariadb 0 10.1.22-r0
Alpine:v3.17 mariadb 0 10.1.22-r0
Alpine:v3.18 mariadb 0 10.1.22-r0
Alpine:v3.19 mariadb 0 10.1.22-r0
Alpine:v3.20 mariadb 0 10.1.22-r0
Alpine:v3.21 mariadb 0 10.1.22-r0
Alpine:v3.22 mariadb 0 10.1.22-r0
Alpine:v3.3 mariadb 0 10.1.22-r0
Alpine:v3.4 mariadb 0 10.1.22-r0
Alpine:v3.5 mariadb 0 10.1.22-r0
Alpine:v3.6 mariadb 0 10.1.22-r0
Alpine:v3.7 mariadb 0 10.1.22-r0
Alpine:v3.8 mariadb 0 10.1.22-r0
Alpine:v3.9 mariadb 0 10.1.22-r0
Debian:7 mysql-5.5 0 5.5.54-0+deb7u2
Debian:7 mysql-5.5 0 5.5.55-0+deb7u1
Debian:8 mariadb-10.0 0 10.0.30-0+deb8u1
Debian:8 mysql-5.5 0 5.5.55-0+deb8u1
Mageia:5 mariadb 0 10.0.30-1.mga5
Red Hat:enterprise_linux:7::client mariadb 0 1:5.5.56-2.el7
Red Hat:enterprise_linux:7::client mariadb-bench 0 1:5.5.56-2.el7
Red Hat:enterprise_linux:7::client mariadb-debuginfo 0 1:5.5.56-2.el7
Red Hat:enterprise_linux:7::client mariadb-devel 0 1:5.5.56-2.el7
Red Hat:enterprise_linux:7::client mariadb-embedded 0 1:5.5.56-2.el7
Red Hat:enterprise_linux:7::client mariadb-embedded-devel 0 1:5.5.56-2.el7
Red Hat:enterprise_linux:7::client mariadb-libs 0 1:5.5.56-2.el7
Red Hat:enterprise_linux:7::client mariadb-server 0 1:5.5.56-2.el7
Red Hat:enterprise_linux:7::client mariadb-test 0 1:5.5.56-2.el7
Red Hat:enterprise_linux:7::computenode mariadb 0 1:5.5.56-2.el7
Red Hat:enterprise_linux:7::computenode mariadb-bench 0 1:5.5.56-2.el7
Red Hat:enterprise_linux:7::computenode mariadb-debuginfo 0 1:5.5.56-2.el7
Red Hat:enterprise_linux:7::computenode mariadb-devel 0 1:5.5.56-2.el7
Red Hat:enterprise_linux:7::computenode mariadb-embedded 0 1:5.5.56-2.el7
Red Hat:enterprise_linux:7::computenode mariadb-embedded-devel 0 1:5.5.56-2.el7
Red Hat:enterprise_linux:7::computenode mariadb-libs 0 1:5.5.56-2.el7
Red Hat:enterprise_linux:7::computenode mariadb-server 0 1:5.5.56-2.el7
Red Hat:enterprise_linux:7::computenode mariadb-test 0 1:5.5.56-2.el7
Red Hat:enterprise_linux:7::server mariadb 0 1:5.5.56-2.el7
Red Hat:enterprise_linux:7::server mariadb-bench 0 1:5.5.56-2.el7
Red Hat:enterprise_linux:7::server mariadb-debuginfo 0 1:5.5.56-2.el7
Red Hat:enterprise_linux:7::server mariadb-devel 0 1:5.5.56-2.el7
Red Hat:enterprise_linux:7::server mariadb-embedded 0 1:5.5.56-2.el7
Red Hat:enterprise_linux:7::server mariadb-embedded-devel 0 1:5.5.56-2.el7
Red Hat:enterprise_linux:7::server mariadb-libs 0 1:5.5.56-2.el7
Red Hat:enterprise_linux:7::server mariadb-server 0 1:5.5.56-2.el7
Red Hat:enterprise_linux:7::server mariadb-test 0 1:5.5.56-2.el7
Red Hat:enterprise_linux:7::workstation mariadb 0 1:5.5.56-2.el7
Red Hat:enterprise_linux:7::workstation mariadb-bench 0 1:5.5.56-2.el7
Red Hat:enterprise_linux:7::workstation mariadb-debuginfo 0 1:5.5.56-2.el7
Red Hat:enterprise_linux:7::workstation mariadb-devel 0 1:5.5.56-2.el7
Red Hat:enterprise_linux:7::workstation mariadb-embedded 0 1:5.5.56-2.el7
Red Hat:enterprise_linux:7::workstation mariadb-embedded-devel 0 1:5.5.56-2.el7
Red Hat:enterprise_linux:7::workstation mariadb-libs 0 1:5.5.56-2.el7
Red Hat:enterprise_linux:7::workstation mariadb-server 0 1:5.5.56-2.el7
Red Hat:enterprise_linux:7::workstation mariadb-test 0 1:5.5.56-2.el7
Red Hat:rhel_software_collections:2::el6 rh-mysql56-mysql 0 0:5.6.37-5.el6
Red Hat:rhel_software_collections:2::el6 rh-mysql56-mysql-bench 0 0:5.6.37-5.el6
Red Hat:rhel_software_collections:2::el6 rh-mysql56-mysql-common 0 0:5.6.37-5.el6
Red Hat:rhel_software_collections:2::el6 rh-mysql56-mysql-config 0 0:5.6.37-5.el6
Red Hat:rhel_software_collections:2::el6 rh-mysql56-mysql-debuginfo 0 0:5.6.37-5.el6
Red Hat:rhel_software_collections:2::el6 rh-mysql56-mysql-devel 0 0:5.6.37-5.el6
Red Hat:rhel_software_collections:2::el6 rh-mysql56-mysql-errmsg 0 0:5.6.37-5.el6
Red Hat:rhel_software_collections:2::el6 rh-mysql56-mysql-server 0 0:5.6.37-5.el6
Red Hat:rhel_software_collections:2::el6 rh-mysql56-mysql-test 0 0:5.6.37-5.el6
Red Hat:rhel_software_collections:2::el7 rh-mysql56-mysql 0 0:5.6.37-5.el7
Red Hat:rhel_software_collections:2::el7 rh-mysql56-mysql-bench 0 0:5.6.37-5.el7
Red Hat:rhel_software_collections:2::el7 rh-mysql56-mysql-common 0 0:5.6.37-5.el7
Red Hat:rhel_software_collections:2::el7 rh-mysql56-mysql-config 0 0:5.6.37-5.el7
Red Hat:rhel_software_collections:2::el7 rh-mysql56-mysql-debuginfo 0 0:5.6.37-5.el7
Red Hat:rhel_software_collections:2::el7 rh-mysql56-mysql-devel 0 0:5.6.37-5.el7
Red Hat:rhel_software_collections:2::el7 rh-mysql56-mysql-errmsg 0 0:5.6.37-5.el7
Red Hat:rhel_software_collections:2::el7 rh-mysql56-mysql-server 0 0:5.6.37-5.el7
Red Hat:rhel_software_collections:2::el7 rh-mysql56-mysql-test 0 0:5.6.37-5.el7
Red Hat:rhel_software_collections:3::el6 rh-mariadb100-mariadb 0 1:10.0.33-3.el6
Red Hat:rhel_software_collections:3::el6 rh-mariadb100-mariadb-bench 0 1:10.0.33-3.el6
Red Hat:rhel_software_collections:3::el6 rh-mariadb100-mariadb-common 0 1:10.0.33-3.el6
Red Hat:rhel_software_collections:3::el6 rh-mariadb100-mariadb-config 0 1:10.0.33-3.el6
Red Hat:rhel_software_collections:3::el6 rh-mariadb100-mariadb-debuginfo 0 1:10.0.33-3.el6
Red Hat:rhel_software_collections:3::el6 rh-mariadb100-mariadb-devel 0 1:10.0.33-3.el6
Red Hat:rhel_software_collections:3::el6 rh-mariadb100-mariadb-errmsg 0 1:10.0.33-3.el6
Red Hat:rhel_software_collections:3::el6 rh-mariadb100-mariadb-oqgraph-engine 0 1:10.0.33-3.el6
Red Hat:rhel_software_collections:3::el6 rh-mariadb100-mariadb-server 0 1:10.0.33-3.el6
Red Hat:rhel_software_collections:3::el6 rh-mariadb100-mariadb-test 0 1:10.0.33-3.el6
Red Hat:rhel_software_collections:3::el6 rh-mariadb101-galera 0 0:25.3.12-12.el6
Red Hat:rhel_software_collections:3::el6 rh-mariadb101-galera-debuginfo 0 0:25.3.12-12.el6
Red Hat:rhel_software_collections:3::el6 rh-mariadb101-mariadb 0 1:10.1.29-3.el6
Red Hat:rhel_software_collections:3::el6 rh-mariadb101-mariadb-bench 0 1:10.1.29-3.el6
Red Hat:rhel_software_collections:3::el6 rh-mariadb101-mariadb-common 0 1:10.1.29-3.el6
Red Hat:rhel_software_collections:3::el6 rh-mariadb101-mariadb-config 0 1:10.1.29-3.el6
Red Hat:rhel_software_collections:3::el6 rh-mariadb101-mariadb-debuginfo 0 1:10.1.29-3.el6
Red Hat:rhel_software_collections:3::el6 rh-mariadb101-mariadb-devel 0 1:10.1.29-3.el6
Red Hat:rhel_software_collections:3::el6 rh-mariadb101-mariadb-errmsg 0 1:10.1.29-3.el6
Red Hat:rhel_software_collections:3::el6 rh-mariadb101-mariadb-oqgraph-engine 0 1:10.1.29-3.el6
Red Hat:rhel_software_collections:3::el6 rh-mariadb101-mariadb-server 0 1:10.1.29-3.el6
Red Hat:rhel_software_collections:3::el6 rh-mariadb101-mariadb-server-galera 0 1:10.1.29-3.el6
Red Hat:rhel_software_collections:3::el6 rh-mariadb101-mariadb-test 0 1:10.1.29-3.el6
Red Hat:rhel_software_collections:3::el7 rh-mariadb100-mariadb 0 1:10.0.33-3.el7
Red Hat:rhel_software_collections:3::el7 rh-mariadb100-mariadb-bench 0 1:10.0.33-3.el7
Red Hat:rhel_software_collections:3::el7 rh-mariadb100-mariadb-common 0 1:10.0.33-3.el7
Red Hat:rhel_software_collections:3::el7 rh-mariadb100-mariadb-config 0 1:10.0.33-3.el7
Red Hat:rhel_software_collections:3::el7 rh-mariadb100-mariadb-debuginfo 0 1:10.0.33-3.el7
Red Hat:rhel_software_collections:3::el7 rh-mariadb100-mariadb-devel 0 1:10.0.33-3.el7
Red Hat:rhel_software_collections:3::el7 rh-mariadb100-mariadb-errmsg 0 1:10.0.33-3.el7
Red Hat:rhel_software_collections:3::el7 rh-mariadb100-mariadb-oqgraph-engine 0 1:10.0.33-3.el7
Red Hat:rhel_software_collections:3::el7 rh-mariadb100-mariadb-server 0 1:10.0.33-3.el7
Red Hat:rhel_software_collections:3::el7 rh-mariadb100-mariadb-test 0 1:10.0.33-3.el7
Red Hat:rhel_software_collections:3::el7 rh-mariadb101-galera 0 0:25.3.12-12.el7
Red Hat:rhel_software_collections:3::el7 rh-mariadb101-galera-debuginfo 0 0:25.3.12-12.el7
Red Hat:rhel_software_collections:3::el7 rh-mariadb101-mariadb 0 1:10.1.29-3.el7
Red Hat:rhel_software_collections:3::el7 rh-mariadb101-mariadb-bench 0 1:10.1.29-3.el7
Red Hat:rhel_software_collections:3::el7 rh-mariadb101-mariadb-common 0 1:10.1.29-3.el7
Red Hat:rhel_software_collections:3::el7 rh-mariadb101-mariadb-config 0 1:10.1.29-3.el7
Red Hat:rhel_software_collections:3::el7 rh-mariadb101-mariadb-debuginfo 0 1:10.1.29-3.el7
Red Hat:rhel_software_collections:3::el7 rh-mariadb101-mariadb-devel 0 1:10.1.29-3.el7
Red Hat:rhel_software_collections:3::el7 rh-mariadb101-mariadb-errmsg 0 1:10.1.29-3.el7
Red Hat:rhel_software_collections:3::el7 rh-mariadb101-mariadb-oqgraph-engine 0 1:10.1.29-3.el7
Red Hat:rhel_software_collections:3::el7 rh-mariadb101-mariadb-server 0 1:10.1.29-3.el7
Red Hat:rhel_software_collections:3::el7 rh-mariadb101-mariadb-server-galera 0 1:10.1.29-3.el7
Red Hat:rhel_software_collections:3::el7 rh-mariadb101-mariadb-test 0 1:10.1.29-3.el7
SUSE:Linux Enterprise Desktop 12 SP1 mariadb 0 10.0.30-25.1
SUSE:Linux Enterprise Desktop 12 SP2 mariadb 0 10.0.30-25.1
SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS mariadb104 0 10.4.30-150100.3.5.10
SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS python-mysqlclient 0 1.4.6-150100.3.3.7
SUSE:Linux Enterprise Server 11 SP4 mysql 0 5.5.55-0.38.1
SUSE:Linux Enterprise Server 12 SP1 mariadb 0 10.0.30-25.1
SUSE:Linux Enterprise Server 12 SP2 mariadb 0 10.0.30-25.1
SUSE:Linux Enterprise Server 12 SP5 lz4 0 1.8.0-3.5.2
SUSE:Linux Enterprise Server 12 SP5 mariadb-connector-c 0 3.1.22-2.35.1
SUSE:Linux Enterprise Server 12 SP5 mariadb104 0 10.4.30-8.5.46
SUSE:Linux Enterprise Server 12 SP5 python-mysqlclient 0 1.3.14-8.9.2
SUSE:Linux Enterprise Server 12-LTSS mariadb 0 10.0.30-20.26.1
SUSE:Linux Enterprise Server 15 SP1-LTSS mariadb104 0 10.4.30-150100.3.5.10
SUSE:Linux Enterprise Server 15 SP1-LTSS python-mysqlclient 0 1.4.6-150100.3.3.7
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 mariadb 0 10.0.30-25.1
SUSE:Linux Enterprise Server for SAP Applications 11 SP4 mysql 0 5.5.55-0.38.1
SUSE:Linux Enterprise Server for SAP Applications 12 mariadb 0 10.0.30-20.26.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP1 mariadb 0 10.0.30-25.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP2 mariadb 0 10.0.30-25.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP5 lz4 0 1.8.0-3.5.2
SUSE:Linux Enterprise Server for SAP Applications 12 SP5 mariadb-connector-c 0 3.1.22-2.35.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP5 mariadb104 0 10.4.30-8.5.46
SUSE:Linux Enterprise Server for SAP Applications 12 SP5 python-mysqlclient 0 1.3.14-8.9.2
SUSE:Linux Enterprise Server for SAP Applications 15 SP1 mariadb104 0 10.4.30-150100.3.5.10
SUSE:Linux Enterprise Server for SAP Applications 15 SP1 python-mysqlclient 0 1.4.6-150100.3.3.7
SUSE:Linux Enterprise Software Development Kit 11 SP4 mysql 0 5.5.55-0.38.1
SUSE:Linux Enterprise Software Development Kit 12 SP1 mariadb 0 10.0.30-25.1
SUSE:Linux Enterprise Software Development Kit 12 SP2 mariadb 0 10.0.30-25.1
SUSE:Linux Enterprise Software Development Kit 12 SP5 lz4 0 1.8.0-3.5.2
SUSE:Linux Enterprise Software Development Kit 12 SP5 mariadb-connector-c 0 3.1.22-2.35.1
SUSE:Linux Enterprise Software Development Kit 12 SP5 mariadb104 0 10.4.30-8.5.46
SUSE:Linux Enterprise Software Development Kit 12 SP5 python-mysqlclient 0 1.3.14-8.9.2
SUSE:Linux Enterprise Workstation Extension 12 SP1 mariadb 0 10.0.30-25.1
SUSE:Linux Enterprise Workstation Extension 12 SP2 mariadb 0 10.0.30-25.1
SUSE:OpenStack Cloud 7 galera-3 0 25.3.23-8.3
SUSE:OpenStack Cloud 7 mariadb 0 10.2.15-7.1
SUSE:OpenStack Cloud 7 mariadb-connector-c 0 3.0.3-1.3.3
SUSE:OpenStack Cloud 7 rubygem-mysql2 0 0.4.10-7.2
SUSE:OpenStack Cloud 7 xtrabackup 0 2.4.10-5.3
Ubuntu:14.04:LTS mariadb-5.5 0 5.5.56-1ubuntu0.14.04.1
Ubuntu:14.04:LTS mysql-5.5 0 5.5.55-0ubuntu0.14.04.1
Ubuntu:14.04:LTS mysql-5.6 0 5.6.33-0ubuntu0.14.04.1
Ubuntu:16.04:LTS mariadb-10.0 0 10.0.36-0ubuntu0.16.04.1
Ubuntu:16.04:LTS mysql-5.7 0 5.7.17-0ubuntu0.16.04.1
Ubuntu:16.04:LTS mysql-5.7 0 5.7.18-0ubuntu0.16.04.1
Ubuntu:16.04:LTS percona-server-5.6 0 No fix
Ubuntu:16.04:LTS percona-xtradb-cluster-5.6 0 No fix
Ubuntu:Pro:16.04:LTS percona-server-5.6 0 No fix
Ubuntu:Pro:16.04:LTS percona-xtradb-cluster-5.6 0 No fix
openSUSE:Tumbleweed mariadb 0 10.6.4-2.1

Related vulnerabilities