Bug 859448 (CVE-2012-4453)

Summary: CVE-2012-4453 dracut: Creates initramfs images with world-readable permissions (information disclosure)
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: aladke, atodorov, dpal, dracut-maint-list, harald, mganisin, pjones, pvrabec, security-response-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: impact=moderate,public=20120927,reported=20120913,source=redhat,cvss2=5.4/AV:N/AC:H/Au:N/C:C/I:N/A:N,rhel-6/dracut=affected,fedora-all/dracut=affected
Fixed In Version: Doc Type: Bug Fix
Doc Text:
It was discovered that dracut created initramfs images as world readable. A local user could possibly use this flaw to obtain sensitive information from these files, such as iSCSI authentication passwords, encrypted root file system crypttab passwords, or other information.
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-21 22:17:01 EST Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On: 860977, 861034    
Bug Blocks: 859456, 974906    
Description Flags
Change umask before creating $outfile none

Description Jan Lieskovsky 2012-09-21 11:08:32 EDT
An information disclosure flaw was found in the way dracut, an initramfs root filesystem images generator, created initramfs images. When the root filesystem contained sensitive information (password based authentication for iSCSI systems or encrypted root filesystem crypttab password information), an attacker could use this flaw to obtain this information.


This issue was discovered by Peter Jones of the Red Hat Installer Team.
Comment 3 Jan Lieskovsky 2012-09-21 11:18:52 EDT
This issue affects the version of the dracut package, as shipped with Red Hat Enterprise Linux 6.


This issue affects the versions of the dracut package, as shipped with Fedora release of 16 and 17.
Comment 7 Peter Jones 2012-09-24 15:23:52 EDT
Created attachment 616700 [details]
Change umask before creating $outfile

Here's a patch against upstream git's "master".
Comment 14 Huzaifa S. Sidhpurwala 2012-09-27 02:33:10 EDT
This issue has been assigned CVE-2012-4453
Comment 18 Huzaifa S. Sidhpurwala 2012-09-27 05:00:43 EDT
This issue is fixed upstream via the following patch:

Comment 19 Huzaifa S. Sidhpurwala 2012-09-27 05:03:02 EDT
Created dracut tracking bugs for this issue

Affects: fedora-all [bug 860977]
Comment 20 Huzaifa S. Sidhpurwala 2012-09-27 05:05:03 EDT
(In reply to comment #18)
> This issue is fixed upstream via the following patch:
> https://github.com/haraldh/dracut/commit/
> e1b48995c26c4f06d1a718539cb1bd5b0179af91

The following is the upstream patch:
Comment 32 errata-xmlrpc 2013-11-21 16:54:15 EST
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6

Via RHSA-2013:1674 https://rhn.redhat.com/errata/RHSA-2013-1674.html
Comment 33 Huzaifa S. Sidhpurwala 2013-11-21 22:16:42 EST