Samba < 3.0.30 receive_smb_raw Function Remote Buffer Overflow

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


Synopsis :

The remote Samba server may be affected by a buffer overflow
vulnerability.

Description :

According to its banner, the version of the Samba server on the remote
host is reportedly affected by a boundary error in 'nmbd' within the
'receive_smb_raw' function in 'lib/util_sock.c' when parsing SMB
packets received in a client context. By sending specially crafted
packets to an 'nmbd' server configured as a local or domain master
browser, an attacker can leverage this issue to produce a heap-based
buffer overflow and execute arbitrary code with system privileges.

Note that Nessus has not actually tried to exploit this issue, verify
the remote 'nmbd' server's configuration, or determine if the fix has
been applied.

See also :

http://secunia.com/secunia_research/2008-20/advisory/
http://www.samba.org/samba/security/CVE-2008-1105.html
http://archives.neohapsis.com/archives/bugtraq/2008-05/0354.html

Solution :

Upgrade to Samba version 3.0.30 or later or apply the patch referenced
in the project's advisory.

Risk factor :

High / CVSS Base Score : 7.5
(CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P)
CVSS Temporal Score : 5.9
(CVSS2#E:POC/RL:OF/RC:C)
Public Exploit Available : true

Family: Misc.

Nessus Plugin ID: 32476 ()

Bugtraq ID: 29404

CVE ID: CVE-2008-1105