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 2087147 - openssl in FIPS mode verifies SHA-1 signatures, but should not
Summary: openssl in FIPS mode verifies SHA-1 signatures, but should not
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: openssl
Version: 9.1
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: rc
: ---
Assignee: Clemens Lang
QA Contact: Alicja Kario
URL:
Whiteboard:
: 2042448 (view as bug list)
Depends On:
Blocks: 2087234
TreeView+ depends on / blocked
 
Reported: 2022-05-17 12:58 UTC by Clemens Lang
Modified: 2023-06-05 15:54 UTC (History)
4 users (show)

Fixed In Version: openssl-3.0.1-35.el9_0
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 2087234 (view as bug list)
Environment:
Last Closed: 2023-06-05 15:54:31 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker CRYPTO-7256 0 None None None 2022-05-17 14:27:58 UTC
Red Hat Issue Tracker RHELPLAN-122366 0 None None None 2022-05-17 14:28:02 UTC

Description Clemens Lang 2022-05-17 12:58:53 UTC
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 4 Dmitry Belyavskiy 2022-05-18 13:18:26 UTC
*** Bug 2042448 has been marked as a duplicate of this bug. ***

Comment 10 Clemens Lang 2023-06-05 15:54:31 UTC
RHEL 9.1 contains openssl-3.0.1-43.el9_0.


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