Buffer overflow in acl_get()

Description

MySQL bug 13889741 (which is CVE-2012-3163) was, apparently, not completely fixed. A very similar test case finds new, much more dangerous, buffer overflows in acl_get() and check_grant_db_routine(). They allow to overwrite the buffer by an arbitrary number of bytes, not just by one as in bug 13889741. One can trivially put a shellcode there.

To exploit this one needs a valid low-privileged user account in the MariaDB (or MySQL) server.

This new vulnerability is registered as CVE-2012-5611
Reported upstream as http://bugs.mysql.com/bug.php?id=67685
Public disclosure: http://seclists.org/fulldisclosure/2012/Dec/4

Environment

None

Assignee

Sergei Golubchik

Reporter

Sergei Golubchik

Labels

None

Fix versions

Affects versions

Priority

Blocker
Configure