Bug 816956 (CVE-2012-2143)

Summary: CVE-2012-2143 BSD crypt(): DES encrypted password weakness
Product: [Other] Security Response Reporter: Jan Lieskovsky <jlieskov>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: fedora, hhorak, jorton, rpm, security-response-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: impact=moderate,public=20120530,reported=20120426,source=redhat,cvss2=4.0/AV:N/AC:H/Au:N/C:P/I:P/A:N,rhel-5/postgresql=affected,rhel-5/postgresql84=affected,rhel-6/postgresql=affected,fedora-all/postgresql=affected,rhel-5/php=notaffected,rhel-5/php53=affected,rhel-6/php=affected,fedora-all/php=affected
Fixed In Version: postgresql 9.1.4, postgresql 9.0.8, postgresql 8.4.12, postgresql 8.3.19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-08 15:51:32 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On: 826606, 826607, 830721, 830722, 830723, 830724, 830725, 830726, 830727, 830728, 830729, 830730    
Bug Blocks: 816965, 826009, 835959, 835960    

Description Jan Lieskovsky 2012-04-27 07:02:13 EDT
A security flaw was found in the way DES and extended DES based crypt() password encryption function performed encryption of certain keys, when the key to be encrypted was provided in the Unicode encoding (certain keys were truncated before being DES digested). When the resulting ciphertext for such a previously shortened key was used as a pattern in a password protected resource, intended to be matched against subsequently encrypted value of the password field, retrieved from the user authentication dialog, it could lead to authentication bypass.
Comment 2 Jan Lieskovsky 2012-04-27 07:10:45 EDT
This issue affects the versions of the postgresql and postgresql84 packages, as shipped with Red Hat Enterprise Linux 5.

--

This issue affects the version of the posgresql package, as shipped with Red Hat Enterprise Linux 6.

--

This issue affects the versions of the postgresql package, as shipped with Fedora release of 15 and 16.
Comment 7 Jan Lieskovsky 2012-05-29 03:23:29 EDT
Acknowledgements:

Upstream acknowledges Rubin Xu and Joseph Bonneau as the original reporters of this issue.
Comment 12 Jan Lieskovsky 2012-05-30 10:46:53 EDT
This issue did NOT affect the version of the php package, as shipped
with Red Hat Enterprise Linux 5.

--

This issue affects the version of the php53 package, as shipped
with Red Hat Enterprise Linux 5.

--

This issue affects the version of the php package, as shipped with
Red Hat Enterprise Linux 6.

--

This issue affects the versions of the php package, as shipped with
Fedora release of 15 and 16.
Comment 15 Jan Lieskovsky 2012-05-30 11:29:37 EDT
Created php tracking bugs for this issue

Affects: fedora-all [bug 826607]
Comment 16 Jan Lieskovsky 2012-05-30 11:29:49 EDT
Created postgresql tracking bugs for this issue

Affects: fedora-all [bug 826606]
Comment 23 errata-xmlrpc 2012-06-25 14:03:03 EDT
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5

Via RHSA-2012:1036 https://rhn.redhat.com/errata/RHSA-2012-1036.html
Comment 24 errata-xmlrpc 2012-06-25 14:13:42 EDT
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5
  Red Hat Enterprise Linux 6

Via RHSA-2012:1037 https://rhn.redhat.com/errata/RHSA-2012-1037.html
Comment 25 errata-xmlrpc 2012-06-27 11:52:25 EDT
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5

Via RHSA-2012:1047 https://rhn.redhat.com/errata/RHSA-2012-1047.html
Comment 26 errata-xmlrpc 2012-06-27 11:52:59 EDT
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6

Via RHSA-2012:1046 https://rhn.redhat.com/errata/RHSA-2012-1046.html
Comment 27 Fedora Update System 2012-06-30 18:07:03 EDT
php-5.4.4-1.fc17, maniadrive-1.2-41.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 28 Fedora Update System 2012-07-02 18:31:27 EDT
php-5.3.14-1.fc16, php-eaccelerator-0.9.6.1-9.fc16.6, maniadrive-1.2-32.fc16.6 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 29 Jan Lieskovsky 2012-08-28 06:24:15 EDT
Statement:

This issue did not affect the version of php as shipped with Red Hat Enterprise Linux 5 as it did not include FreeSec's libcrypt cryptographic algorithms implementation yet. This issue was addressed in php53 package for Red Hat Enterprise Linux 5 via RHSA-2012:1047 and in php package for Red Hat Enterprise Linux 6 via RHSA-2012:1046.