Bug 510024 (CVE-2009-1893)

Summary: CVE-2009-1893 dhcp: insecure temporary file use in the dhcpd init script
Product: [Other] Security Response Reporter: Tomas Hoger <thoger>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: bressers, dcantrell, jlieskov, security-response-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-07-21 16:50:51 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: 188575, 507734    
Bug Blocks:    

Description Tomas Hoger 2009-07-07 13:19:28 UTC
Robert Vogelgesang reported that dhcpd init script as used in dhcp packages in Red Hat Enterprise Linux 3 does not create temporary files safely inside configtest() function.  Temporary file created by the script has predictable name (using script's process id), allowing local attacker to perform a symlink attack.  When init script is called with configtest, restart or reload argument, arbitrary file may be overwritten by the output of 'dhcpd -t' (dhcpd.conf syntax check).

Comment 1 Tomas Hoger 2009-07-07 13:22:42 UTC
This issue did not affect dhcp packages in Red Hat Enterprise Linux 4 and 5, and current Fedora versions (9, 10, 11).

Comment 2 Josh Bressers 2009-07-14 17:42:32 UTC
Opening bug

Comment 4 errata-xmlrpc 2009-07-14 19:32:34 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 3

Via RHSA-2009:1154 https://rhn.redhat.com/errata/RHSA-2009-1154.html

Comment 5 Jan Lieskovsky 2009-07-18 09:55:44 UTC
MITRE's CVE-2009-1893 entry:

The configtest function in the Red Hat dhcpd init script for DHCP
3.0.1 in Red Hat Enterprise Linux (RHEL) 3 allows local users to
overwrite arbitrary files via a symlink attack on an unspecified
temporary file, related to the "dhcpd -t" command.

References:
----------
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-1893
http://www.redhat.com/support/errata/RHSA-2009-1154.html
http://www.securityfocus.com/bid/35670
http://securitytracker.com/id?1022554
http://secunia.com/advisories/35831
http://xforce.iss.net/xforce/xfdb/51718