Red Hat has released additional security advisories and updated software to address the Samba Marshaling Code remote code execution vulnerability.
Description
Samba contains a vulnerability that could allow an unauthenticated, remote attacker to execute arbitrary code on an affected system.
The vulnerability is due to improper handling of remote procedure call (RPC) requests by the affected software. An unauthenticated, remote attacker could exploit the vulnerability by sending a malicious request to the targeted system. If successful, the attacker could execute arbitrary code with root-level privileges.
Proof-of-concept code that demonstrates an exploit of this vulnerability is publicly available.
Samba has confirmed this vulnerability and released updated software.
Warning Indicators
Samba versions 3.6.3 and prior are vulnerable.
IntelliShield Analysis
If an exploit is successful, the attacker could execute arbitrary code on the system with elevated privileges, possibly resulting in a complete system compromise.
The vendor report indicates that authentication is not required to exploit the vulnerability. However, to be able to send the RPC requests to the system, the attacker would need access to trusted, internal networks. This requirement may limit the likelihood of a successful exploit.
Vendor Announcements
Samba has released a security advisory at the following link: CVE-2012-1182
Apple has released a security advisory at the following link: HT5281
Research In Motion has released a security advisory at the following link: KB32189
Impact
An unauthenticated, remote attacker could exploit the vulnerability to execute arbitrary code on the system with root-level privileges. A successful attack could cause a complete system compromise.
Technical Information
The vulnerability exists because the affected software improperly handles the NDR PULL DFS INFO3 user-supplied request. Similarly, the affected software also improperly handles requests such as NDR PULL LSA TrustDomainInfoControllers, NDR PULL SVCCTL StartServiceW, NDR PULL DFS EnumArray1, GetAliasMembership, SetInfoPolicy, lsa_LookupNames, ndr_ValidatePassword, or ReportEventW.
An unauthenticated, remote attacker could exploit this vulnerability by sending specially crafted requests to the vulnerable software. While processing these requests, the software uses a field for memory allocation and another field to write data to that allocation. However, the software fails to validate both fields, which could lead to a buffer overflow, corrupting memory. The attacker could take advantage of the buffer overflow to execute arbitrary code on the targeted system with root level privileges.
Safeguards
Administrators are advised to apply the appropriate updates.
Administrators are advised to implement an intrusion prevention system (IPS) or intrusion detection system (IDS) to help detect and prevent attacks that attempt to exploit this vulnerability.
Administrators are advised to monitor affected systems.
Patches/Software
Samba has released patches at the following links:
Version 12, January 28, 2013, 8:22 AM: Research In Motion has released a security advisory and updated software to address the Samba Marshaling Code Remote Code Execution vulnerability.
Version 11, December 14, 2012, 7:37 AM: MontaVista Software has released a security alert and updated software to address the Samba marshaling code remote code execution vulnerability.
Version 10, October 17, 2012, 6:52 AM: Oracle has re-released a security notification and patches to address the Samba marshaling code remote code execution vulnerability.
Version 9, September 28, 2012, 10:14 AM: Functional code that demonstrates an exploit in the Samba marshaling code remote code execution vulnerability is publicly available.
Version 8, September 26, 2012, 2:59 PM: Proof-of-concept code that demonstrates an exploit in the Samba marshaling code remote code execution vulnerability is publicly available.
Version 7, June 14, 2012, 4:49 PM: HP has released an additional security bulletin and updated software to address the Samba marshaling code remote code execution vulnerability.
Version 6, June 11, 2012, 2:57 PM: HP has released a security bulletin and updated software to address the Samba marshaling code remote code execution vulnerability.
Version 5, May 11, 2012, 8:37 AM: Oracle has released a security advisory and patches to address the Samba marshaling code remote code execution vulnerability.
Version 4, May 10, 2012, 1:21 PM: Apple has released a security advisory and updated software to address the Samba marshaling code remote code execution vulnerability.
Version 3, April 19, 2012, 12:43 PM: Additional technical information to describe the Samba marshaling code remote code execution vulnerability is available.
Version 2, April 13, 2012, 1:36 PM: Red Hat has released an additional security advisory and updated packages to address the Samba marshaling code remote code execution vulnerability.
Version 1, April 11, 2012, 11:26 AM: Samba contains a vulnerability that could allow an unauthenticated, remote attacker to execute arbitrary code on an affected system. Updates are available.
The security vulnerability applies to the following combinations of products.
Primary Products:
GNU Public License
Samba
3.0.0 Base | 3.0.1 Base | 3.0.10 Base | 3.0.11 Base | 3.0.12 Base | 3.0.13 Base | 3.0.14 Base, a | 3.0.2 Base | 3.0.20 Base, a, b | 3.0.21 Base, a, b, c | 3.0.22 Base | 3.0.23 Base, a, b, c, d | 3.0.24 Base | 3.0.25 Base, a, b, c | 3.0.26 Base | 3.0.26a Base | 3.0.27 Base | 3.0.27a Base | 3.0.28 Base, a | 3.0.29 Base | 3.0.3 Base | 3.0.30 Base | 3.0.31 Base | 3.0.32 Base | 3.0.33 Base | 3.0.34 Base | 3.0.35 Base | 3.0.36 Base | 3.0.37 Base | 3.0.4 Base | 3.0.5 Base | 3.0.6 Base | 3.0.7 Base | 3.0.8 Base | 3.0.9 Base | 3.2.0 Base | 3.2.1 Base | 3.2.10 Base | 3.2.11 Base | 3.2.12 Base | 3.2.13 Base | 3.2.14 Base | 3.2.15 Base | 3.2.2 Base | 3.2.3 Base | 3.2.4 Base | 3.2.5 Base | 3.2.6 Base | 3.2.7 Base | 3.2.8 Base | 3.2.9 Base | 3.3 .0, .1, .10, .11, .12, .13, .14, .15, .16, .2, .3, .4, .5, .6, .7, .8, .9 | 3.4 .0, .1, .10, .11, .12, .13, .14, .15, .2, .3, .4, .5, .6, .7, .8, .9 | 3.5 .0, .1, .10, .11, .12, .13, .2, .3, .4, .5, .6, .7, .8, .9 | 3.6 .0, .1, .2, .3
Associated Products:
Apple
Mac OS X
10.6.8 Base | 10.7 Base | 10.7.1 Base | 10.7.2 Base | 10.7.3 Base
Apple
Mac OS X Server
10.6.8 Base | 10.7 Base | 10.7.1 Base | 10.7.2 Base | 10.7.3 Base
Alerts and bulletins on the Cisco Security Intelligence Operations Portal are highlighted by analysts in the
Cisco Threat Operations Center and represent a subset of the comprehensive content that is available through Cisco Security IntelliShield Alert Manager Service.
This customizable threat and vulnerability alert service provides security staff with access to timely, accurate, and credible information about threats and vulnerabilities that may affect their environment. Cisco is pleased to offer a free trial of the service.
To register for full access, please visit the IntelliShield trial registration page.
LEGAL DISCLAIMER The urgency and severity ratings of this alert are not tailored to individual users; users may value alerts differently based upon their network configurations and circumstances. THE ALERT, AND INFORMATION CONTAINED THEREIN, ARE PROVIDED ON AN "AS IS" BASIS AND DO NOT IMPLY ANY KIND OF GUARANTEE OR WARRANTY, INCLUDING THE WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. YOUR USE OF THE ALERT, AND INFORMATION CONTAINED THEREIN, OR MATERIALS LINKED FROM THE ALERT, IS AT YOUR OWN RISK. INFORMATION IN THIS ALERT AND ANY RELATED COMMUNICATIONS IS BASED ON OUR KNOWLEDGE AT THE TIME OF PUBLICATION AND IS SUBJECT TO CHANGE WITHOUT NOTICE. CISCO RESERVES THE RIGHT TO CHANGE OR UPDATE ALERTS AT ANY TIME.