Bug 510024 (CVE-2009-1893) - CVE-2009-1893 dhcp: insecure temporary file use in the dhcpd init script
Summary: CVE-2009-1893 dhcp: insecure temporary file use in the dhcpd init script
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2009-1893
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 188575 507734
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-07-07 13:19 UTC by Tomas Hoger
Modified: 2019-09-29 12:30 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-07-21 16:50:51 UTC


Attachments (Terms of Use)


Links
System ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2009:1154 normal SHIPPED_LIVE Critical: dhcp security update 2009-07-14 19:28:01 UTC

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


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