Samba SMB/CIFS Packet Assembling Buffer Overflow Vulnerability



Date Discovered

March 15, 2003


Samba is prone to a buffer-overflow vulnerability when the 'smbd' service tries to reassemble specially crafted SMB/CIFS packets. An attacker can exploit this vulnerability by creating a specially formatted SMB/CIFS packet and sending it to a vulnerable Samba server. The overflow condition will be triggered and will cause smbd to overwrite sensitive areas of memory with attacker-supplied values. Note that the smbd service runs with root privileges.

Technologies Affected

  • HP CIFS/9000 Server A.01.05
  • HP CIFS/9000 Server A.01.06
  • HP CIFS/9000 Server A.01.07
  • HP CIFS/9000 Server A.01.08
  • HP CIFS/9000 Server A.01.08.01
  • HP CIFS/9000 Server A.01.09
  • HP CIFS/9000 Server A.01.09.01
  • Samba Samba 2.0.0 .0
  • Samba Samba 2.0.1
  • Samba Samba 2.0.10
  • Samba Samba 2.0.2
  • Samba Samba 2.0.3
  • Samba Samba 2.0.4
  • Samba Samba 2.0.5
  • Samba Samba 2.0.6
  • Samba Samba 2.0.7
  • Samba Samba 2.0.8
  • Samba Samba 2.0.9
  • Samba Samba 2.2.0 .0
  • Samba Samba 2.2.0 .0a
  • Samba Samba 2.2.1 a
  • Samba Samba 2.2.2
  • Samba Samba 2.2.3
  • Samba Samba 2.2.3 a
  • Samba Samba 2.2.4
  • Samba Samba 2.2.5
  • Samba Samba 2.2.6
  • Samba Samba 2.2.7
  • Samba Samba 2.2.7 a
  • Samba-TNG Samba-TNG 0.3.0
  • Sun Solaris 9
  • Sun Solaris 9_x86


Block external access at the network boundary, unless external parties require service.
Set up firewalls to block unsolicited traffic destined for ports 137, 138, 139, and 445. This may prevent exploits of this vulnerability from unknown third parties.

Deploy network intrusion detection systems to monitor network traffic for malicious activity.
Deploy NIDS to monitor network traffic for signs of suspicious or anomalous activity. This may help detect malicious actions that an attacker may take after successfully exploiting vulnerabilities in applications. Review all applicable logs regularly.

Implement multiple redundant layers of security.
Various memory-protection schemes (such as nonexecutable and randomly mapped memory segments) may hinder an attacker's ability to exploit this vulnerability to execute arbitrary code.

Fixes are available. Please see the references for details.



Discovery of this vulnerability credited to Sebastian Krahmer <krahmer at>.

© 1995- Symantec Corporation

Permission to redistribute this alert electronically is granted as long as it is not edited in any way unless authorized by Symantec Security Response. Reprinting the whole or part of this alert in any medium other than electronically requires permission from


The information in the advisory is believed to be accurate at the time of publishing based on currently available information. Use of the information constitutes acceptance for use in an AS IS condition. There are no warranties with regard to this information. Neither the author nor the publisher accepts any liability for any direct, indirect, or consequential loss or damage arising from use of, or reliance on, this information.

Symantec, Symantec products, Symantec Security Response, and are registered trademarks of Symantec Corp. and/or affiliated companies in the United States and other countries. All other registered and unregistered trademarks represented in this document are the sole property of their respective companies/owners.