Skip to navigation

Security Advisory New samba packages available to fix /tmp races

Advisory: RHSA-2001:044-08
Type: Security Advisory
Severity: N/A
Issued on: 2001-04-05
Last updated on: 2001-05-14
Affected Products: Red Hat Linux 6.2
Red Hat Linux 7.0
Red Hat Linux 7.1
CVEs (cve.mitre.org): CVE-2001-0406

Details

New samba packages are available; these packages fix /tmp races
in smbclient and the printing code. By exploiting these vulnerabilities,
local users could overwrite any file in the system.

It is recommended that all samba users upgrade to the fixed packages.
Please note that the packages for Red Hat Linux 6.2 require an updated
logrotate package.

Note: these packages include the security patch from Samba-2.0.9.

The printing code in smbd uses predictable filenames in /tmp, and passes
them as an output file to system(); a user could create a symbolic
link in /tmp and then overwrite any file on the system; later on chmod(0666)
is called on the file, leading to even more problems.

The smbclient 'more' and 'mput' commands also used /tmp files insecurely;
this is less of a risk in that these are not normally run as root.

Thanks go to Marcus Meissner (mm@caldera.de) for investigating the issue
and to the Samba team for providing a patch.


Solution

To update all RPMs for your particular architecture, run:

rpm -Fvh [filenames]

where [filenames] is a list of the RPMs you wish to upgrade. Only those
RPMs which are currently installed will be updated. Those RPMs which are
not installed but included in the list will not be updated. Note that you
can also use wildcards (*.rpm) if your current directly *only* contains the
desired RPMs.

Please note that this update is also available via Red Hat Network. Many
people find this an easier way to apply updates. To use Red Hat Network,
launch the Red Hat Update Agent with the following command:

up2date

This will start an interactive process that will result in the appropriate
RPMs being upgraded on your system.

Again, note that the packages for Red Hat Linux 6.2 requre an updated
logrotate package.

Updated packages

Red Hat Linux 6.2

SRPMS:
ftp://updates.redhat.com/rhn/repository/NULL/logrotate/3.5.2-0.6/SRPMS/logrotate-3.5.2-0.6.src.rpm
Missing file
    MD5: 335f2123c5ce3606db471183dfcdebad
 
Alpha:
ftp://updates.redhat.com/rhn/repository/NULL/logrotate/3.5.2-0.6/alpha/logrotate-3.5.2-0.6.alpha.rpm
Missing file
    MD5: f0f9129497c91d12da04cd6219267aa3
 
IA-32:
ftp://updates.redhat.com/rhn/repository/NULL/logrotate/3.5.2-0.6/i386/logrotate-3.5.2-0.6.i386.rpm
Missing file
    MD5: 33f4ce1b7967405f33f4ad1cb73fae35
 
Sparc:
ftp://updates.redhat.com/rhn/repository/NULL/logrotate/3.5.2-0.6/sparc/logrotate-3.5.2-0.6.sparc.rpm
Missing file
    MD5: 3f14ee70fdb73ba09ef49e4c4f3c6a7f
 
Red Hat Linux 7.0

Alpha:
{filename}     
MD5: cbfae3f2420cfae17b005211a8fdf692
 
IA-32:
{filename}     
MD5: a8ab5a701ae81d123b45e564e6a780d4
 
Red Hat Linux 7.1

SRPMS:
samba-2.0.8-1.7.1.src.rpm
File outdated by:  RHSA-2003:137
    MD5: b5904f83880e46202a997c035a8ab7bf
 
IA-32:
{filename}     
MD5: 282c70feb595b651804678407b7d7b08
 

References


Keywords

overwrite


These packages are GPG signed by Red Hat for security. Our key and details on how to verify the signature are available from:
https://www.redhat.com/security/team/key/#package

The Red Hat security contact is secalert@redhat.com. More contact details at http://www.redhat.com/security/team/contact/