Bug #82026 | Stack buffer overflow with --ssl-cipher=<more than 4K characters> | ||
---|---|---|---|
Submitted: | 28 Jun 2016 7:52 | Modified: | 24 Oct 2018 10:43 |
Reporter: | Laurynas Biveinis (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Connection Handling | Severity: | S2 (Serious) |
Version: | 5.7.13,8.0.3 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | SSL, stack buffer overflow |
[28 Jun 2016 7:52]
Laurynas Biveinis
[28 Jun 2016 8:56]
MySQL Verification Team
Hello Laurynas, Thank you for the report. Observed this with 5.7.13 build. Thanks, Umesh
[30 Jun 2016 8:50]
Laurynas Biveinis
Bug 82026 fix (*) I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.
Contribution: bug82026.patch (application/octet-stream, text), 7.65 KiB.
[6 Jun 2017 10:07]
Laurynas Biveinis
Bug 82026 fix for 8.0.1
Attachment: bug82026-8.0.1.patch (application/octet-stream, text), 8.31 KiB.
[5 Aug 2017 7:25]
Laurynas Biveinis
Bug 82026 fix for 8.0.2
Attachment: bug82026-8.0.2.patch (application/octet-stream, text), 8.27 KiB.
[30 Jan 2018 8:44]
Laurynas Biveinis
This apparently has been fixed in 8.0.4, without a testcase and preferring silent truncation rather than error. 6e6a0e619c1eeeb32b11a1132aeb6fbbe3327a2a Author: Harin Vadodaria <harin.vadodaria@oracle.com> AuthorDate: Thu Nov 30 09:17:35 2017 +0100 Commit: Harin Vadodaria <harin.vadodaria@oracle.com> CommitDate: Thu Nov 30 09:17:35 2017 +0100 Parent: 711542cf02e Merge branch 'mysql-5.6' into mysql-5.7 Merged: 5.5 5.6 5.7 mysql-5.7.7 Containing: (no branch, rebasing mysql-8.0.4-percona-patches) 8.0 Follows: mysql-5.7.20 (302) Precedes: mysql-8.0.4 (12877) Bug#25483593: HANDLE THE CASE WHEN --SSL-CIPHER IS LARGER THAN 4096 BYTES Description: Appending an exceptionally larges --ssl-cipher value without validating destination buffer's size causes client to exit. Solution: Append cipher value according to destination buffer's size. 1 file changed, 14 insertions(+), 7 deletions(-)
[24 Oct 2018 10:43]
Erlend Dahl
Closing since the bug is fixed.