GLSA-200711-29 : Samba: Execution of arbitrary code

high Nessus Plugin ID 28318

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-200711-29 (Samba: Execution of arbitrary code)

Two vulnerabilities have been reported in nmbd. Alin Rad Pop (Secunia Research) discovered a boundary checking error in the reply_netbios_packet() function which could lead to a stack-based buffer overflow (CVE-2007-5398). The Samba developers discovered a boundary error when processing GETDC logon requests also leading to a buffer overflow (CVE-2007-4572).
Impact :

To exploit the first vulnerability, a remote unauthenticated attacker could send specially crafted WINS 'Name Registration' requests followed by a WINS 'Name Query' request. This might lead to execution of arbitrary code with elevated privileges. Note that this vulnerability is exploitable only when WINS server support is enabled in Samba. The second vulnerability could be exploited by sending specially crafted 'GETDC' mailslot requests, but requires Samba to be configured as a Primary or Backup Domain Controller. It is not believed the be exploitable to execute arbitrary code.
Workaround :

To work around the first vulnerability, disable WINS support in Samba by setting 'wins support = no' in the 'global' section of your smb.conf and restart Samba.

Solution

All Samba users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=net-fs/samba-3.0.27a' The first vulnerability (CVE-2007-5398) was already fixed in Samba 3.0.26a-r2.

See Also

https://security.gentoo.org/glsa/200711-29

Plugin Details

Severity: High

ID: 28318

File Name: gentoo_GLSA-200711-29.nasl

Version: 1.14

Type: local

Published: 11/26/2007

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: High

Base Score: 9.3

Vector: CVSS2#AV:N/AC:M/Au:N/C:C/I:C/A:C

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:samba, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Patch Publication Date: 11/20/2007

Reference Information

CVE: CVE-2007-4572, CVE-2007-5398

CWE: 119

GLSA: 200711-29