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 608694 - in fips mode rpm omits md5 signature without warning
Summary: in fips mode rpm omits md5 signature without warning
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: rpm
Version: 6.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Panu Matilainen
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks: 582655
TreeView+ depends on / blocked
 
Reported: 2010-06-28 13:46 UTC by Jiri Kastner
Modified: 2011-03-15 13:59 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-06-29 06:24:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jiri Kastner 2010-06-28 13:46:12 UTC
Description of problem:
when machine is in fips mode, and gpg.conf (or .rpmmacros) is configured to create md5 digest, 

Version-Release number of selected component (if applicable):


How reproducible:
always in fips mode

Steps to Reproduce:
1. enable fips mode and reboot
2. configure .gnupg/gpg.conf or /rpmmacros to use MD5 signature
3. sign some rpm
4. check results
  
Actual results:
$ rpm -v --addsign mod_gnutls-0.5.6-1.md5.x86_64.rpm 
Enter pass phrase: 
Pass phrase is good.
mod_gnutls-0.5.6-1.md5.x86_64.rpm:
$ rpm -v --checksig mod_gnutls-0.5.6-1.md5.x86_64.rpm 
mod_gnutls-0.5.6-1.md5.x86_64.rpm:
    Header V3 DSA/SHA1 Signature, key ID 8a2cffe0: OK
    Header SHA1 digest: OK (2a30e68848f8aa15028e160164ce309c26b6f735)
    MD5 digest: OK (7b86a7c836b21679133b77ff7cdce95b)
    V3 DSA/SHA1 Signature, key ID 8a2cffe0: OK


Expected results:
$ rpm -v --addsign mod_gnutls-0.5.6-1.md5.x86_64.rpm 
Enter pass phrase: 
Pass phrase is good.
mod_gnutls-0.5.6-1.md5.x86_64.rpm:
machine is running in fips mode - MD5 is not allowed, using SHA1 instead!

$ rpm -v --checksig mod_gnutls-0.5.6-1.md5.x86_64.rpm 
mod_gnutls-0.5.6-1.md5.x86_64.rpm:
    Header V3 DSA/SHA1 Signature, key ID 8a2cffe0: OK
    Header SHA1 digest: OK (2a30e68848f8aa15028e160164ce309c26b6f735)
    MD5 digest: OK (7b86a7c836b21679133b77ff7cdce95b)
    V3 DSA/SHA1 Signature, key ID 8a2cffe0: OK

Additional info:

Comment 2 RHEL Program Management 2010-06-28 14:03:05 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.

Comment 3 Panu Matilainen 2010-06-29 06:17:50 UTC
Rpm doesn't know anything about any "FIPS mode", never has. Teaching it about FIPS, all affected areas, would be a new feature and it's a wee bit late for those. If using md5 to sign packages shouldn't be allowed, then presumably rpm should refuse to install packages with md5-only file and/or header digests etc etc etc - I don't know where it would end. NAK.

Comment 4 RHEL Program Management 2010-06-29 06:24:38 UTC
Development Management has reviewed and declined this request.  You may appeal
this decision by reopening this request.


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