CVE-2007-2444: Local SID/Name translation bug can result in user privilege elevation

== Subject:     Local SID/Name translation bug can result
==              in user privilege elevation
== CVE ID#:     CVE-2007-2444
== Versions:    Samba 3.0.23d - 3.0.25pre2 (inclusive)
== Summary:     A bug in the local SID/Name translation
==              routines may potentially result in a user
==              being able to issue SMB/CIFS protocol
==              operations as root.


When translating SIDs to/from names using Samba local
list of user and group accounts, a logic error in the
smbd daemon's internal security stack may result in a
transition to the root user id rather than the non-root
user.  The user is then able to temporarily issue SMB/CIFS
protocol operations as the root user.  This window of
opportunity may allow the attacker to establish additional
means of gaining root access to the server.

Patch Availability

A patch against Samba 3.0.23d/3.0.24 has posted at


There is no immediate workaround for this defect that does
not involve changing the server code in the smbd daemon.
The Samba Team always encourages users to run the latest
stable release as a defense against attacks.  If this
is not immediately possible, administrators should read
the "Server Security" documentation found at


This vulnerability was reported to Samba developers by Paul
Griffith <> and Andrew Hogue.  Much thanks
to Paul and Andrew for their cooperation and patience in the
announcement of this defect.  Thanks also to Samba developers
James Peach and Jeremy Allison for the analysis and resolution
of this issue.

The time line is as follows:

* March 20, 2007: Defect first reported to the
  email alias.
* March 30, 2007: Initial developer response by Gerald Carter.
* April 4, 2007: Patch released to bug reporter for testing.
* April 9, 2007: Fixed confirmed by original reporter.
* May 3, 2007: Announcement to vendor-sec mailing list
* May 14, 2007: Public announcement of the security issue.

== Our Code, Our Bugs, Our Responsibility.
== The Samba Team