CVE-2016-6663

NameCVE-2016-6663
DescriptionRace condition in Oracle MySQL before 5.5.52, 5.6.x before 5.6.33, 5.7.x before 5.7.15, and 8.x before 8.0.1; MariaDB before 5.5.52, 10.0.x before 10.0.28, and 10.1.x before 10.1.18; 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 allows local users with certain permissions to gain privileges by leveraging use of my_copystat by REPAIR TABLE to repair a MyISAM table.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SuSE, Mageia, GitHub code/issues, web search, more)
ReferencesDSA-3711-1
NVD severitymedium (attack range: local)
Debian Bugs841049

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
mariadb-10.0 (PTS)jessie10.0.27-0+deb8u1vulnerable
jessie (security)10.0.29-0+deb8u1fixed
sid10.0.28-3fixed
mysql-5.5 (PTS)wheezy5.5.47-0+deb7u1vulnerable
wheezy (security)5.5.54-0+deb7u2fixed
jessie5.5.53-0+deb8u1fixed
jessie (security)5.5.54-0+deb8u1fixed
mysql-5.7 (PTS)sid5.7.17-1fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
mariadb-10.0source(unstable)10.0.28-1medium
mariadb-10.0sourcejessie10.0.28-0+deb8u1mediumDSA-3711-1
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

Fixed by: https://github.com/MariaDB/server/commit/347eeefbfc658c8531878218487d729f4e020805
Fixed by: https://github.com/mysql/mysql-server/commit/4e5473862e6852b0f3802b0cd0c6fa10b5253291
Fixed in MariaDB 5.5.52, MariaDB 10.1.18, MariaDB 10.0.28
Fixed in Oracle MySQL: 5.5.52, 5.6.33, and 5.7.15.
http://legalhackers.com/advisories/MySQL-MariaDB-PerconaDB-PrivEsc-Race-CVE-2016-6663-OCVE-2016-5616-Exploit.html

Search for package or bug name: Reporting problems