Users login

Create an account »


Users login

Home » Hacking News » OpenPKG SA-2003.021: samba remote root compromise

OpenPKG SA-2003.021: samba remote root compromise

by Nikola Strahija on March 21st, 2003 A buffer overrun has been found in all versions of Samba from 2.0.* to 2.2.7a inclusive. This allows a remote attacker to gain root privileges on a samba server.

Hash: SHA1


OpenPKG Security Advisory The OpenPKG Project
[email protected] [email protected]
OpenPKG-SA-2003.021 18-Mar-2003

Package: samba
Vulnerability: remote root exploit / chown race condition
OpenPKG Specific: no

Affected Releases: Affected Packages: Corrected Packages:
OpenPKG CURRENT <= samba-2.2.7a-20030207 >= samba-2.2.8-20030316
OpenPKG 1.2 <= samba-2.2.7a-1.2.0 >= samba-2.2.7a-1.2.1
OpenPKG 1.1 <= samba-2.2.5-1.1.1 >= samba-2.2.5-1.1.2

Dependent Packages: none

Sebastian Krahmer, SuSE Security Team, [0] has alerted the Samba Team
to two serious vulnerabilities in all versions of Samba [1] up to and
including version 2.2.7a. We have backported the security relevant
pieces of the 2.2.8 vendor changes into releases used by OpenPKG.

If exploited correctly, it could lead to an anonymous user gaining
root access on a Samba serving system. All versions of Samba up to
and including Samba 2.2.7a are vulnerable. The Common Vulnerabilities
and Exposures (CVE) project assigned the id CAN-2003-0085 [2] to the

In addition he pointed out a chown(2) race condition which could
allow overwriting of critical system files if exploited. The
Common Vulnerabilities and Exposures (CVE) project assigned the id
CAN-2003-0086 [3] to the problem.

Please check whether you are affected by running "/bin/rpm -q
samba". If you have the "samba" package installed and its version is
affected (see above), we recommend that you immediately upgrade it
(see Solution). [4][5]

Select the updated source RPM appropriate for your OpenPKG release
[6][7], fetch it from the OpenPKG FTP service [8][9] or a mirror
location, verify its integrity [10], build a corresponding binary
RPM from it [4] and update your OpenPKG installation by applying the
binary RPM [5]. For the current release OpenPKG 1.2, perform the
following operations to permanently fix the security problem (for
other releases adjust accordingly).

$ ftp
ftp> bin
ftp> cd release/1.2/UPD
ftp> get samba-2.2.7a-1.2.1.src.rpm
ftp> bye
$ /bin/rpm -v --checksig samba-2.2.7a-1.2.1.src.rpm
$ /bin/rpm --rebuild samba-2.2.7a-1.2.1.src.rpm
$ su -
# /bin/rpm -Fvh /RPM/PKG/samba-2.2.7a-1.2.1.*.rpm


For security reasons, this advisory was digitally signed with
the OpenPGP public key "OpenPKG " (ID 63C4CB9F)
of the OpenPKG project which you can find under the official URL or on To
check the integrity of this advisory, verify its digital signature by
using GnuPG ( For instance, pipe this message to
the command "gpg --verify --keyserver".

Comment: OpenPKG


Newsletter signup

Signup to our monthly newsletter and stay in touch with IT news!

Free E-books

We've got ebooks! But they're not online. :( Please give us a few days to bring downloads back.


Have something to say or just wanna drop us a line? Please keep this in mind: to spam, we reply with spam.

Contact us »