[MDEV-4422] SHOW PROCESSLIST reference to THD::db not protected against simultaneous updates Created: 2013-04-23 Updated: 2013-06-14 Resolved: 2013-06-13 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.1, 5.5.30, 5.1.67, 5.2.14, 5.3.12 |
| Fix Version/s: | 10.0.4, 5.5.32 |
| Type: | Bug | Priority: | Major |
| Reporter: | Kristian Nielsen | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
SHOW PROCESSLIST accesses the current db (THD::db) of each thread without
This can result in reading free()d memory, in theory returning sensitive data A possible solution is to protect THD::set_db() calls, as well as reading of |
| Comments |
| Comment by Kristian Nielsen [ 2013-04-23 ] |
|
Valgrind report for reference, though this appears to be a general problem rather than a specific Valgrind issue: rpl.rpl_stop_slave 'mix,xtradb' w5 [ fail ] Found warnings/errors in server log file! |
| Comment by Laurynas Biveinis [ 2013-04-26 ] |
|
Percona Server is affected as well, https://bugs.launchpad.net/percona-server/+bug/1173282 |
| Comment by Kristian Nielsen [ 2013-05-07 ] |
|
Suggestion from Serg (on maria-developers@): I'd say, let's use a fixed buffer in 5.1-5.5. |
| Comment by Peter (Stig) Edwards [ 2013-06-13 ] |
|
Thank you. |
| Comment by Sergei Golubchik [ 2013-06-13 ] |
|
In a sense. You'd really prefer to upgrade to 5.5. While 5.3 is still maintained, minor bug fixes might not get into it. And releases are rare, you'd need to wait few months for a fixed version, for 5.5 is usually about one month. |
| Comment by Peter (Stig) Edwards [ 2013-06-14 ] |
|
OK, thanks. |