Input validation error in Samba - CVE-2015-0240

 

Input validation error in Samba - CVE-2015-0240

Published: February 24, 2015 / Updated: November 20, 2020


Vulnerability identifier: #VU33830
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2015-0240
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: The vulnerability is being exploited in the wild

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to execute arbitrary code.

The Netlogon server implementation in smbd in 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 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.


Affected software

Samba
HP Systems Insight Manager
samba (Alpine package)
samba
Server Automation
HP-UX Common Internet File System (CIFS)
SUSE Linux
Slackware Linux
Fedora

How to mitigate CVE-2015-0240

Install update from vendor's website.

Samba - addressed in versions 3.6.25, 4.0.25, 4.1.17
samba (Alpine package) - update to 3.6.25-r0
HP-UX Common Internet File System (CIFS) - addressed in versions 03.02.04, 03.02.05
samba - update to 4.1.17-1.fc21

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins