CVE-2016-6664

NameCVE-2016-6664
Descriptionmysqld_safe in Oracle MySQL through 5.5.51, 5.6.x through 5.6.32, and 5.7.x through 5.7.14; MariaDB; Percona Server before 5.5.51-38.2, 5.6.x before 5.6.32-78-1, and 5.7.x before 5.7.14-8; and Percona XtraDB Cluster before 5.5.41-37.0, 5.6.x before 5.6.32-25.17, and 5.7.x before 5.7.14-26.17, when using file-based logging, allows local users with access to the mysql account to gain root privileges via a symlink attack on error logs and possibly other files.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SuSE, Mageia, GitHub code/issues, web search, more)
ReferencesDSA-3770-1
NVD severitymedium (attack range: local)
Debian Bugs841049, 842895, 849435, 851755, 851759

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
mariadb-10.0 (PTS)jessie10.0.30-0+deb8u2fixed
jessie (security)10.0.30-0+deb8u1fixed
mariadb-10.1 (PTS)stretch10.1.23-9+deb9u1fixed
buster, sid10.1.24-6fixed
mysql-5.5 (PTS)wheezy5.5.47-0+deb7u1vulnerable
wheezy (security)5.5.55-0+deb7u1fixed
jessie (security), jessie5.5.55-0+deb8u1fixed
mysql-5.7 (PTS)sid5.7.18-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
mariadb-10.0source(unstable)(unfixed)medium842895, 851755
mariadb-10.0sourcejessie10.0.29-0+deb8u1mediumDSA-3770-1
mariadb-10.1source(unstable)10.1.21-1medium849435, 851759
mysql-5.5source(unstable)(unfixed)medium
mysql-5.5sourcejessie5.5.52-0+deb8u1medium
mysql-5.5sourcewheezy5.5.52-0+deb7u1medium
mysql-5.6source(unstable)5.6.34-1medium841049
mysql-5.7source(unstable)5.7.15-1medium

Notes

http://legalhackers.com/advisories/MySQL-Maria-Percona-RootPrivEsc-CVE-2016-6664-5617-Exploit.html
Possible fixed by: https://github.com/MariaDB/server/commit/684a165f28b3718160a3e4c5ebd18a465d85e97c
https://mariadb.com/blog/update-security-vulnerabilities-cve-2016-6663-and-cve-2016-6664-related-mariadb-server

Search for package or bug name: Reporting problems