MariaDB, MySQL: Root privilege escalation — GLSA 201711-04

A vulnerability was discovered in MariaDB and MySQL which may allow local users to gain root privileges.

Affected Packages

dev-db/mariadb on all architectures
Affected versions < 10.0.30-r1
Unaffected versions >= 10.0.30-r1
dev-db/mysql on all architectures
Affected versions < 5.6.36-r1
Unaffected versions >= 5.6.36-r1

Background

MySQL is a popular multi-threaded, multi-user SQL server. MariaDB is an enhanced, drop-in replacement for MySQL.

Description

The Gentoo installation scripts before 2017-09-29 have chown calls for user-writable directory trees, which allows local users to gain privileges by leveraging access to the mysql account for creation of a link.

Impact

A local attacker could escalate privileges to root.

Workaround

There is no known workaround at this time.

Resolution

All MariaDB users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=dev-db/mariadb-10.0.30-r1"
 

All MySQL users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=dev-db/mysql-5.6.36-r1"
 

References

Release Date
November 10, 2017

Latest Revision
November 10, 2017: 1

Severity
normal

Exploitable
remote

Bugzilla entries