Quantum Secular Labs / Blog / Advisories
CVE-2015-0240: Samba: Remote code execution
CVE-2015-0240 has a CVSS v2 base score of 10.0 (the maximum on that scale) and affects Samba, along with 5 other products in NVD’s configuration data. Per its scoring, it can be exploited over the network, without authentication. The scored impact on confidentiality, integrity and availability is the highest available.
Vulnerability description
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.
Severity breakdown
CVSS v2.0 10.0: AV:N/AC:L/Au:N/C:C/I:C/A:C
- Access vector: Network. Exploitable remotely over the network.
- Access complexity: Low. No special conditions are required.
- Authentication: None. No authentication is needed.
- Confidentiality impact: Complete. Total information disclosure.
- Integrity impact: Complete. Total loss of integrity.
- Availability impact: Complete. Total shutdown of the component.
Affected products
- Samba: 3.5.0; 3.5.1; 3.5.2; 3.5.3; 3.5.4; 3.5.5; 3.5.6; 3.5.7; 3.5.8; 3.5.9; 3.5.10; 3.5.11
- Red Hat Enterprise Linux: 5; 6.0; 7.0
- Novell Suse Linux Enterprise Desktop: 12
- Novell Suse Linux Enterprise Server: 12
- Novell Suse Linux Enterprise Software Development Kit: 12
- Canonical Ubuntu Linux: 12.04; 14.04; 14.10
References
- https://www.samba.org/samba/security/CVE-2015-0240
- https://securityblog.redhat.com/2015/02/23/samba-vulnerability-cve-2015-0240/
- http://advisories.mageia.org/MGASA-2015-0084.html
- http://lists.opensuse.org/opensuse-security-announce/2015-02/msg00028.html
- http://lists.opensuse.org/opensuse-security-announce/2015-02/msg00030.html
- http://lists.opensuse.org/opensuse-security-announce/2015-02/msg00031.html
- http://lists.opensuse.org/opensuse-security-announce/2015-02/msg00035.html
- http://lists.opensuse.org/opensuse-security-announce/2016-04/msg00042.html
- http://lists.opensuse.org/opensuse-security-announce/2016-04/msg00047.html
- http://lists.opensuse.org/opensuse-security-announce/2016-04/msg00048.html
- http://marc.info/?l=bugtraq&m=142722696102151&w=2
- http://marc.info/?l=bugtraq&m=143039217203031&w=2
- http://rhn.redhat.com/errata/RHSA-2015-0249.html
- http://rhn.redhat.com/errata/RHSA-2015-0250.html