[MDEV-9898] SET ROLE NONE can crash mysqld Created: 2016-04-11 Updated: 2016-05-02 Resolved: 2016-05-02 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Authentication and Privilege System |
| Affects Version/s: | 10.1.13, 10.1 |
| Fix Version/s: | 10.1.16 |
| Type: | Bug | Priority: | Major |
| Reporter: | Igor Pashev | Assignee: | Alexey Botchkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
| Sprint: | 10.1.14 |
| Description |
|
A user is granted one role only and no other privileges.
|
| Comments |
| Comment by Elena Stepanova [ 2016-04-11 ] | |||||||||||||||||||||||||||||||||||||||
|
Could you please attach your error log and cnf file(s)? It does not crash for me:
| |||||||||||||||||||||||||||||||||||||||
| Comment by Igor Pashev [ 2016-04-11 ] | |||||||||||||||||||||||||||||||||||||||
|
Attached my.cnf | |||||||||||||||||||||||||||||||||||||||
| Comment by Igor Pashev [ 2016-04-11 ] | |||||||||||||||||||||||||||||||||||||||
|
Right, it works for user@localhost. This is what I see for user@'%' when connecting locally (unix-socket I guess) (only this record exists in mysql.user)
And when I connect by TCP from outside:
| |||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2016-04-15 ] | |||||||||||||||||||||||||||||||||||||||
|
Thank you. I'm not getting the buffer overflow, but I guess it's just the matter of environment, binaries, maybe luck. Anyway, something is already wrong when we start getting ERROR 1960 The current user is invalid (which I'm getting too on a user with an unspecified host). | |||||||||||||||||||||||||||||||||||||||
| Comment by Igor Pashev [ 2016-04-18 ] | |||||||||||||||||||||||||||||||||||||||
|
I think check_user_can_set_role should find something for the user, but with find_user_exact it does not.
| |||||||||||||||||||||||||||||||||||||||
| Comment by Alexey Botchkov [ 2016-04-28 ] | |||||||||||||||||||||||||||||||||||||||
|
Proposed fix: http://lists.askmonty.org/pipermail/commits/2016-April/009327.html | |||||||||||||||||||||||||||||||||||||||
| Comment by Alexey Botchkov [ 2016-04-28 ] | |||||||||||||||||||||||||||||||||||||||
|
http://lists.askmonty.org/pipermail/commits/2016-April/009327.html |