[MDEV-7695] MariaDB - ssl - fips: can not connect with --ssl-cipher=DHE-RSA-AES256-SHA - handshake failure Created: 2015-03-10 Updated: 2016-02-12 Resolved: 2015-05-03 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | SSL |
| Affects Version/s: | 10.0.16 |
| Fix Version/s: | 5.5.44, 10.0.18 |
| Type: | Bug | Priority: | Major |
| Reporter: | Nirbhay Choubey (Inactive) | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | SUSE, fips, ssl | ||
| Environment: |
SLES-12, x86_64 |
||
| Issue Links: |
|
||||||||||||
| Description |
|
When FIPS is enabled can not connect with ssl-cipher=DHE-RSA-AES256-SHA
Without fips connection is established:
=== FIPS=1 ===
https://bugzilla.suse.com/show_bug.cgi?id=920865 |
| Comments |
| Comment by Nirbhay Choubey (Inactive) [ 2015-05-11 ] |
|
https://github.com/MariaDB/server/commit/7e7dd8e8f4c1eb83e1ac4eddc4911139b5b0e0c7 |
| Comment by Tomas Hoger [ 2015-06-09 ] |
|
This should probably be backported to 5.x versions as well. Because of CVE-2015-4000 / LOGJAM, OpenSSL is getting changed to require at least 768bit DH parameters in its client code: https://www.openssl.org/blog/blog/2015/05/20/logjam-freak-upcoming-changes/ If connection between client and server normally uses some DH cipher suite, and client's OpenSSL is patched with the above fix, subsequent SSL connection attempts will fail. Changing client's or server's cipher list using --ssl-cipher to disable DH ciphers can be used as a workaround. MySQL and Percona bug reports: http://bugs.mysql.com/bug.php?id=77275 |
| Comment by Sergei Golubchik [ 2015-06-09 ] |
|
In cases when a bug is reported to MySQL, we generally prefer to merge the bugfix when it's fixed upstream. |
| Comment by Tomas Hoger [ 2015-06-09 ] |
|
I wanted to give you a heads-up. The OpenSSL fix is likely to start appearing in distributions soon, breaking database connections that currently work fine. Hence this problem will no longer be limited to users running in FIPS mode. We had this problem reported very soon after OpenSSL update was pushed to Red Hat Enterprise Linux. You may see user demand to have this fixed before the fix makes its way in via MySQL upstream. |
| Comment by Sergei Golubchik [ 2015-06-09 ] |
|
Thanks. I guess I'll just backport 10.0 fix to 5.5 now. MariaDB-5.5.44 release is today and 5.5.45 is at least in two months. |
| Comment by Tomas Hoger [ 2015-06-09 ] |
|
It was pointed out in the upstream bug that the issue is already fixed in MySQL 5.7.6: https://github.com/mysql/mysql-server/commit/866b988a76e8e7e217017a7883a52a12ec5024b9 |