RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1973292 - OpenSSL doesn't automatically select DH parameters for DHE-PSK ciphersuites
Summary: OpenSSL doesn't automatically select DH parameters for DHE-PSK ciphersuites
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: openssl
Version: 9.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: beta
: ---
Assignee: Dmitry Belyavskiy
QA Contact: Alicja Kario
URL:
Whiteboard:
Depends On: 2035249
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-17 15:06 UTC by Alicja Kario
Modified: 2022-05-17 15:38 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Known Issue
Doc Text:
Cause: PSK ciphersuites don't work on system set up to FUTURE crypto policy. This is caused by OpenSSL SECLEVEL=3 disabling key exchange methods other than plain DHE or ECDHE. Consequence: Connections attempts that use PSK, DHE-PSK, or ECDHE-PSK ciphersuites fail on a system set-up with FUTURE crypto-policy Workaround (if any): Switch the system to any other crypto-policy or explicitly set lower SECLEVEL in openssl cipherstring. Result: PSK ciphersuites don't work with FUTURE crypto-policy.
Clone Of:
Environment:
Last Closed: 2022-05-17 15:36:30 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openssl/openssl/commit/d7b5c648d682b499b71320a03747602a6ba4dec3 0 None None None 2021-06-21 14:30:19 UTC
Github openssl openssl issues 15808 0 None open DHE-PSK-* ciphersuites fail when SECLEVEL requires key sizes above 1024 2021-08-06 13:20:58 UTC
Github openssl openssl issues 17743 0 None open PSK ciphersuites at SECLEVEL=3 2022-02-21 14:32:24 UTC
Github openssl openssl pull 15818 0 None closed ssl: do not choose auto DH groups that are weaker than the security level 2021-06-21 14:30:19 UTC
Red Hat Issue Tracker CRYPTO-5304 0 None None None 2021-11-15 09:55:45 UTC
Red Hat Product Errata RHBA-2022:3900 0 None None None 2022-05-17 15:36:48 UTC

Description Alicja Kario 2021-06-17 15:06:33 UTC
Description of problem:
When using OpenSSL with TLS_DHE_PSK_* ciphers, openssl server aborts with "dh key too small"

Version-Release number of selected component (if applicable):
openssl-3.0.0-0.alpha16.3.ssl3.x86_64

How reproducible:
always

Steps to Reproduce:
1. openssl s_server -cipher DHE-PSK-AES128-CCM -nocert -psk 0102030405 -www
2. openssl s_client -cipher DHE-PSK-AES128-CCM -psk 0102030405 -no_tls1_3

Actual results:
40E79145717F0000:error:0A00018A:SSL routines:tls_construct_server_key_exchange:dh key too small:ssl/statem/statem_srvr.c:2480:

Expected results:
Successful connection

Additional info:
OpenSSL seems to default to 1024 bit parameters for this connection (when I use -cipher @SECLEVEL=0:DHE-PSK-AES128-CCM it sends a SKE that's 265 bytes long)

Comment 3 Dmitry Belyavskiy 2021-12-08 11:58:57 UTC
Works for me now.

Comment 13 Dmitry Belyavskiy 2022-03-02 15:20:41 UTC
remnants gone to https://bugzilla.redhat.com/show_bug.cgi?id=2060044

Comment 16 errata-xmlrpc 2022-05-17 15:36:30 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (new packages: openssl), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:3900


Note You need to log in before you can comment on or make changes to this bug.