Security Advisory Low: vsftpd security and bug fix update

Advisory: RHSA-2008:0295-14
Type: Security Advisory
Severity: Low
Issued on: 2008-05-21
Last updated on: 2008-05-21
Affected Products: RHEL Desktop Workstation (v. 5 client)
Red Hat Enterprise Linux (v. 5 server)
OVAL: com.redhat.rhsa-20080295.xml
CVEs (cve.mitre.org): CVE-2007-5962

Details

An updated vsftpd package that fixes a security issue and several bugs is
now available for Red Hat Enterprise Linux 5.

This update has been rated as having low security impact by the Red Hat
Security Response Team.

The vsftpd package includes a Very Secure File Transfer Protocol (FTP)
daemon.

A memory leak was discovered in the vsftpd daemon. An attacker who is able
to connect to an FTP service, either as an authenticated or anonymous user,
could cause vsftpd to allocate all available memory if the "deny_file"
option was enabled in vsftpd.conf. (CVE-2007-5962)

As well, this updated package fixes following bugs:

* a race condition could occur even when the "lock_upload_files" option is
set. When uploading two files simultaneously, the result was a combination
of the two files. This resulted in uploaded files becoming corrupted. In
these updated packages, uploading two files simultaneously will result in a
file that is identical to the last uploaded file.

* when the "userlist_enable" option is used, failed log in attempts as a
result of the user not being in the list of allowed users, or being in the
list of denied users, will not be logged. In these updated packages, a new
"userlist_log=YES" option can be configured in vsftpd.conf, which will log
failed log in attempts in these situations.

* vsftpd did not support usernames that started with an underscore or a
period character. Usernames starting with an underscore or a period are
supported in these updated packages.

* using wildcards in conjunction with the "ls" command did not return all
the file names it should. For example, if you FTPed into a directory
containing three files -- A1, A21 and A11 -- and ran the "ls *1" command,
only the file names A1 and A21 were returned. These updated packages use
greedier code that continues to speculatively scan for items even after
matches have been found.

* when the "user_config_dir" option is enabled in vsftpd.conf, and the
user-specific configuration file did not exist, the following error
occurred after a user entered their password during the log in process:

500 OOPS: reading non-root config file

This has been resolved in this updated package.

All vsftpd users are advised to upgrade to this updated package, which
resolves these issues.


Solution

Before applying this update, make sure that all previously-released
errata relevant to your system have been applied.

This update is available via Red Hat Network. Details on how to use
the Red Hat Network to apply this update are available at
http://kbase.redhat.com/faq/FAQ_58_10188

Updated packages

RHEL Desktop Workstation (v. 5 client)

SRPMS:
vsftpd-2.0.5-12.el5.src.rpm
File outdated by:  RHBA-2009:1282
    cac756061a0d84c83cf803d1c335f2f3
 
IA-32:
vsftpd-2.0.5-12.el5.i386.rpm
File outdated by:  RHBA-2009:1282
    cd0e284fa93e66a724b28754dd8099f5
 
x86_64:
vsftpd-2.0.5-12.el5.x86_64.rpm
File outdated by:  RHBA-2009:1282
    aa11f61061b4de741216bb8e3329e031
 
Red Hat Enterprise Linux (v. 5 server)

SRPMS:
vsftpd-2.0.5-12.el5.src.rpm
File outdated by:  RHBA-2009:1282
    cac756061a0d84c83cf803d1c335f2f3
 
IA-32:
vsftpd-2.0.5-12.el5.i386.rpm
File outdated by:  RHBA-2009:1282
    cd0e284fa93e66a724b28754dd8099f5
 
IA-64:
vsftpd-2.0.5-12.el5.ia64.rpm
File outdated by:  RHBA-2009:1282
    731543493e0e5c781a21cc920e64290f
 
PPC:
vsftpd-2.0.5-12.el5.ppc.rpm
File outdated by:  RHBA-2009:1282
    bc82ca0717bb8696c476eee059569b2d
 
s390x:
vsftpd-2.0.5-12.el5.s390x.rpm
File outdated by:  RHBA-2009:1282
    a5df729a18549241e857ffc602789a67
 
x86_64:
vsftpd-2.0.5-12.el5.x86_64.rpm
File outdated by:  RHBA-2009:1282
    aa11f61061b4de741216bb8e3329e031
 
(The unlinked packages above are only available from the Red Hat Network)

Bugs fixed (see bugzilla for more information)

240553 - vsftpd has a create/lock race condition which corrupts uploads
392181 - vsftpd file listing issue with wildcard
392231 - Uploaded file corrupted when two connections from same client uploading same file simultaneously
397011 - CVE-2007-5962 vsftpd: memory leak when deny_file option is set
400921 - OOPS: reading non-root config file


References



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/