Skip to content
OpenAdvisories
Unscored Public exploit CVE-2016-6662 EUVD-2016-7565GHSA-76m2-pqh7-www3

Oracle MySQL through 5.5.52, 5.6.x through 5.6.33, and 5.7.x through 5.7.15; MariaDB before 5.5.51, 10.0.x before 10.0.27, and 10.1.x befor…

Published Sep 20, 2016 · Updated Aug 6, 2024 · Assigned by mitre

Description

Oracle MySQL through 5.5.52, 5.6.x through 5.6.33, and 5.7.x through 5.7.15; MariaDB before 5.5.51, 10.0.x before 10.0.27, and 10.1.x before 10.1.17; and Percona Server before 5.5.51-38.1, 5.6.x before 5.6.32-78.0, and 5.7.x before 5.7.14-7 allow local users to create arbitrary configurations and bypass certain protection mechanisms by setting general_log_file to a my.cnf configuration. NOTE: this can be leveraged to execute arbitrary code with root privileges by setting malloc_lib. NOTE: the affected MySQL version information is from Oracle's October 2016 CPU. Oracle has not commented on third-party claims that the issue was silently patched in MySQL 5.5.52, 5.6.33, and 5.7.15.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 8 mysql-5.5 5.5.52-0+deb8u1 DSA-3666-1
Debian 7 mysql-5.5 5.5.52-0+deb7u1 DLA-624-1
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS mariadb-10.0 10.0.27-0ubuntu0.16.04.1 —
Ubuntu 16.04 LTS mysql-5.7 5.7.15-0ubuntu0.16.04.1 USN-3078-1
Ubuntu 16.04 LTS percona-server-5.6 No fix yet —
Ubuntu 16.04 LTS percona-xtradb-cluster-5.6 5.6.34-26.19-0ubuntu0.16.04.1 —
Ubuntu 14.04 LTS mariadb-5.5 5.5.52-1ubuntu0.14.04.1 —
Ubuntu 14.04 LTS mysql-5.5 5.5.52-0ubuntu0.14.04.1 USN-3078-1
Ubuntu 14.04 LTS mysql-5.6 5.6.33-0ubuntu0.14.04.1 —
ReleasePackageFixed inAdvisory
RHEL 7 mariadb +7 1:5.5.52-1.el7 RHSA-2016:2595
RHEL 6 mysql +7 5.1.73-8.el6_8 RHSA-2017:0184
RHEL 2 mariadb55-mariadb +5 5.5.53-1.el6 RHSA-2016:2131
RHEL 2 mysql55-mysql +5 5.5.52-1.el6 RHSA-2016:2130
RHEL 2 rh-mariadb100-mariadb +8 1:10.0.28-5.el6 RHSA-2016:2927
RHEL 2 rh-mariadb101-mariadb +9 1:10.1.19-6.el6 RHSA-2016:2928
RHEL 2 rh-mysql56-mysql +7 5.6.34-2.el6 RHSA-2016:2749
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat OpenStack 9 mariadb-galera +2 1:5.5.42-5.el7ost RHSA-2016:2062
Red Hat OpenStack 8 mariadb-galera +2 1:5.5.42-5.el7ost RHSA-2016:2077
Red Hat OpenStack 7 mariadb-galera +2 1:5.5.42-5.el7ost RHSA-2016:2061
Red Hat OpenStack 6 mariadb-galera +2 1:5.5.42-1.2.el7ost RHSA-2016:2060
Red Hat OpenStack 5 mariadb-galera +2 5.5.42-1.1.el6ost RHSA-2016:2059, RHSA-2016:2058
ReleasePackageFixed inAdvisory
SLES 15 SP1 mariadb104 10.4.30-150100.3.5.10 SUSE-RU-2023:3956-1
SLES 15 SP1 python-mysqlclient 1.4.6-150100.3.3.7 SUSE-RU-2023:3956-1
SLES 12 SP5 lz4 1.8.0-3.5.2 SUSE-RU-2023:4991-1
SLES 12 SP5 mariadb-connector-c 3.1.22-2.35.1 SUSE-RU-2023:4991-1
SLES 12 SP5 mariadb104 10.4.30-8.5.46 SUSE-RU-2023:4991-1
SLES 12 SP5 python-mysqlclient 1.3.14-8.9.2 SUSE-RU-2023:4991-1
SLES 12 SP1 mariadb 10.0.27-12.1 SUSE-SU-2016:2404-1
SLES 12 mariadb 10.0.27-20.13.1 SUSE-SU-2016:2395-1
SLES 11 SP4 mysql 5.5.52-0.27.1 SUSE-SU-2016:2780-1, SUSE-SU-2016:2343-1
Show 11 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 11 SP3 mysql 5.5.52-0.27.1 SUSE-SU-2016:2343-1
SLES for SAP 15 SP1 mariadb104 10.4.30-150100.3.5.10 SUSE-RU-2023:3956-1
SLES for SAP 15 SP1 python-mysqlclient 1.4.6-150100.3.3.7 SUSE-RU-2023:3956-1
SLES for SAP 12 SP5 lz4 1.8.0-3.5.2 SUSE-RU-2023:4991-1
SLES for SAP 12 SP5 mariadb-connector-c 3.1.22-2.35.1 SUSE-RU-2023:4991-1
SLES for SAP 12 SP5 mariadb104 10.4.30-8.5.46 SUSE-RU-2023:4991-1
SLES for SAP 12 SP5 python-mysqlclient 1.3.14-8.9.2 SUSE-RU-2023:4991-1
SLES for SAP 12 SP1 mariadb 10.0.27-12.1 SUSE-SU-2016:2404-1
SLES for SAP 12 mariadb 10.0.27-20.13.1 SUSE-SU-2016:2395-1
SLES for SAP 11 SP4 mysql 5.5.52-0.27.1 SUSE-SU-2016:2780-1, SUSE-SU-2016:2343-1
SLE HPC 15 SP1 mariadb104 10.4.30-150100.3.5.10 SUSE-RU-2023:3956-1
SLE HPC 15 SP1 python-mysqlclient 1.4.6-150100.3.3.7 SUSE-RU-2023:3956-1
SUSE OpenStack Cloud 5 mysql 5.5.52-0.27.1 SUSE-SU-2016:2343-1
SUSE Manager Proxy 2.1 mysql 5.5.52-0.27.1 SUSE-SU-2016:2343-1
SUSE Manager 2.1 mysql 5.5.52-0.27.1 SUSE-SU-2016:2343-1
SUSE Linux Enterprise Point of Sale 11 SP3 mysql 5.5.52-0.27.1 SUSE-SU-2016:2343-1
ReleasePackageFixed inAdvisory
Alpine v3.3 mariadb 10.1.17-r0 —
Alpine v3.2 mariadb 5.5.51-r0 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 mariadb +7 1:5.5.52-1.el7 ELSA-2016-2595

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 6 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 24

References