Bug 1191575 (CVE-2015-0267)

Summary: CVE-2015-0267 kexec-tools: insecure use of /tmp/*$$* filenames
Product: [Other] Security Response Reporter: Vasyl Kaigorodov <vkaigoro>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: bhe, fweimer, jrusnack, jsegitz, kdump-team-bugs, ruyang, wcwxyz
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
It was found that the module-setup.sh script provided by kexec-tools created temporary files in an insecure way. A malicious, local user could use this flaw to conduct a symbolic link attack, allowing them to overwrite the contents of arbitrary files.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-12 18:45:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1213342, 1213343, 1213344    
Bug Blocks: 1191577    
Attachments:
Description Flags
proposed patch none

Description Vasyl Kaigorodov 2015-02-11 14:24:21 UTC
Harald Hoyer from Red Hat reported that /usr/lib/dracut/modules.d/99kdumpbase/module-setup.sh script uses insecure temporary files names, which can lead to a persistent local denial of service, or allow local users to escalate their privileges.

Comment 1 Ján Rusnačko 2015-04-15 12:23:16 UTC
Created attachment 1014711 [details]
proposed patch

Comment 2 Ján Rusnačko 2015-04-15 12:33:30 UTC
Acknowledgements:

This issue was discovered by Harald Hoyer of Red Hat.

Comment 5 Florian Weimer 2015-04-20 10:59:35 UTC
Created kexec-tools tracking bugs for this issue:

Affects: fedora-all [bug 1213342]

Comment 6 errata-xmlrpc 2015-05-12 17:53:53 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2015:0986 https://rhn.redhat.com/errata/RHSA-2015-0986.html