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 2053135 - RC4 enctypes failing because MD4/MD5 unavailable in OpenSSL 3.0 FIPS mode
Summary: RC4 enctypes failing because MD4/MD5 unavailable in OpenSSL 3.0 FIPS mode
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: krb5
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Julien Rische
QA Contact: Filip Dvorak
URL:
Whiteboard:
Depends On:
Blocks: 2027125 2057471 2067971 2124308 2124310
TreeView+ depends on / blocked
 
Reported: 2022-02-10 15:32 UTC by Julien Rische
Modified: 2022-09-05 15:33 UTC (History)
9 users (show)

Fixed In Version: krb5-1.19.1-14.el9_0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-17 15:54:14 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1776910 1 None None None 2022-02-10 15:58:17 UTC
Red Hat Issue Tracker FREEIPA-7834 0 None None None 2022-02-10 15:38:53 UTC
Red Hat Issue Tracker RHELPLAN-111911 0 None None None 2022-02-10 15:39:05 UTC
Red Hat Product Errata RHBA-2022:3951 0 None None None 2022-05-17 15:54:53 UTC

Description Julien Rische 2022-02-10 15:32:01 UTC
Password hashing fails for RC4 encryption types in FIPS mode:

# In /var/kerberos/krb5kdc/kdc.conf
supported_enctypes = arcfour-hmac:normal

kadmin.local -q "addprinc -pw bbb bob"
add_principal: Cryptosystem internal error while creating "bob(at)TEST.REDHAT.COM".

This is because OpenSSL's "legacy" provider[1] is not available by default in this mode. Hence MD4[2] and MD5[3] hashing is impossible, and disabling FIPS properties similarly to the solution mentioned in bug 2039684, will not work here.

A solution would be to fetch the hashing algorithm from an OpenSSL local context provider following this example[4], instead of fetching it from the global provider[5].

[1] https://www.openssl.org/docs/manmaster/man7/OSSL_PROVIDER-legacy.html
[2] https://www.openssl.org/docs/man3.0/man3/EVP_md4.html
[3] https://www.openssl.org/docs/man3.0/man3/EVP_md5.html
[4] https://github.com/cyrusimap/cyrus-sasl/pull/668/files#diff-19656c308089249f956b708a5037d00e771478b6d1db3bce17425d93c46d1ee1R1136
[5] https://github.com/krb5/krb5/blob/krb5-1.19.2-final/src/lib/crypto/openssl/hash_provider/hash_evp.c#L67

Comment 12 Michal Polovka 2022-03-18 17:57:53 UTC
Pre-verified tested using automation krb5-tests/tests/Sanity/sanity-test-of-cipher-suites in FIPS mode run in gating pipeline for krb5-1.19.1-15.el9_0.x86_64 on link http://idm-artifacts.usersys.redhat.com/krb5/Gating-krb5/RHEL9.0/43922298/gating-tests/bash-gating/2/gating-restraint.01/index.html.gz


krb5-tests/tests/Sanity/sanity-test-of-cipher-suites	2022-03-18T15:26:14+0000

2022-03-18T15:27:39+0000 00:01:25 Completed	PASS

Therefore marking as pre-verified: tested.

Comment 19 errata-xmlrpc 2022-05-17 15:54:14 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: krb5), 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:3951


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