Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1392056 - (CVE-2016-8637) CVE-2016-8637 dracut: Local information disclosure of initramfs when early cpio is used
CVE-2016-8637 dracut: Local information disclosure of initramfs when early cp...
Status: NEW
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20161107,repor...
: Security
Depends On: 1392435 1393912
Blocks: 1392057
  Show dependency treegraph
 
Reported: 2016-11-04 12:49 EDT by Adam Mariš
Modified: 2018-03-29 18:01 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1393912 (view as bug list)
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Proposed patch (1022 bytes, patch)
2016-11-04 12:52 EDT, Adam Mariš
no flags Details | Diff

  None (edit)
Description Adam Mariš 2016-11-04 12:49:46 EDT
A local information disclosure issue was found in dracut when generating initramfs images with world-readable permissions when "early cpio" is used, such as when including microcode updates. Local attacker can use this to obtain sensitive information from these files, such as encryption keys or credentials.

Vulnerable code:

if [[ $create_early_cpio = yes ]]; then
    echo 1 > "$early_cpio_dir/d/early_cpio"
    # The microcode blob is _before_ the initramfs blob, not after
    (cd "$early_cpio_dir/d";     find . -print0 | cpio --null $cpio_owner_root -H newc -o --quiet > $outfile)
fi
if ! ( umask 077; cd "$initdir"; find . -print0 | cpio --null $cpio_owner_root -H newc -o --quiet | \
    $compress >> "$outfile"; ); then
    dfatal "dracut: creation of $outfile failed"
    exit 1
fi

The permissions of the output file depend on umask at creation time, and appending to an existing file does not change them. create_early_cpio is set to on when microcode updates are being used.
Comment 1 Adam Mariš 2016-11-04 12:49:52 EDT
Acknowledgments:

Name: Andreas Stieger (SUSE Security Team)
Comment 2 Adam Mariš 2016-11-04 12:52 EDT
Created attachment 1217453 [details]
Proposed patch
Comment 4 Andrej Nemec 2016-11-07 08:53:43 EST
Created dracut tracking bugs for this issue:

Affects: fedora-all [bug 1392435]
Comment 5 Andrej Nemec 2016-11-07 08:53:55 EST
Public via:

http://seclists.org/oss-sec/2016/q4/352

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