Samba 3.6.24/4.0.24/4.1.16/4.2.0 smbd _netr_ServerPasswordSet code
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 5.9 | $0-$5k | 0.00 |
Summary
A vulnerability, which was classified as critical, was found in Samba 3.6.24/4.0.24/4.1.16/4.2.0. This vulnerability affects the function _netr_ServerPasswordSet of the component smbd. The manipulation results in an unknown weakness.
This vulnerability is cataloged as CVE-2015-0240. Furthermore, there is an exploit available.
It is advisable to implement a patch to correct this issue.
Details
A vulnerability, which was classified as critical, was found in Samba 3.6.24/4.0.24/4.1.16/4.2.0 (File Transfer Software). Affected is the function _netr_ServerPasswordSet of the component smbd. The manipulation with an unknown input leads to a code vulnerability. CWE is classifying the issue as CWE-17. This is going to have an impact on confidentiality, and integrity.
The weakness was shared 02/23/2015 by Richard van Eeden with Microsoft Vulnerability Research as CVE-2015-0240.html as confirmed advisory (Website). The advisory is shared for download at samba.org. This vulnerability is traded as CVE-2015-0240 since 11/18/2014. It is possible to launch the attack remotely. The exploitation doesn't require any form of authentication. Technical details and a public exploit are known. The advisory points out:
A malicious client could send packets that may set up the stack in such a way that the freeing of memory in a subsequent anonymous netlogon packet could allow execution of arbitrary code. This code would execute with root privileges.
A public exploit has been developed by sleepya in Ruby and been published 2 months after the advisory. The exploit is shared for download at securityfocus.com. It is declared as highly functional. The vulnerability scanner Nessus provides a plugin with the ID 81479 (Scientific Linux Security Update : samba on SL7.x x86_64), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Scientific Linux Local Security Checks. The commercial vulnerability scanner Qualys is able to test this issue with plugin 168811 (OpenSuSE Security Update for samba (openSUSE-SU-2016:1064-1)).
Upgrading to version 3.6.25, 4.0.25, 4.1.17 or 4.2.0rc5 eliminates this vulnerability. Applying a patch is able to eliminate this problem. It is possible to mitigate the problem by applying the configuration setting rpc_server:netlogon=disabled. The best possible mitigation is suggested to be patching the affected component. Furthermore it is possible to detect and prevent this kind of attack with TippingPoint and the filter 19644.
The vulnerability is also documented in the databases at X-Force (101071), Exploit-DB (36741), Tenable (81479), SecurityFocus (BID 72711†) and SecurityTracker (ID 1031783†). Further details are available at isc.sans.edu. The entries VDB-68821, VDB-79858, VDB-79859 and VDB-79860 are related to this item. VulDB is the best source for vulnerability data and more expert information about this specific topic.
Product
Type
Name
Version
License
Website
- Product: https://www.samba.org/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 6.5VulDB Meta Temp Score: 5.9
VulDB Base Score: 6.5
VulDB Temp Score: 5.9
VulDB Vector: 🔍
VulDB Reliability: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: CodeCWE: CWE-17
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Access: Public
Status: Highly functional
Author: sleepya
Programming Language: 🔍
Download: 🔍
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 81479
Nessus Name: Scientific Linux Security Update : samba on SL7.x x86_64
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Port: 🔍
OpenVAS ID: 703171
OpenVAS Name: Debian Security Advisory DSA 3171-1 (samba - security update)
OpenVAS File: 🔍
OpenVAS Family: 🔍
Qualys ID: 🔍
Qualys Name: 🔍
MetaSploit ID: smb_uninit_cred.rb
MetaSploit Name: Samba _netr_ServerPasswordSet Uninitialized Credential State
MetaSploit File: 🔍
Exploit-DB: 🔍
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: PatchStatus: 🔍
0-Day Time: 🔍
Exploit Delay Time: 🔍
Upgrade: Samba 3.6.25/4.0.25/4.1.17/4.2.0rc5
Config: rpc_server:netlogon=disabled
TippingPoint: 🔍
McAfee IPS: 🔍
McAfee IPS Version: 🔍
Fortigate IPS: 🔍
Timeline
11/18/2014 🔍02/23/2015 🔍
02/23/2015 🔍
02/23/2015 🔍
02/23/2015 🔍
02/23/2015 🔍
02/24/2015 🔍
02/24/2015 🔍
02/24/2015 🔍
04/13/2015 🔍
04/13/2015 🔍
05/09/2025 🔍
Sources
Product: samba.orgAdvisory: CVE-2015-0240.html
Researcher: Richard van Eeden
Organization: Microsoft Vulnerability Research
Status: Confirmed
Confirmation: 🔍
CVE: CVE-2015-0240 (🔍)
GCVE (CVE): GCVE-0-2015-0240
GCVE (VulDB): GCVE-100-69204
OVAL: 🔍
X-Force: 101071 - Samba smbd file server code execution
SecurityFocus: 72711 - Samba 'TALLOC_FREE()' Function Remote Code Execution Vulnerability
SecurityTracker: 1031783 - Samba smbd Memory Free Error Lets Remote Users Execute Arbitrary Code with Root Privileges
Vulnerability Center: 48724 - Samba Remote Code Execution Iin Smbd File Server Daemon, Critical
scip Labs: https://www.scip.ch/en/?labs.20161013
Misc.: 🔍
See also: 🔍
Entry
Created: 02/24/2015 09:21Updated: 05/09/2025 22:46
Changes: 02/24/2015 09:21 (92), 06/20/2017 08:51 (14), 03/10/2022 15:31 (3), 03/10/2022 15:38 (1), 12/03/2024 00:03 (19), 05/09/2025 22:46 (1)
Complete: 🔍
Cache ID: 216:75B:103
No comments yet. Languages: en.
Please log in to comment.