GLSA-200712-10 : Samba: Execution of arbitrary code

This script is Copyright (C) 2007-2014 Tenable Network Security, Inc.


Synopsis :

The remote Gentoo host is missing one or more security-related
patches.

Description :

The remote host is affected by the vulnerability described in GLSA-200712-10
(Samba: Execution of arbitrary code)

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

Impact :

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.

Workaround :

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

See also :

http://www.gentoo.org/security/en/glsa/glsa-200712-10.xml

Solution :

All Samba users should upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot --verbose '>=net-fs/samba-3.0.28'

Risk factor :

High / CVSS Base Score : 9.3
(CVSS2#AV:N/AC:M/Au:N/C:C/I:C/A:C)

Family: Gentoo Local Security Checks

Nessus Plugin ID: 29297 (gentoo_GLSA-200712-10.nasl)

Bugtraq ID:

CVE ID: CVE-2007-6015