Gentoo Logo

Samba: Execution of arbitrary code


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200712-10 / samba
Release Date December 10, 2007
Latest Revision December 10, 2007: 01
Impact high
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
net-fs/samba < 3.0.28 >= 3.0.28 All supported architectures

Related bugreports: #200773


Samba contains a buffer overflow vulnerability potentially resulting in the execution of arbitrary code.

2.  Impact Information


Samba is a suite of SMB and CIFS client/server programs for UNIX.


Alin Rad Pop (Secunia Research) discovered a boundary checking error in the send_mailslot() function which could lead to a stack-based buffer overflow.


A remote attacker could send a specially crafted "SAMLOGON" domain logon packet, possibly leading to the execution of arbitrary code with elevated privileges. Note that this vulnerability is exploitable only when domain logon support is enabled in Samba, which is not the case in Gentoo's default configuration.

3.  Resolution Information


Disable domain logon in Samba by setting "domain logons = no" in the "global" section of your smb.conf and restart Samba.


All Samba users should upgrade to the latest version:

Code Listing 3.1: Resolution

# emerge --sync
# emerge --ask --oneshot --verbose ">=net-fs/samba-3.0.28"

4.  References


Page updated December 10, 2007

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Copyright 2001-2015 Gentoo Foundation, Inc. Questions, Comments? Contact us.