{"id":"UBUNTU-CVE-2016-6662","details":"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.","modified":"2026-01-30T01:53:43.019977Z","published":"2016-09-12T00:00:00Z","related":["USN-3078-1"],"upstream":["CVE-2016-6662"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2016-6662"},{"type":"REPORT","url":"http://legalhackers.com/advisories/MySQL-Exploit-Remote-Root-Code-Execution-Privesc-CVE-2016-6662.html"},{"type":"REPORT","url":"https://mariadb.com/kb/en/mariadb/mariadb-10027-release-notes/"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-3078-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2016-6662"}],"affected":[{"package":{"name":"mariadb-5.5","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/mariadb-5.5@5.5.52-1ubuntu0.14.04.1?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.5.52-1ubuntu0.14.04.1"}]}],"versions":["5.5.32-1ubuntu1","5.5.35-1ubuntu1","5.5.36-1","5.5.37-0ubuntu0.14.04.1","5.5.39-0ubuntu0.14.04.1","5.5.40-0ubuntu0.14.04.1","5.5.41-0ubuntu0.14.04.2","5.5.41-1ubuntu0.14.04.1","5.5.43-1ubuntu0.14.04.2","5.5.44-1ubuntu0.14.04.1","5.5.46-1ubuntu0.14.04.2","5.5.47-1ubuntu0.14.04.1","5.5.49-1ubuntu0.14.04.1"],"ecosystem_specific":{"binaries":[{"binary_name":"libmariadbclient-dev","binary_version":"5.5.52-1ubuntu0.14.04.1"},{"binary_name":"libmariadbclient18","binary_version":"5.5.52-1ubuntu0.14.04.1"},{"binary_name":"libmariadbd-dev","binary_version":"5.5.52-1ubuntu0.14.04.1"},{"binary_name":"mariadb-client","binary_version":"5.5.52-1ubuntu0.14.04.1"},{"binary_name":"mariadb-client-5.5","binary_version":"5.5.52-1ubuntu0.14.04.1"},{"binary_name":"mariadb-client-core-5.5","binary_version":"5.5.52-1ubuntu0.14.04.1"},{"binary_name":"mariadb-common","binary_version":"5.5.52-1ubuntu0.14.04.1"},{"binary_name":"mariadb-server","binary_version":"5.5.52-1ubuntu0.14.04.1"},{"binary_name":"mariadb-server-5.5","binary_version":"5.5.52-1ubuntu0.14.04.1"},{"binary_name":"mariadb-server-core-5.5","binary_version":"5.5.52-1ubuntu0.14.04.1"},{"binary_name":"mariadb-test","binary_version":"5.5.52-1ubuntu0.14.04.1"},{"binary_name":"mariadb-test-5.5","binary_version":"5.5.52-1ubuntu0.14.04.1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2016/UBUNTU-CVE-2016-6662.json"}},{"package":{"name":"mysql-5.5","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/mysql-5.5@5.5.52-0ubuntu0.14.04.1?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.5.52-0ubuntu0.14.04.1"}]}],"versions":["5.5.32-0ubuntu7","5.5.34-0ubuntu1","5.5.34-0ubuntu2","5.5.35-0ubuntu1","5.5.35+dfsg-1ubuntu1","5.5.37-0ubuntu0.14.04.1","5.5.38-0ubuntu0.14.04.1","5.5.40-0ubuntu0.14.04.1","5.5.41-0ubuntu0.14.04.1","5.5.43-0ubuntu0.14.04.1","5.5.44-0ubuntu0.14.04.1","5.5.46-0ubuntu0.14.04.2","5.5.47-0ubuntu0.14.04.1","5.5.49-0ubuntu0.14.04.1","5.5.50-0ubuntu0.14.04.1"],"ecosystem_specific":{"binaries":[{"binary_name":"libmysqlclient-dev","binary_version":"5.5.52-0ubuntu0.14.04.1"},{"binary_name":"libmysqlclient18","binary_version":"5.5.52-0ubuntu0.14.04.1"},{"binary_name":"libmysqld-dev","binary_version":"5.5.52-0ubuntu0.14.04.1"},{"binary_name":"libmysqld-pic","binary_version":"5.5.52-0ubuntu0.14.04.1"},{"binary_name":"mysql-client","binary_version":"5.5.52-0ubuntu0.14.04.1"},{"binary_name":"mysql-client-5.5","binary_version":"5.5.52-0ubuntu0.14.04.1"},{"binary_name":"mysql-client-core-5.5","binary_version":"5.5.52-0ubuntu0.14.04.1"},{"binary_name":"mysql-common","binary_version":"5.5.52-0ubuntu0.14.04.1"},{"binary_name":"mysql-server","binary_version":"5.5.52-0ubuntu0.14.04.1"},{"binary_name":"mysql-server-5.5","binary_version":"5.5.52-0ubuntu0.14.04.1"},{"binary_name":"mysql-server-core-5.5","binary_version":"5.5.52-0ubuntu0.14.04.1"},{"binary_name":"mysql-source-5.5","binary_version":"5.5.52-0ubuntu0.14.04.1"},{"binary_name":"mysql-testsuite","binary_version":"5.5.52-0ubuntu0.14.04.1"},{"binary_name":"mysql-testsuite-5.5","binary_version":"5.5.52-0ubuntu0.14.04.1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2016/UBUNTU-CVE-2016-6662.json"}},{"package":{"name":"mysql-5.6","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/mysql-5.6@5.6.33-0ubuntu0.14.04.1?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.6.33-0ubuntu0.14.04.1"}]}],"versions":["5.6.15-0ubuntu1","5.6.15-1~exp2","5.6.16-1~exp1","5.6.17-0ubuntu0.14.04.1","5.6.19-0ubuntu0.14.04.1","5.6.27-0ubuntu0.14.04.1","5.6.28-0ubuntu0.14.04.1","5.6.30-0ubuntu0.14.04.1","5.6.31-0ubuntu0.14.04.2"],"ecosystem_specific":{"binaries":[{"binary_name":"mysql-client-5.6","binary_version":"5.6.33-0ubuntu0.14.04.1"},{"binary_name":"mysql-client-core-5.6","binary_version":"5.6.33-0ubuntu0.14.04.1"},{"binary_name":"mysql-common-5.6","binary_version":"5.6.33-0ubuntu0.14.04.1"},{"binary_name":"mysql-server-5.6","binary_version":"5.6.33-0ubuntu0.14.04.1"},{"binary_name":"mysql-server-core-5.6","binary_version":"5.6.33-0ubuntu0.14.04.1"},{"binary_name":"mysql-source-5.6","binary_version":"5.6.33-0ubuntu0.14.04.1"},{"binary_name":"mysql-testsuite-5.6","binary_version":"5.6.33-0ubuntu0.14.04.1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2016/UBUNTU-CVE-2016-6662.json"}},{"package":{"name":"mariadb-10.0","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/mariadb-10.0@10.0.27-0ubuntu0.16.04.1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"10.0.27-0ubuntu0.16.04.1"}]}],"versions":["10.0.20-0ubuntu0.15.04.1","10.0.22-0ubuntu1","10.0.23-1","10.0.23-2","10.0.24-7","10.0.25-0ubuntu0.16.04.1"],"ecosystem_specific":{"binaries":[{"binary_name":"libmariadbd-dev","binary_version":"10.0.27-0ubuntu0.16.04.1"},{"binary_name":"libmariadbd18","binary_version":"10.0.27-0ubuntu0.16.04.1"},{"binary_name":"mariadb-client","binary_version":"10.0.27-0ubuntu0.16.04.1"},{"binary_name":"mariadb-client-10.0","binary_version":"10.0.27-0ubuntu0.16.04.1"},{"binary_name":"mariadb-client-core-10.0","binary_version":"10.0.27-0ubuntu0.16.04.1"},{"binary_name":"mariadb-common","binary_version":"10.0.27-0ubuntu0.16.04.1"},{"binary_name":"mariadb-plugin-connect","binary_version":"10.0.27-0ubuntu0.16.04.1"},{"binary_name":"mariadb-plugin-mroonga","binary_version":"10.0.27-0ubuntu0.16.04.1"},{"binary_name":"mariadb-plugin-oqgraph","binary_version":"10.0.27-0ubuntu0.16.04.1"},{"binary_name":"mariadb-plugin-spider","binary_version":"10.0.27-0ubuntu0.16.04.1"},{"binary_name":"mariadb-plugin-tokudb","binary_version":"10.0.27-0ubuntu0.16.04.1"},{"binary_name":"mariadb-server","binary_version":"10.0.27-0ubuntu0.16.04.1"},{"binary_name":"mariadb-server-10.0","binary_version":"10.0.27-0ubuntu0.16.04.1"},{"binary_name":"mariadb-server-core-10.0","binary_version":"10.0.27-0ubuntu0.16.04.1"},{"binary_name":"mariadb-test","binary_version":"10.0.27-0ubuntu0.16.04.1"},{"binary_name":"mariadb-test-data","binary_version":"10.0.27-0ubuntu0.16.04.1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2016/UBUNTU-CVE-2016-6662.json"}},{"package":{"name":"mysql-5.7","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/mysql-5.7@5.7.15-0ubuntu0.16.04.1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.7.15-0ubuntu0.16.04.1"}]}],"versions":["5.7.11-0ubuntu4","5.7.11-0ubuntu5","5.7.11-0ubuntu6","5.7.12-0ubuntu1","5.7.12-0ubuntu1.1","5.7.13-0ubuntu0.16.04.2"],"ecosystem_specific":{"binaries":[{"binary_name":"libmysqlclient-dev","binary_version":"5.7.15-0ubuntu0.16.04.1"},{"binary_name":"libmysqlclient20","binary_version":"5.7.15-0ubuntu0.16.04.1"},{"binary_name":"libmysqld-dev","binary_version":"5.7.15-0ubuntu0.16.04.1"},{"binary_name":"mysql-client","binary_version":"5.7.15-0ubuntu0.16.04.1"},{"binary_name":"mysql-client-5.7","binary_version":"5.7.15-0ubuntu0.16.04.1"},{"binary_name":"mysql-client-core-5.7","binary_version":"5.7.15-0ubuntu0.16.04.1"},{"binary_name":"mysql-common","binary_version":"5.7.15-0ubuntu0.16.04.1"},{"binary_name":"mysql-server","binary_version":"5.7.15-0ubuntu0.16.04.1"},{"binary_name":"mysql-server-5.7","binary_version":"5.7.15-0ubuntu0.16.04.1"},{"binary_name":"mysql-server-core-5.7","binary_version":"5.7.15-0ubuntu0.16.04.1"},{"binary_name":"mysql-source-5.7","binary_version":"5.7.15-0ubuntu0.16.04.1"},{"binary_name":"mysql-testsuite","binary_version":"5.7.15-0ubuntu0.16.04.1"},{"binary_name":"mysql-testsuite-5.7","binary_version":"5.7.15-0ubuntu0.16.04.1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2016/UBUNTU-CVE-2016-6662.json"}},{"package":{"name":"percona-xtradb-cluster-5.6","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/percona-xtradb-cluster-5.6@5.6.34-26.19-0ubuntu0.16.04.1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.6.34-26.19-0ubuntu0.16.04.1"}]}],"versions":["5.6.21-25.8-0ubuntu2","5.6.21-25.8-0ubuntu3","5.6.21-25.8-0ubuntu3.1","5.6.21-25.8-0ubuntu3.2"],"ecosystem_specific":{"binaries":[{"binary_name":"percona-xtradb-cluster-server","binary_version":"5.6.34-26.19-0ubuntu0.16.04.1"},{"binary_name":"percona-xtradb-cluster-server-5.6","binary_version":"5.6.34-26.19-0ubuntu0.16.04.1"},{"binary_name":"percona-xtradb-cluster-source-5.6","binary_version":"5.6.34-26.19-0ubuntu0.16.04.1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2016/UBUNTU-CVE-2016-6662.json"}},{"package":{"name":"percona-server-5.6","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/percona-server-5.6@5.6.22-rel71.0-0ubuntu4.1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.6.22-rel71.0-0ubuntu2","5.6.22-rel71.0-0ubuntu4","5.6.22-rel71.0-0ubuntu4.1"],"ecosystem_specific":{"binaries":[{"binary_name":"percona-server-server","binary_version":"5.6.22-rel71.0-0ubuntu4.1"},{"binary_name":"percona-server-server-5.6","binary_version":"5.6.22-rel71.0-0ubuntu4.1"},{"binary_name":"percona-server-source-5.6","binary_version":"5.6.22-rel71.0-0ubuntu4.1"},{"binary_name":"percona-server-test","binary_version":"5.6.22-rel71.0-0ubuntu4.1"},{"binary_name":"percona-server-test-5.6","binary_version":"5.6.22-rel71.0-0ubuntu4.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2016/UBUNTU-CVE-2016-6662.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}