Samba smb.conf privilege escalation

samba-smb-privilege-escalation (36560) The risk level is classified as MediumMedium Risk

Description:

Samba could allow a local attacker to gain elevated privileges. If the "winbind nss info" parameter in smb.conf is set to sfu or rfc2307 and if sfu or rfc2307 primary groups are missing, an attacker could exploit this vulnerability to gain primary group ID zero privileges.

Platforms Affected:

  • RedHat, Enterprise Linux 4 AS
  • RedHat, Enterprise Linux 4 Desktop
  • RedHat, Enterprise Linux 4 ES
  • RedHat, Enterprise Linux 4 WS
  • RedHat, Enterprise Linux 5
  • RedHat, Enterprise Linux 5 Client
  • Samba, Samba 3.0.25
  • Samba, Samba 3.0.25a
  • Samba, Samba 3.0.25b
  • Samba, Samba 3.0.25c

Remedy:

Upgrade to the latest version of Samba (3.0.26 or later), available from the Samba Web site. See References.

Consequences:

Gain Privileges

References:

  • Samba Web site, Samba - opening windows to a wider world at http://us4.samba.org/samba/.
  • Samba Web site, Incorrect primary group assignment domain users using the rfc2307 or sfu winbind nss info plugin at http://us1.samba.org/samba/security/CVE-2007-4138.html.
  • ASA-2007-489: Samba security update (RHSA-2007-1016)
  • BID-25636: Samba NSS_Info Plugin Local Privilege Escalation Vulnerability
  • CVE-2007-4138: The Winbind nss_info extension (nsswitch/idmap_ad.c) in idmap_ad.so in Samba 3.0.25 through 3.0.25c, when the winbind nss info option is set to rfc2307 or sfu, grants all local users the privileges of gid 0 when the (1) RFC2307 or (2) Services for UNIX (SFU) primary group attribute is not defined.
  • FrSIRT/ADV-2007-3120: Samba winbind nss info Group ID Local Privilege Escalation Vulnerability
  • RHSA-2007-1016: Critical: samba security update
  • RHSA-2007-1017: Critical: samba security update
  • SA26764: Samba "winbind nss info" Privilege Escalation Security Issue
  • SECTRACK ID: 1018681: Samba Winbind SFU/RFC2307 GID Error Lets Local Users Gain Elevated Privileges

Reported:

Sep 11, 2007

The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

Copyright (c) 1994-2008 Internet Security Systems, Inc. All rights reserved worldwide.

For corrections or additions please email xforce@iss.net

Return to the main page