ID CVE-2007-6015
Summary Stack-based buffer overflow in the send_mailslot function in nmbd in Samba 3.0.0 through 3.0.27a, when the "domain logons" option is enabled, allows remote attackers to execute arbitrary code via a GETDC mailslot request composed of a long GETDC string following an offset username in a SAMLOGON logon request.
References
Vulnerable Configurations
  • cpe:2.3:a:samba:samba:2.0.1:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:2.0.1:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:2.0.2:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:2.0.2:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:2.0.3:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:2.0.3:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:2.0.4:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:2.0.4:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:2.0.5:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:2.0.5:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:2.0.6:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:2.0.6:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:2.0.7:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:2.0.7:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:2.0.8:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:2.0.8:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:2.0.9:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:2.0.9:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:2.0.10:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:2.0.10:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:2.2.0:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:2.2.0:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:2.2.0a:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:2.2.0a:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:2.2.1a:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:2.2.1a:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:2.2.2:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:2.2.2:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:2.2.3:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:2.2.3:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:2.2.3a:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:2.2.3a:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:2.2.4:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:2.2.4:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:2.2.5:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:2.2.5:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:2.2.6:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:2.2.6:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:2.2.7:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:2.2.7:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:2.2.7a:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:2.2.7a:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:2.2.8:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:2.2.8:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:2.2.8a:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:2.2.8a:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:2.2.9:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:2.2.9:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:2.2.11:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:2.2.11:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:2.2.12:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:2.2.12:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:3.0.0:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:3.0.0:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:3.0.1:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:3.0.1:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:3.0.2:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:3.0.2:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:3.0.2a:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:3.0.2a:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:3.0.10:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:3.0.10:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:3.0.11:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:3.0.11:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:3.0.12:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:3.0.12:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:3.0.13:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:3.0.13:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:3.0.14:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:3.0.14:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:3.0.14a:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:3.0.14a:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:3.0.20:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:3.0.20:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:3.0.20a:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:3.0.20a:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:3.0.20b:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:3.0.20b:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:3.0.21:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:3.0.21:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:3.0.21a:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:3.0.21a:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:3.0.21b:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:3.0.21b:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:3.0.21c:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:3.0.21c:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:3.0.22:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:3.0.22:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:3.0.23a:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:3.0.23a:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:3.0.23b:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:3.0.23b:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:3.0.23c:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:3.0.23c:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:3.0.23d:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:3.0.23d:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:3.0.24:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:3.0.24:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:3.0.25:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:3.0.25:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:3.0.25:pre1:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:3.0.25:pre1:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:3.0.25:pre2:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:3.0.25:pre2:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:3.0.25:rc1:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:3.0.25:rc1:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:3.0.25:rc2:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:3.0.25:rc2:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:3.0.25:rc3:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:3.0.25:rc3:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:3.0.25a:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:3.0.25a:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:3.0.25b:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:3.0.25b:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:3.0.25c:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:3.0.25c:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:3.0.26:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:3.0.26:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:3.0.26a:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:3.0.26a:*:*:*:*:*:*:*
  • cpe:2.3:a:samba:samba:3.0.27:*:*:*:*:*:*:*
    cpe:2.3:a:samba:samba:3.0.27:*:*:*:*:*:*:*
CVSS
Base: 9.3 (as of 30-10-2018 - 16:25)
Impact:
Exploitability:
CWE CWE-119
CAPEC
  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.
  • Overflow Binary Resource File
    An attack of this type exploits a buffer overflow vulnerability in the handling of binary resources. Binary resources may include music files like MP3, image files like JPEG files, and any other binary file. These attacks may pass unnoticed to the client machine through normal usage of files, such as a browser loading a seemingly innocent JPEG file. This can allow the attacker access to the execution stack and execute arbitrary code in the target process. This attack pattern is a variant of standard buffer overflow attacks using an unexpected vector (binary files) to wrap its attack and open up a new attack vector. The attacker is required to either directly serve the binary content to the victim, or place it in a locale like a MP3 sharing application, for the victim to download. The attacker then is notified upon the download or otherwise locates the vulnerability opened up by the buffer overflow.
  • Buffer Overflow via Symbolic Links
    This type of attack leverages the use of symbolic links to cause buffer overflows. An attacker can try to create or manipulate a symbolic link file such that its contents result in out of bounds data. When the target software processes the symbolic link file, it could potentially overflow internal buffers with insufficient bounds checking.
  • Overflow Variables and Tags
    This type of attack leverages the use of tags or variables from a formatted configuration data to cause buffer overflow. The attacker crafts a malicious HTML page or configuration file that includes oversized strings, thus causing an overflow.
  • Buffer Overflow via Parameter Expansion
    In this attack, the target software is given input that the attacker knows will be modified and expanded in size during processing. This attack relies on the target software failing to anticipate that the expanded data may exceed some internal limit, thereby creating a buffer overflow.
  • Buffer Overflow in an API Call
    This attack targets libraries or shared code modules which are vulnerable to buffer overflow attacks. An attacker who has access to an API may try to embed malicious code in the API function call and exploit a buffer overflow vulnerability in the function's implementation. All clients that make use of the code library thus become vulnerable by association. This has a very broad effect on security across a system, usually affecting more than one software process.
  • Buffer Overflow in Local Command-Line Utilities
    This attack targets command-line utilities available in a number of shells. An attacker can leverage a vulnerability found in a command-line utility to escalate privilege to root.
Access
VectorComplexityAuthentication
NETWORK MEDIUM NONE
Impact
ConfidentialityIntegrityAvailability
COMPLETE COMPLETE COMPLETE
cvss-vector via4 AV:N/AC:M/Au:N/C:C/I:C/A:C
oval via4
  • accepted 2013-04-29T04:14:46.631-04:00
    class vulnerability
    contributors
    • name Aharon Chernin
      organization SCAP.com, LLC
    • name Dragos Prisaca
      organization G2, Inc.
    definition_extensions
    • comment The operating system installed on the system is Red Hat Enterprise Linux 3
      oval oval:org.mitre.oval:def:11782
    • comment CentOS Linux 3.x
      oval oval:org.mitre.oval:def:16651
    • comment The operating system installed on the system is Red Hat Enterprise Linux 4
      oval oval:org.mitre.oval:def:11831
    • comment CentOS Linux 4.x
      oval oval:org.mitre.oval:def:16636
    • comment Oracle Linux 4.x
      oval oval:org.mitre.oval:def:15990
    • comment The operating system installed on the system is Red Hat Enterprise Linux 5
      oval oval:org.mitre.oval:def:11414
    • comment The operating system installed on the system is CentOS Linux 5.x
      oval oval:org.mitre.oval:def:15802
    • comment Oracle Linux 5.x
      oval oval:org.mitre.oval:def:15459
    description Stack-based buffer overflow in the send_mailslot function in nmbd in Samba 3.0.0 through 3.0.27a, when the "domain logons" option is enabled, allows remote attackers to execute arbitrary code via a GETDC mailslot request composed of a long GETDC string following an offset username in a SAMLOGON logon request.
    family unix
    id oval:org.mitre.oval:def:11572
    status accepted
    submitted 2010-07-09T03:56:16-04:00
    title Stack-based buffer overflow in the send_mailslot function in nmbd in Samba 3.0.0 through 3.0.27a, when the "domain logons" option is enabled, allows remote attackers to execute arbitrary code via a GETDC mailslot request composed of a long GETDC string following an offset username in a SAMLOGON logon request.
    version 24
  • accepted 2015-04-20T04:02:26.531-04:00
    class vulnerability
    contributors
    • name Pai Peng
      organization Hewlett-Packard
    • name Sushant Kumar Singh
      organization Hewlett-Packard
    • name Sushant Kumar Singh
      organization Hewlett-Packard
    • name Prashant Kumar
      organization Hewlett-Packard
    • name Mike Cokus
      organization The MITRE Corporation
    description Stack-based buffer overflow in the send_mailslot function in nmbd in Samba 3.0.0 through 3.0.27a, when the "domain logons" option is enabled, allows remote attackers to execute arbitrary code via a GETDC mailslot request composed of a long GETDC string following an offset username in a SAMLOGON logon request.
    family unix
    id oval:org.mitre.oval:def:5605
    status accepted
    submitted 2008-06-30T13:13:25.000-04:00
    title HP-UX running HP CIFS Server (Samba), Remote Execution of Arbitrary Code
    version 42
redhat via4
advisories
  • bugzilla
    id 407081
    title Critical Regression caused by CVE-2007-4572
    oval
    OR
    • AND
      • comment Red Hat Enterprise Linux 3 is installed
        oval oval:com.redhat.rhba:tst:20070026001
      • OR
        • AND
          • comment samba is earlier than 0:3.0.9-1.3E.14.3
            oval oval:com.redhat.rhsa:tst:20071114002
          • comment samba is signed with Red Hat master key
            oval oval:com.redhat.rhsa:tst:20070060003
        • AND
          • comment samba-client is earlier than 0:3.0.9-1.3E.14.3
            oval oval:com.redhat.rhsa:tst:20071114004
          • comment samba-client is signed with Red Hat master key
            oval oval:com.redhat.rhsa:tst:20070060007
        • AND
          • comment samba-common is earlier than 0:3.0.9-1.3E.14.3
            oval oval:com.redhat.rhsa:tst:20071114008
          • comment samba-common is signed with Red Hat master key
            oval oval:com.redhat.rhsa:tst:20070060009
        • AND
          • comment samba-swat is earlier than 0:3.0.9-1.3E.14.3
            oval oval:com.redhat.rhsa:tst:20071114006
          • comment samba-swat is signed with Red Hat master key
            oval oval:com.redhat.rhsa:tst:20070060005
    • AND
      • comment Red Hat Enterprise Linux 4 is installed
        oval oval:com.redhat.rhba:tst:20070304001
      • OR
        • AND
          • comment samba is earlier than 0:3.0.25b-1.el4_6.4
            oval oval:com.redhat.rhsa:tst:20071114011
          • comment samba is signed with Red Hat master key
            oval oval:com.redhat.rhsa:tst:20070060003
        • AND
          • comment samba-client is earlier than 0:3.0.25b-1.el4_6.4
            oval oval:com.redhat.rhsa:tst:20071114013
          • comment samba-client is signed with Red Hat master key
            oval oval:com.redhat.rhsa:tst:20070060007
        • AND
          • comment samba-common is earlier than 0:3.0.25b-1.el4_6.4
            oval oval:com.redhat.rhsa:tst:20071114014
          • comment samba-common is signed with Red Hat master key
            oval oval:com.redhat.rhsa:tst:20070060009
        • AND
          • comment samba-swat is earlier than 0:3.0.25b-1.el4_6.4
            oval oval:com.redhat.rhsa:tst:20071114012
          • comment samba-swat is signed with Red Hat master key
            oval oval:com.redhat.rhsa:tst:20070060005
    • AND
      • comment Red Hat Enterprise Linux 5 is installed
        oval oval:com.redhat.rhba:tst:20070331001
      • OR
        • AND
          • comment samba is earlier than 0:3.0.25b-1.el5_1.4
            oval oval:com.redhat.rhsa:tst:20071114016
          • comment samba is signed with Red Hat redhatrelease key
            oval oval:com.redhat.rhsa:tst:20070061003
        • AND
          • comment samba-client is earlier than 0:3.0.25b-1.el5_1.4
            oval oval:com.redhat.rhsa:tst:20071114022
          • comment samba-client is signed with Red Hat redhatrelease key
            oval oval:com.redhat.rhsa:tst:20070061009
        • AND
          • comment samba-common is earlier than 0:3.0.25b-1.el5_1.4
            oval oval:com.redhat.rhsa:tst:20071114020
          • comment samba-common is signed with Red Hat redhatrelease key
            oval oval:com.redhat.rhsa:tst:20070061005
        • AND
          • comment samba-swat is earlier than 0:3.0.25b-1.el5_1.4
            oval oval:com.redhat.rhsa:tst:20071114018
          • comment samba-swat is signed with Red Hat redhatrelease key
            oval oval:com.redhat.rhsa:tst:20070061007
    rhsa
    id RHSA-2007:1114
    released 2007-12-10
    severity Critical
    title RHSA-2007:1114: samba security and bug fix update (Critical)
  • rhsa
    id RHSA-2007:1117
rpms
  • samba-0:3.0.9-1.3E.14.3
  • samba-client-0:3.0.9-1.3E.14.3
  • samba-common-0:3.0.9-1.3E.14.3
  • samba-swat-0:3.0.9-1.3E.14.3
  • samba-0:3.0.25b-1.el4_6.4
  • samba-client-0:3.0.25b-1.el4_6.4
  • samba-common-0:3.0.25b-1.el4_6.4
  • samba-swat-0:3.0.25b-1.el4_6.4
  • samba-0:3.0.25b-1.el5_1.4
  • samba-client-0:3.0.25b-1.el5_1.4
  • samba-common-0:3.0.25b-1.el5_1.4
  • samba-swat-0:3.0.25b-1.el5_1.4
refmap via4
apple APPLE-SA-2008-02-11
bid 26791
bugtraq
  • 20071210 Secunia Research: Samba "send_mailslot()" Buffer OverflowVulnerability
  • 20071210 [SECURITY] Buffer overrun in send_mailslot()
  • 20071210 rPSA-2007-0261-1 samba samba-swat
  • 20071214 POC for samba send_mailslot()
  • 20080221 VMSA-2008-0003 Moderate: Updated aacraid driver and samba and python service console updates
cert TA08-043B
cert-vn VU#438395
confirm
debian DSA-1427
fedora
  • FEDORA-2007-4269
  • FEDORA-2007-4275
gentoo GLSA-200712-10
hp
  • HPSBUX02316
  • HPSBUX02341
  • SSRT071495
  • SSRT080075
mandriva MDKSA-2007:244
misc http://secunia.com/secunia_research/2007-99/advisory/
mlist [Security-announce] 20080221 VMSA-2008-0003 Moderate: Updated aacraid driver and samba and python service console updates
sectrack 1019065
secunia
  • 27760
  • 27894
  • 27977
  • 27993
  • 27999
  • 28003
  • 28028
  • 28029
  • 28037
  • 28067
  • 28089
  • 28891
  • 29032
  • 29341
  • 30484
  • 30835
slackware SSA:2007-344-01
sreason 3438
sunalert
  • 1019295
  • 238251
suse SUSE-SA:2007:068
ubuntu USN-556-1
vupen
  • ADV-2007-4153
  • ADV-2008-0495
  • ADV-2008-0637
  • ADV-2008-0859
  • ADV-2008-1712
  • ADV-2008-1908
xf samba-sendmailslot-bo(38965)
Last major update 30-10-2018 - 16:25
Published 13-12-2007 - 21:46
Back to Top