search menu icon-carat-right cmu-wordmark

CERT Coordination Center

Samba contains buffer overflow in SMB/CIFS packet fragment reassembly code

Vulnerability Note VU#298233

Original Release Date: 2003-03-17 | Last Revised: 2003-05-15

Overview

A buffer overflow vulnerability has been discovered in Samba. An updated version has been released.

Description

A remotely exploitable buffer overflow vulnerability was discoved to affect Samba versions 2.0.x through 2.2.7a. From their bulletin:

The SuSE security audit team, in particular Sebastian Krahmer, has found a flaw in the Samba main smbd code which could allow an external attacker to remotely and anonymously gain Super User (root) privileges on a server running a Samba server.

This flaw exists in previous versions of Samba from 2.0.x to 2.2.7a inclusive. This is a serious problem and all sites should either upgrade to Samba 2.2.8 immediately or prohibit access to TCP ports 139 and 445. Advice created by Andrew Tridgell, the leader of the Samba Team, on how to protect an unpatched Samba server is given at the end of this section.

The SMB/CIFS protocol implemented by Samba is vulnerable to many attacks, even without specific security holes. The TCP ports 139 and the new port 445 (used by Win2k and the Samba 3.0 alpha code in particular) should never be exposed to untrusted networks.

Impact

A remote attacker may be able to execute arbitrary code with the privileges of the Super User, typically root.

Solution

Upgrade to Samba version 2.2.8.

The "Protecting an unpatched Samba server" section of the Samba bulletin discusses several work arounds for unpatched servers.

Vendor Information

298233
 

View all 19 vendors View less vendors


CVSS Metrics

Group Score Vector
Base
Temporal
Environmental

References

Acknowledgements

Thanks to Sebastian Krahmer for reporting this vulnerability.

This document was written by Jason A Rafail.

Other Information

CVE IDs: CVE-2003-0085
Severity Metric: 23.63
Date Public: 2003-03-16
Date First Published: 2003-03-17
Date Last Updated: 2003-05-15 16:54 UTC
Document Revision: 8

Sponsored by CISA.