Bug 818741

Summary: Do not fall back to MD5 when crypt() falls its hashing algo
Product: [Fedora] Fedora Reporter: Paul Wouters <pwouters>
Component: pamAssignee: Tomas Mraz <tmraz>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: tmraz
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pam-1.1.5-7.fc18 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-24 08:20:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch disabling MD5 fallback none

Description Paul Wouters 2012-05-03 20:10:05 UTC
Description of problem:
There is fallback code that uses crypt() in DES mode when it fails to work with another hashing algorithm via the $x$ salt argument passing.

In fips mode when MD5 is not allowed using a salt of $1$ (for MD5) results in crypt() returning NULL, and the fallback using the even worse then MD5 algo of single DES.

Comment 1 Paul Wouters 2012-05-03 20:11:51 UTC
Created attachment 581954 [details]
patch disabling MD5 fallback

Comment 2 Paul Wouters 2012-05-03 20:12:49 UTC
Slight correction, the fallback is to MD5 not DES, and it happens when the FIPS check fails for sha256/sha512.