[MDEV-8084] OOB write in mysqladmin:mask_password Created: 2015-04-30 Updated: 2015-05-01 Resolved: 2015-04-30 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Scripts & Clients |
| Affects Version/s: | 5.5.42, 10.0.17 |
| Fix Version/s: | 5.5.43, 10.0.18 |
| Type: | Bug | Priority: | Major |
| Reporter: | mancha | Assignee: | Sergei Golubchik |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Linux |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
If mysqladmin is called purely with options (e.g. mysqladmin -u root), mask_password (the process list password scrubber) gets called with empty argv and zero argc. This causes an OOB write to temp_argv (line 1218 below) that results in a segmentation fault crash of mysqladmin. Attached patch against MariaDB 5.5.42 fixes (similar can be applied to other affected branches). --mancha mariadb-5.5.42/client/mysqladmin.cc:
|
| Comments |
| Comment by Sergei Golubchik [ 2015-04-30 ] |
|
Thanks! |
| Comment by mancha [ 2015-05-01 ] |
|
Hi Sergei. That's great news you've already fixed this issue. To provide a bit of background, I was prompted to look into this based on a Slackware bug report. After my code analysis, I found the buggy code present in 5.5 HEAD and assumed it was still outstanding. By the way, is there another public repo with staged/queued commits that haven't yet been merged into Launchpad? Many thanks! |
| Comment by Sergei Golubchik [ 2015-05-01 ] |
|
Yes, we aren't using Launchpad anymore, the up-to-date tree is on github: https://github.com/MariaDB/server |
| Comment by mancha [ 2015-05-01 ] |
|
Duly noted. Many thanks. |