cbcvebase.
CVE-2015-0240
published 2015-02-24

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 before 4.2.0rc5 performs…

PriorityP279critical10CVSS 2.0
AVNACLAuNCCICAC
EXPLOIT
EPSS
87.64%
99.7th percentile
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

98 ranges· showing 25
VendorProductVersion rangeFixed in
canonicalubuntu_linux
canonicalubuntu_linux
canonicalubuntu_linux
debiansamba< samba 2:4.1.17+dfsg-1 (bookworm)samba 2:4.1.17+dfsg-1 (bookworm)
novellsuse_linux_enterprise_desktop
novellsuse_linux_enterprise_server
novellsuse_linux_enterprise_software_development_kit
redhatenterprise_linux
redhatenterprise_linux
redhatenterprise_linux
sambasamba
sambasamba
sambasamba
sambasamba
sambasamba
sambasamba
sambasamba
sambasamba
sambasamba
sambasamba
sambasamba
sambasamba
sambasamba
sambasamba
sambasamba

Detection & IOCsextracted from sources · hover to see the quote

pathrpc_server/netlogon/srv_netlog_nt.c
path\PIPE\netlogon
port445
commandNetrServerPasswordSet (Opnum 6)
otherNT LM 0.12
otherReferentID=0 (uninitialized creds trigger)
  • Alert on SMB connections negotiating only 'NT LM 0.12' dialect followed by a netlogon pipe open — the exploit forces this dialect exclusively.
  • A Metasploit auxiliary scanner module exists for detecting vulnerable Samba targets: smb_uninit_cred.
  • The exploit sends crafted Netlogon packets with a PrimaryName ReferentID of 0 to trigger the uninitialized stack pointer free; monitor for NetrServerPasswordSet (Opnum 6) calls with a null PrimaryName pointer from unexpected sources.
  • The vulnerability is in smbd's Netlogon server (_netr_ServerPasswordSet); monitor smbd process for unexpected crashes or privilege escalation events originating from port 445.
  • ·On Samba 4.0.0 and above, the netlogon RPC server can be disabled as a workaround by adding 'rpc_server:netlogon=disabled' to the [global] section of smb.conf. This workaround is NOT available for Samba 3.6.x and earlier.
  • ·On Red Hat Enterprise Linux 7, the vulnerable code path is only reached after a memory allocation failure, making exploitation more difficult — but the system is still considered affected with Important impact.
  • ·The exploit heap-spray uses fragmented RPC requests with a fixed Samba RPC fragment size of 4280 bytes; detection rules should account for abnormally large or fragmented netlogon RPC PDUs over SMB.

CVSS provenance

nvdv2.010.0CRITICALAV:N/AC:L/Au:N/C:C/I:C/A:C
osv10.0CRITICAL
vendor_debian10.0CRITICAL
vendor_redhat10.0CRITICAL
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.