Samba 'TALLOC_FREE()' Function RCE Vulnerability
🗓️ 04 Mar 2015 00:00:00Reported by Copyright (C) 2015 Greenbone AGType
openvas🔗 plugins.openvas.org👁 152 Views
| Reporter | Title | Published | Views | Family All 165 |
|---|---|---|---|---|
| Samba < 3.6.2 x86 - PoC | 15 Apr 201500:00 | – | zdt | |
| Security fix for the ALT Linux 10 package samba version 4.1.17-alt1 | 23 Feb 201500:00 | – | altlinux | |
| Security fix for the ALT Linux 8 package samba-DC version 4.1.17-alt1 | 23 Feb 201500:00 | – | altlinux | |
| Security fix for the ALT Linux 6 package samba version 3.5.22-alt0.M60P.1 | 24 Feb 201500:00 | – | altlinux | |
| Security fix for the ALT Linux 8 package samba version 4.1.17-alt1 | 23 Feb 201500:00 | – | altlinux | |
| Samba 3.5.x / 3.6.x < 3.6.25 / 4.0.x < 4.0.25 / 4.1.x < 4.1.17 / 4.2.x < 4.2rc5 TALLOC_FREE() RCE | 8 May 201500:00 | – | nessus | |
| CentOS 5 : samba3x (CESA-2015:0249) | 24 Feb 201500:00 | – | nessus | |
| CentOS 6 : samba4 (CESA-2015:0250) | 24 Feb 201500:00 | – | nessus | |
| CentOS 6 : samba (CESA-2015:0251) | 24 Feb 201500:00 | – | nessus | |
| CentOS 7 : samba (CESA-2015:0252) | 24 Feb 201500:00 | – | nessus |
10
| Source | Link |
|---|---|
| securityfocus | www.securityfocus.com/bid/72711 |
# SPDX-FileCopyrightText: 2015 Greenbone AG
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only
CPE = "cpe:/a:samba:samba";
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.105231");
script_version("2025-09-17T05:39:26+0000");
script_tag(name:"last_modification", value:"2025-09-17 05:39:26 +0000 (Wed, 17 Sep 2025)");
script_tag(name:"creation_date", value:"2015-03-04 10:23:51 +0100 (Wed, 04 Mar 2015)");
script_tag(name:"cvss_base", value:"10.0");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:C/I:C/A:C");
script_cve_id("CVE-2015-0240");
script_name("Samba 'TALLOC_FREE()' Function RCE Vulnerability");
script_category(ACT_GATHER_INFO);
script_family("General");
script_copyright("Copyright (C) 2015 Greenbone AG");
script_dependencies("smb_nativelanman.nasl", "gb_samba_detect.nasl");
script_mandatory_keys("samba/smb_or_ssh/detected");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/72711");
script_tag(name:"impact", value:"An attacker can exploit this issue to execute arbitrary code with root
privileges. Failed exploit attempts will cause a denial-of-service condition");
script_tag(name:"vuldetect", value:"Checks if a vulnerable version is present on the target host.");
script_tag(name:"insight", value:"The Netlogon server implementation in smbd performs a free operation on an
uninitialized stack pointer, which allows remote attackers to execute arbitrary code via crafted Netlogon packets
that use the ServerPasswordSet RPC API, as demonstrated by packets reaching the _netr_ServerPasswordSet function
in rpc_server/netlogon/srv_netlog_nt.c.");
script_tag(name:"solution", value:"Updates are available. Please see the references or vendor advisory for more information.");
script_tag(name:"summary", value:"Samba is prone to a remote code execution (RCE) vulnerability in
the 'TALLOC_FREE()' function.");
script_tag(name:"affected", value:"Samba 3.5.x and 3.6.x before 3.6.25,
4.0.x before 4.0.25,
4.1.x before 4.1.17,
and 4.2.x before 4.2.0rc5");
script_tag(name:"solution_type", value:"VendorFix");
script_tag(name:"qod_type", value:"remote_banner_unreliable");
exit(0);
}
include("version_func.inc");
include("host_details.inc");
if( isnull( port = get_app_port( cpe:CPE ) ) )
exit( 0 );
if( ! infos = get_app_version_and_location( cpe:CPE, port:port, exit_no_version:TRUE ) )
exit( 0 );
vers = infos["version"];
loc = infos["location"];
if( version_is_less( version:vers, test_version:"3.6.25" ) ||
version_in_range( version:vers, test_version:"4.0", test_version2:"4.0.24" ) ||
version_in_range( version:vers, test_version:"4.1", test_version2:"4.1.16" ) ||
version_in_range( version:vers, test_version:"4.2", test_version2:"4.2.0rc4" )
) {
report = report_fixed_ver( installed_version:vers, fixed_version:"3.6.25 or 4.0.25 or 4.1.17, 4.2.0rc5, or later", install_path:loc );
security_message( port:port, data:report );
exit( 0 );
}
exit( 99 );
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
17 Sep 2025 00:00Current
8.2High risk
Vulners AI Score8.2
CVSS 210
EPSS0.87636