CVE-2016-6662
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.
What to do
Likely to be exploited: EPSS gives a 68% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Fixed builds are available from Alpine, Red Hat, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | mysql-8.0 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | mysql-8.0 | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | mariadb-10.0 | Fixed | 10.0.27-0ubuntu0.16.04.1 | UBUNTU-CVE-2016-6662 |
| Ubuntu 16.04 | mysql-5.7 | Fixed | 5.7.15-0ubuntu0.16.04.1 | UBUNTU-CVE-2016-6662 |
| Ubuntu 16.04 | percona-server-5.6 | Fix pending | UBUNTU-CVE-2016-6662 | |
| Ubuntu 16.04 | percona-xtradb-cluster-5.6 | Fixed | 5.6.34-26.19-0ubuntu0.16.04.1 | UBUNTU-CVE-2016-6662 |
| Ubuntu 14.04 | mariadb-5.5 | Fixed | 5.5.52-1ubuntu0.14.04.1 | UBUNTU-CVE-2016-6662 |
| Ubuntu 14.04 | mysql-5.5 | Fixed | 5.5.52-0ubuntu0.14.04.1 | UBUNTU-CVE-2016-6662 |
| Ubuntu 14.04 | mysql-5.6 | Fixed | 5.6.33-0ubuntu0.14.04.1 | UBUNTU-CVE-2016-6662 |
| Ubuntu 14.04 | percona-xtradb-cluster-5.5 | Fix pending | ||
| Red Hat Enterprise Linux 7 | mariadb | Fixed | 1:5.5.52-1.el7 | RHSA-2016:2595 |
| Red Hat Enterprise Linux 7 | mariadb-bench | Fixed | 1:5.5.52-1.el7 | RHSA-2016:2595 |
| Red Hat Enterprise Linux 7 | mariadb-devel | Fixed | 1:5.5.52-1.el7 | RHSA-2016:2595 |
| Red Hat Enterprise Linux 7 | mariadb-embedded | Fixed | 1:5.5.52-1.el7 | RHSA-2016:2595 |
| Red Hat Enterprise Linux 7 | mariadb-embedded-devel | Fixed | 1:5.5.52-1.el7 | RHSA-2016:2595 |
| Red Hat Enterprise Linux 7 | mariadb-libs | Fixed | 1:5.5.52-1.el7 | RHSA-2016:2595 |
| Red Hat Enterprise Linux 7 | mariadb-server | Fixed | 1:5.5.52-1.el7 | RHSA-2016:2595 |
| Red Hat Enterprise Linux 7 | mariadb-test | Fixed | 1:5.5.52-1.el7 | RHSA-2016:2595 |
| Red Hat Enterprise Linux 6 | mysql | Fixed | 0:5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux 6 | mysql-bench | Fixed | 0:5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux 6 | mysql-devel | Fixed | 0:5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux 6 | mysql-embedded | Fixed | 0:5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux 6 | mysql-embedded-devel | Fixed | 0:5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux 6 | mysql-libs | Fixed | 0:5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux 6 | mysql-server | Fixed | 0:5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux 6 | mysql-test | Fixed | 0:5.1.73-8.el6_8 | RHSA-2017:0184 |
| Red Hat Enterprise Linux 5 | mysql | Not affected | ||
| Red Hat Enterprise Linux 5 | mysql55-mysql | Will not fix Will not fix | ||
| Alpine Linux 3.3 | mariadb | Fixed | 10.1.17-r0 | ALPINE-CVE-2016-6662 |
| Alpine Linux 3.2 | mariadb | Fixed | 5.5.51-r0 | ALPINE-CVE-2016-6662 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- http://rhn.redhat.com/errata/RHSA-2016-2749.html (vendor-advisory)
- http://rhn.redhat.com/errata/RHSA-2017-0184.html (vendor-advisory)
- http://rhn.redhat.com/errata/RHSA-2016-2131.html (vendor-advisory)
- http://rhn.redhat.com/errata/RHSA-2016-2060.html (vendor-advisory)
- https://security.gentoo.org/glsa/201701-01 (vendor-advisory)
- http://www.debian.org/security/2016/dsa-3666 (vendor-advisory)
References
- https://mariadb.com/kb/en/mariadb/mariadb-10027-release-notes/
- http://rhn.redhat.com/errata/RHSA-2016-2749.html
- http://rhn.redhat.com/errata/RHSA-2017-0184.html
- http://rhn.redhat.com/errata/RHSA-2016-2131.html
- http://rhn.redhat.com/errata/RHSA-2016-2060.html
- https://mariadb.com/kb/en/mariadb/mariadb-10117-release-notes/
- https://mariadb.com/kb/en/mariadb/mariadb-5551-release-notes/
- https://jira.mariadb.org/browse/MDEV-10465
- http://www.securityfocus.com/bid/92912
- http://seclists.org/fulldisclosure/2016/Sep/23
- https://security.gentoo.org/glsa/201701-01
- http://www.debian.org/security/2016/dsa-3666
- http://www.oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html
- http://rhn.redhat.com/errata/RHSA-2016-2130.html
- http://rhn.redhat.com/errata/RHSA-2016-2077.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.