ID CVE-2012-0870
Summary Heap-based buffer overflow in process.c in smbd in Samba 3.0, as used in the file-sharing service on the BlackBerry PlayBook tablet before 2.0.0.7971 and other products, allows remote attackers to cause a denial of service (daemon crash) or possibly execute arbitrary code via a Batched (aka AndX) request that triggers infinite recursion.
References
Vulnerable Configurations
  • Samba 3.0.0
    cpe:2.3:a:samba:samba:3.0.0
  • Research In Motion Blackberry Playbook Tablet (initial release)
    cpe:2.3:h:rim:blackberry_playbook_tablet
  • Research In Motion Blackberry Playbook Tablet OS 1.0
    cpe:2.3:o:rim:blackberry_playbook_os:1.0
  • Research In Motion Blackberry Playbook Tablet OS 1.0.3
    cpe:2.3:o:rim:blackberry_playbook_os:1.0.3
  • Research In Motion Blackberry Playbook Tablet OS 1.0.5
    cpe:2.3:o:rim:blackberry_playbook_os:1.0.5
  • Research In Motion Blackberry Playbook Tablet OS 1.0.6
    cpe:2.3:o:rim:blackberry_playbook_os:1.0.6
  • Research In Motion Blackberry Playbook Tablet OS 1.0.7
    cpe:2.3:o:rim:blackberry_playbook_os:1.0.7
  • Research In Motion Blackberry Playbook Tablet OS 1.0.7.2942
    cpe:2.3:o:rim:blackberry_playbook_os:1.0.7.2942
  • Research In Motion Blackberry Playbook Tablet OS 1.0.7.3312
    cpe:2.3:o:rim:blackberry_playbook_os:1.0.7.3312
  • Research In Motion Blackberry Playbook Tablet OS 1.0.8.4985
    cpe:2.3:o:rim:blackberry_playbook_os:1.0.8.4985
  • Research In Motion Blackberry Playbook Tablet OS 1.0.8.6067
    cpe:2.3:o:rim:blackberry_playbook_os:1.0.8.6067
  • Research In Motion Blackberry Playbook Tablet OS 2.0
    cpe:2.3:o:rim:blackberry_playbook_os:2.0
CVSS
Base: 7.9 (as of 23-02-2012 - 10:09)
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
ADJACENT_NETWORK MEDIUM NONE
Impact
ConfidentialityIntegrityAvailability
COMPLETE COMPLETE COMPLETE
nessus via4
  • NASL family CentOS Local Security Checks
    NASL id CENTOS_RHSA-2012-0332.NASL
    description Updated samba packages that fix one security issue are now available for Red Hat Enterprise Linux 4 and 5, and Red Hat Enterprise Linux 5.3 Long Life, and 5.6 Extended Update Support. The Red Hat Security Response Team has rated this update as having critical security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. Samba is a suite of programs used by machines to share files, printers, and other information. An input validation flaw was found in the way Samba handled Any Batched (AndX) requests. A remote, unauthenticated attacker could send a specially crafted SMB packet to the Samba server, possibly resulting in arbitrary code execution with the privileges of the Samba server (root). (CVE-2012-0870) Red Hat would like to thank the Samba team for reporting this issue. Upstream acknowledges Andy Davis of NGS Secure as the original reporter. Users of Samba are advised to upgrade to these updated packages, which contain a backported patch to resolve this issue. After installing this update, the smb service will be restarted automatically.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 58109
    published 2012-02-24
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=58109
    title CentOS 4 : samba (CESA-2012:0332)
  • NASL family Scientific Linux Local Security Checks
    NASL id SL_20120223_SAMBA_ON_SL4_X.NASL
    description Samba is a suite of programs used by machines to share files, printers, and other information. An input validation flaw was found in the way Samba handled Any Batched (AndX) requests. A remote, unauthenticated attacker could send a specially crafted SMB packet to the Samba server, possibly resulting in arbitrary code execution with the privileges of the Samba server (root). (CVE-2012-0870) Users of Samba are advised to upgrade to these updated packages, which contain a backported patch to resolve this issue. After installing this update, the smb service will be restarted automatically.
    last seen 2019-02-21
    modified 2018-12-31
    plugin id 61275
    published 2012-08-01
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=61275
    title Scientific Linux Security Update : samba on SL4.x i386/x86_64
  • NASL family SuSE Local Security Checks
    NASL id SUSE_11_LDAPSMB-120415.NASL
    description The following issues have been fixed in Samba : - PIDL based autogenerated code uses client supplied size values which allows attackers to write beyond the allocated array size. (CVE-2012-1182) - Ensure AndX offsets are increasing strictly monotonically in pre-3.4 versions. (CVE-2012-0870) - Fix memory leak in parent smbd on connection Also the following non-security bugs have been fixed :. (CVE-2012-0817) - s3-winbindd: Only use SamLogonEx when we can get unencrypted session keys; (bso#8599). - Correctly handle DENY ACEs when privileges apply; (bso#8797). - s3:smb2_server: fix a logic error, we should sign non guest sessions; (bso8749). - Allow vfs_aio_pthread to build as a static module; (bso#8723). - s3:dbwrap_ctdb: return the number of records in db_ctdb_traverse() for persistent dbs; (#bso8527). - s3: segfault in dom_sid_compare(bso#8567). - Honor SeTakeOwnershiPrivilege when client asks for SEC_STD_WRITE_OWNER; (bso#8768). - s3-winbindd: Close netlogon connection if the status returned by the NetrSamLogonEx call is timeout in the pam_auth_crap path; (bso#8771). - s3-winbindd: set the can_do_validation6 also for trusted domain; (bso#8599). - Fix problem when calculating the share security mask, take priviliges into account for the connecting user; (bso#8784). - Fix crash in dcerpc_lsa_lookup_sids_noalloc() with over 1000 groups; (bso#8807);. (bnc#751454) - Add SERVERID_UNIQUE_ID_NOT_TO_VERIFY; (bso#8760);. (bnc#741854) - s3-printing: fix crash in printer_list_set_printer(); (bso#8762);. (bnc#746825) - s3:winbindd fix a return code check; (bso#8406). - s3: Add rmdir operation to streams_depot; (bso#8733). - s3:smbd:smb2: fix an assignment-instead-of-check bug conn_snum_used(); (bso#8738). - s3:auth: fill the sids array of the info3 in wbcAuthUserInfo_to_netr_SamInfo3(); (bso#8739). - Do not map POSIX execute permission to Windows FILE_READ_ATTRIBUTES; (bso#8631);. (bnc#732572) - Remove all precompiled idl output to ensure any pidl changes take effect;. (bnc#757080)
    last seen 2019-02-21
    modified 2013-10-25
    plugin id 58767
    published 2012-04-17
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=58767
    title SuSE 11.2 Security Update : Samba (SAT Patch Number 6145)
  • NASL family Ubuntu Local Security Checks
    NASL id UBUNTU_USN-1374-1.NASL
    description Andy Davis discovered that Samba incorrectly handled certain AndX offsets. A remote attacker could send a specially crafted request to the server and cause a denial of service, or possibly execute arbitrary code. Note that Tenable Network Security has extracted the preceding description block directly from the Ubuntu security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2018-12-01
    plugin id 58131
    published 2012-02-27
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=58131
    title Ubuntu 8.04 LTS : samba vulnerability (USN-1374-1)
  • NASL family Gentoo Local Security Checks
    NASL id GENTOO_GLSA-201206-22.NASL
    description The remote host is affected by the vulnerability described in GLSA-201206-22 (Samba: Multiple vulnerabilities) Multiple vulnerabilities have been discovered in Samba. Please review the CVE identifiers referenced below for details. Impact : A remote attacker could possibly execute arbitrary code with root privileges, cause a Denial of Service condition, take ownership of shared files, or bypass file permissions. Furthermore, a local attacker may be able to cause a Denial of Service condition or obtain sensitive information in a Samba credentials file. Workaround : There is no known workaround at this time.
    last seen 2019-02-21
    modified 2018-07-11
    plugin id 59675
    published 2012-06-25
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=59675
    title GLSA-201206-22 : Samba: Multiple vulnerabilities
  • NASL family SuSE Local Security Checks
    NASL id SUSE_CIFS-MOUNT-7985.NASL
    description This update of Samba fixes a heap-based buffer overflow that could be exploited by remote, unauthenticated attackers to crash the smbd daemon or potentially execute arbitrary code via specially crafted SMB AndX request packets. (CVE-2012-0870) Also fixed two non security bugs : - Fix to handle domain join using NetBIOS name;. (bnc#633729) - Fixed the DFS referral response for msdfs root;. (bnc#703655)
    last seen 2019-02-21
    modified 2012-05-17
    plugin id 58299
    published 2012-03-09
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=58299
    title SuSE 10 Security Update : Samba (ZYPP Patch Number 7985)
  • NASL family MacOS X Local Security Checks
    NASL id MACOSX_SECUPD2012-002.NASL
    description The remote host is running a version of Mac OS X 10.6 that does not have Security Update 2012-002 applied. This update contains multiple security-related fixes for the following components : - curl - Directory Service - ImageIO - libarchive - libsecurity - libxml - Quartz Composer - QuickTime - Ruby - Samba - Security Framework
    last seen 2019-02-21
    modified 2018-07-14
    plugin id 59067
    published 2012-05-10
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=59067
    title Mac OS X Multiple Vulnerabilities (Security Update 2012-002) (BEAST)
  • NASL family Red Hat Local Security Checks
    NASL id REDHAT-RHSA-2012-0332.NASL
    description Updated samba packages that fix one security issue are now available for Red Hat Enterprise Linux 4 and 5, and Red Hat Enterprise Linux 5.3 Long Life, and 5.6 Extended Update Support. The Red Hat Security Response Team has rated this update as having critical security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. Samba is a suite of programs used by machines to share files, printers, and other information. An input validation flaw was found in the way Samba handled Any Batched (AndX) requests. A remote, unauthenticated attacker could send a specially crafted SMB packet to the Samba server, possibly resulting in arbitrary code execution with the privileges of the Samba server (root). (CVE-2012-0870) Red Hat would like to thank the Samba team for reporting this issue. Upstream acknowledges Andy Davis of NGS Secure as the original reporter. Users of Samba are advised to upgrade to these updated packages, which contain a backported patch to resolve this issue. After installing this update, the smb service will be restarted automatically.
    last seen 2019-02-21
    modified 2018-11-26
    plugin id 58111
    published 2012-02-24
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=58111
    title RHEL 4 / 5 : samba (RHSA-2012:0332)
  • NASL family Scientific Linux Local Security Checks
    NASL id SL_20120223_SAMBA_ON_SL5_X.NASL
    description Samba is a suite of programs used by machines to share files, printers, and other information. An input validation flaw was found in the way Samba handled Any Batched (AndX) requests. A remote, unauthenticated attacker could send a specially crafted SMB packet to the Samba server, possibly resulting in arbitrary code execution with the privileges of the Samba server (root). (CVE-2012-0870) Users of Samba are advised to upgrade to these updated packages, which contain a backported patch to resolve this issue. After installing this update, the smb service will be restarted automatically.
    last seen 2019-02-21
    modified 2018-12-31
    plugin id 61276
    published 2012-08-01
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=61276
    title Scientific Linux Security Update : samba on SL5.x i386/x86_64
  • NASL family SuSE Local Security Checks
    NASL id OPENSUSE-2012-223.NASL
    description - Add the ldapsmb sources as else patches against them have no chance to apply. - Samba pre-3.6.4 are affected by a vulnerability that allows remote code exe- cution as the 'root' user; PIDL based autogenerated code allows overwriting beyond of allocated array; CVE-2012-1182; (bso#8815); (bnc#752797). - s3-winbindd: Only use SamLogonEx when we can get unencrypted session keys; (bso#8599). - Correctly handle DENY ACEs when privileges apply; (bso#8797). - s3:smb2_server: fix a logic error, we should sign non guest sessions; (bso8749). - Allow vfs_aio_pthread to build as a static module; (bso#8723). - s3:dbwrap_ctdb: return the number of records in db_ctdb_traverse() for persistent dbs; (#bso8527). - s3: segfault in dom_sid_compare(bso#8567). - Honor SeTakeOwnershiPrivilege when client asks for SEC_STD_WRITE_OWNER; (bso#8768). - s3-winbindd: Close netlogon connection if the status returned by the NetrSamLogonEx call is timeout in the pam_auth_crap path; (bso#8771). - s3-winbindd: set the can_do_validation6 also for trusted domain; (bso#8599). - Fix problem when calculating the share security mask, take priviliges into account for the connecting user; (bso#8784). - Fix crash in dcerpc_lsa_lookup_sids_noalloc() with over 1000 groups; (bso#8807); (bnc#751454). - Remove obsoleted Authors lines from spec file for post-11.2 systems. - Make ldapsmb build with Fedora 15 and 16; (bso#8783). - BuildRequire libuuid-devel for post-11.0 and other systems. - Define missing python macros for non SUSE systems. - PreReq to fillup_prereq and insserv_prereq only on SUSE systems. - Always use cifstab instead of smbfstab on non SUSE systems. - Ensure AndX offsets are increasing strictly monotonically in pre-3.4 versions; CVE-2012-0870; (bnc#747934). - Add SERVERID_UNIQUE_ID_NOT_TO_VERIFY; (bso#8760); (bnc#741854). - s3-printing: fix crash in printer_list_set_printer(); (bso#8762); (bnc#746825).
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 74600
    published 2014-06-13
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=74600
    title openSUSE Security Update : samba (openSUSE-SU-2012:0507-1)
  • NASL family Oracle Linux Local Security Checks
    NASL id ORACLELINUX_ELSA-2012-0332.NASL
    description From Red Hat Security Advisory 2012:0332 : Updated samba packages that fix one security issue are now available for Red Hat Enterprise Linux 4 and 5, and Red Hat Enterprise Linux 5.3 Long Life, and 5.6 Extended Update Support. The Red Hat Security Response Team has rated this update as having critical security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. Samba is a suite of programs used by machines to share files, printers, and other information. An input validation flaw was found in the way Samba handled Any Batched (AndX) requests. A remote, unauthenticated attacker could send a specially crafted SMB packet to the Samba server, possibly resulting in arbitrary code execution with the privileges of the Samba server (root). (CVE-2012-0870) Red Hat would like to thank the Samba team for reporting this issue. Upstream acknowledges Andy Davis of NGS Secure as the original reporter. Users of Samba are advised to upgrade to these updated packages, which contain a backported patch to resolve this issue. After installing this update, the smb service will be restarted automatically.
    last seen 2019-02-21
    modified 2018-07-18
    plugin id 68490
    published 2013-07-12
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=68490
    title Oracle Linux 4 / 5 : samba (ELSA-2012-0332)
  • NASL family Misc.
    NASL id SAMBA_3_4_0.NASL
    description The version of Samba running on the remote host is prior to 3.4.0. It is, therefore, affected by a remote code execution vulnerability in process.c due to a heap-based buffer overflow. An unauthenticated, remote attacker can exploit this to bypass authentication and execute arbitrary commands via Batched / AndX request. Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.
    last seen 2019-02-21
    modified 2019-02-08
    plugin id 122058
    published 2019-02-08
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=122058
    title Samba < 3.4.0 Remote Code Execution Vulnerability
redhat via4
advisories
bugzilla
id 795509
title ) request processing infinite recursion and heap-based buffer overflow
oval
OR
  • 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.33-0.35.el4
          oval oval:com.redhat.rhsa:tst:20120332002
        • 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.33-0.35.el4
          oval oval:com.redhat.rhsa:tst:20120332008
        • 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.33-0.35.el4
          oval oval:com.redhat.rhsa:tst:20120332004
        • 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.33-0.35.el4
          oval oval:com.redhat.rhsa:tst:20120332006
        • 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 libsmbclient is earlier than 0:3.0.33-3.38.el5_8
          oval oval:com.redhat.rhsa:tst:20120332013
        • comment libsmbclient is signed with Red Hat redhatrelease key
          oval oval:com.redhat.rhsa:tst:20100488023
      • AND
        • comment libsmbclient-devel is earlier than 0:3.0.33-3.38.el5_8
          oval oval:com.redhat.rhsa:tst:20120332019
        • comment libsmbclient-devel is signed with Red Hat redhatrelease key
          oval oval:com.redhat.rhsa:tst:20100488025
      • AND
        • comment samba is earlier than 0:3.0.33-3.38.el5_8
          oval oval:com.redhat.rhsa:tst:20120332011
        • 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.33-3.38.el5_8
          oval oval:com.redhat.rhsa:tst:20120332017
        • 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.33-3.38.el5_8
          oval oval:com.redhat.rhsa:tst:20120332015
        • 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.33-3.38.el5_8
          oval oval:com.redhat.rhsa:tst:20120332021
        • comment samba-swat is signed with Red Hat redhatrelease key
          oval oval:com.redhat.rhsa:tst:20070061007
rhsa
id RHSA-2012:0332
released 2012-02-23
severity Critical
title RHSA-2012:0332: samba security update (Critical)
rpms
  • samba-0:3.0.33-0.35.el4
  • samba-client-0:3.0.33-0.35.el4
  • samba-common-0:3.0.33-0.35.el4
  • samba-swat-0:3.0.33-0.35.el4
  • libsmbclient-0:3.0.33-3.38.el5_8
  • libsmbclient-devel-0:3.0.33-3.38.el5_8
  • samba-0:3.0.33-3.38.el5_8
  • samba-client-0:3.0.33-3.38.el5_8
  • samba-common-0:3.0.33-3.38.el5_8
  • samba-swat-0:3.0.33-3.38.el5_8
refmap via4
apple APPLE-SA-2012-05-09-1
confirm
secunia
  • 48116
  • 48186
  • 48844
  • 48879
suse
  • SUSE-SU-2012:0337
  • SUSE-SU-2012:0338
  • SUSE-SU-2012:0502
  • SUSE-SU-2012:0515
ubuntu USN-1374-1
xf blackberry-playbook-samba-code-execution(73361)
Last major update 18-12-2012 - 23:49
Published 23-02-2012 - 07:33
Last modified 30-10-2018 - 12:25
Back to Top