[MXS-4138] Race condition in binlogrouter Created: 2022-05-18 Updated: 2022-06-03 Resolved: 2022-06-03 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | pinloki |
| Affects Version/s: | 2.5.20, 6.3.1 |
| Fix Version/s: | 2.5.21, 6.4.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | markus makela | Assignee: | markus makela |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
There is a possibility of a use-after-free if the replication client closes the connection while the binlogrouter is sending large amounts of events to it. This happens because of the code returns once a millisecond into the worker main loop to prevent thread monopolization but it does this without checking whether the session is still alive after it returns. |