Bug 838837 (CVE-2013-4169) - VUL-0: CVE-2013-4169: gdm: TOCTTOU race condition on /tmp/.X11-unix
Summary: VUL-0: CVE-2013-4169: gdm: TOCTTOU race condition on /tmp/.X11-unix
Status: RESOLVED FIXED
Alias: CVE-2013-4169
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: David Liang
QA Contact: Security Team bot
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-06 07:28 UTC by Alexander Bergmann
Modified: 2015-07-20 11:09 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Bergmann 2013-09-06 07:28:40 UTC
Public via oss-security list.

Date: Thu, 5 Sep 2013 15:54:50 -0600
From: Vincent Danen
Subject: [oss-security] GDM TOCTTOU race condition on /tmp/.X11-unix (CVE-2013-4169)

As per the distros@ list recommendations, I'm writing to alert of a
problem with older versions of GDM.  As per our bugzilla [1]:

Vladz reported that GDM versions < 2.21.1 were vulnerable to a TOCTTOU
(time of check to time of use) flaw in the way that GDM checked for the
existence of, and created if missing, the /tmp/.X11-unix/ special
directory.  A local attacker could use this flaw to overwrite arbitrary
file contents via symbolic link attacks or to manipulate the contents of
arbitrary files, including those files owned by the root user that would
normally be inaccessible.  This is because GDM will chown /tmp/.X11-unix
to the user and group root, but also changes the permissions to 1777.

Newer versions of GDM no longer create the /tmp/.X11-unix/ directory and
are thus not vulnerable to this flaw.

This issue was assigned CVE-2013-4169.  We fixed the problem by having
rc.sysinit pre-create /tmp/.X11-unix at boot, like it does for
/tmp/.ICE-unix (and removing the offending code from GDM).


[1] https://bugzilla.redhat.com/show_bug.cgi?id=988498
Comment 1 Swamp Workflow Management 2013-09-06 22:00:09 UTC
bugbot adjusting priority
Comment 2 David Liang 2014-01-26 07:12:43 UTC
Hi,

SLE11 (gdm-2.24) is not vulnerable to this flaw, 
should I submit the patch to sle10* ?
Comment 4 David Liang 2014-03-18 06:16:22 UTC
close, no supported product is affected.
Comment 5 Victor Pereira 2015-07-20 11:09:28 UTC
resolved and fixed.