Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Description of problem:
OpenSSL allows SHA-1 signature verification in FIPS mode.
$> openssl pkeyutl -inkey key.pem -verify -sigfile sha1sig -in sha1 -pkeyopt digest:sha1
should fail saying the SHA-1 is unsupported, but does not.
Version-Release number of selected component (if applicable):
3.0.1-20.el9_0
How reproducible:
Steps to Reproduce:
1. On a non-FIPS machine:
1.1. openssl genrsa -out key.pem 2048
1.2. openssl dgst -sha1 -binary -out sha1 infile
1.3. openssl pkeyutil -inkey key.pem -sign -in sha1 -out sig -pkeyopt digest:sha1
1.4. Copy infile, sha1, key.pem, and sig to a FIPS machine
2. On a FIPS machine:
2.1. openssl pkeyutil -inkey key.pem -verify -sigfile sig -in sha1 -pkeyopt digest:sha1
Actual results:
Verification passes
Expected results:
Verification fails
Additional info:
NIST SP 800-131Ar2 table 8 allows SHA-1 verification for legacy use, but since we do not support this in the default configuration of RHEL-9, we also do not want to allow it in FIPS mode.
Comment 4Dmitry Belyavskiy
2022-05-18 13:18:26 UTC
*** Bug 2042448 has been marked as a duplicate of this bug. ***