Bug 492517

Summary: CVE-2007-3103 init.d xfs script chown race condition vulnerability
Product: [Fedora] Fedora Reporter: Tomas Hoger <thoger>
Component: xorg-x11-xfsAssignee: Adam Jackson <ajax>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: xgl-maint
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 1.0.5-3.1.fc10 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 242903 Environment:
Last Closed: 2009-04-13 19:10:27 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: 242903    
Bug Blocks: 446452    

Description Tomas Hoger 2009-03-27 08:03:33 UTC
+++ This bug was initially created as a clone of Bug #242903 +++

From iDefense:

Local exploitation of a race condition vulnerability in init.d XFS (X Font
Server) script allows an attacker to elevate their privileges to root.

The XFS script is vulnerable to a race condition when it is started by init, or
by a system administrator. Specifically, it insecurely changes the file
permissions of a temporary file. This allows an attacker to make any file on the
system world writable.

Successful exploitation of this vulnerability results in an attacker gaining
root privileges on the affected system. However, in order to exploit this, it is
necessary for either the system to be rebooted, or for the administrator to
manually restart the XFS.


This was fixed in the XFS init script in Red Hat Enterprise Linux 4 and 5:
  https://rhn.redhat.com/errata/CVE-2007-3103.html

but it seems that the change never made it to Fedora.  Init script in Fedora still does mkdir/chown/chmod and not mkdir -m 1777 as is done in RHEL scripts.  Affects all current Fedora versions - F9 - F11/rawhide.  This should be fix, so we do not re-introduce the bug in RHEL6.

Comment 1 Adam Jackson 2009-04-13 19:10:27 UTC
Fixed in F-9 through rawhide, updates to follow shortly.

Comment 2 Fedora Update System 2009-07-02 05:53:29 UTC
xorg-x11-xfs-1.0.5-2.1.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 3 Fedora Update System 2009-07-02 05:54:02 UTC
xorg-x11-xfs-1.0.5-3.1.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.