-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

===========================================================================
             AUSCERT External Security Bulletin Redistribution

                         ESB-2008.0544 -- [RedHat]
                 Low: dovecot security and bug fix update
                                26 May 2008

===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:              dovecot
Publisher:            Red Hat
Operating System:     Red Hat Linux 5
Impact:               Inappropriate Access
Access:               Remote/Unauthenticated
                      Existing Account
CVE Names:            CVE-2008-1199 CVE-2007-6598 CVE-2007-4211
                      CVE-2007-2231

Ref:                  AA-2008.0066
                      ESB-2008.0028
                      ESB-2007.0653

Original Bulletin:    https://rhn.redhat.com/errata/RHSA-2008-0297.html

- --------------------------BEGIN INCLUDED TEXT--------------------

- -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

=====================================================================
                   Red Hat Security Advisory

Synopsis:          Low: dovecot security and bug fix update
Advisory ID:       RHSA-2008:0297-02
Product:           Red Hat Enterprise Linux
Advisory URL:      https://rhn.redhat.com/errata/RHSA-2008-0297.html
Issue date:        2008-05-20
Updated on:        2008-05-21
CVE Names:         CVE-2007-2231 CVE-2007-4211 CVE-2007-6598 
                   CVE-2008-1199 
=====================================================================

1. Summary:

An updated dovecot package that fixes several security issues and various
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.

2. Relevant releases/architectures:

RHEL Desktop Workstation (v. 5 client) - i386, x86_64
Red Hat Enterprise Linux (v. 5 server) - i386, ia64, ppc, s390x, x86_64

3. Description:

Dovecot is an IMAP server for Linux and UNIX-like systems, primarily
written with security in mind.

A flaw was discovered in the way Dovecot handled the "mail_extra_groups"
option. An authenticated attacker with local shell access could leverage
this flaw to read, modify, or delete other users mail that is stored on
the mail server. (CVE-2008-1199)

This issue did not affect the default Red Hat Enterprise Linux 5 Dovecot
configuration. This update adds two new configuration options --
"mail_privileged_group" and "mail_access_groups" -- to minimize the usage
of additional privileges.

A directory traversal flaw was discovered in Dovecot's zlib plug-in. An
authenticated user could use this flaw to view other compressed mailboxes
with the permissions of the Dovecot process. (CVE-2007-2231)

A flaw was found in the Dovecot ACL plug-in. User with only insert
permissions for a mailbox could use the "COPY" and "APPEND" commands to set
additional message flags. (CVE-2007-4211)

A flaw was found in a way Dovecot cached LDAP query results in certain
configurations. This could possibly allow authenticated users to log in as
a different user who has the same password. (CVE-2007-6598)

As well, this updated package fixes the following bugs:

* configuring "userdb" and "passdb" to use LDAP caused Dovecot to hang. A
segmentation fault may have occurred. In this updated package, using an
LDAP backend for "userdb" and "passdb" no longer causes Dovecot to hang.

* the Dovecot "login_process_size" limit was configured for 32-bit systems.
On 64-bit systems, when Dovecot was configured to use either IMAP or POP3,
the log in processes crashed with out-of-memory errors. Errors such as the
following were logged:

pop3-login: pop3-login: error while loading shared libraries:
libsepol.so.1: failed to map segment from shared object: Cannot allocate
memory

In this updated package, the "login_process_size" limit is correctly
configured on 64-bit systems, which resolves this issue.

Note: this updated package upgrades dovecot to version 1.0.7. For
further details, refer to the Dovecot changelog:
http://koji.fedoraproject.org/koji/buildinfo?buildID=23397

Users of dovecot are advised to upgrade to this updated package, which
resolves these issues.

4. 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

5. Bugs fixed (http://bugzilla.redhat.com/):

238439 - CVE-2007-2231 Directory traversal in dovecot with zlib plugin
245249 - Dovecot hangs while using ldap backend.
251007 - CVE-2007-4211 Dovecot possible privilege ascalation in ACL plugin
253363 - Dovecot pop3-login/imap-login crash with OOM error
331441 - Please consider upgrading Dovecot to 1.0rc23 at least
380401 - tracker bug for 1.0.7 rebase
427575 - CVE-2007-6598: dovecot LDAP+auth cache user login mixup
436927 - CVE-2008-1199 dovecot: insecure mail_extra_groups option

6. Package List:

RHEL Desktop Workstation (v. 5 client):

Source:
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Client/en/os/SRPMS/dovecot-1.0.7-2.el5.src.rpm

i386:
dovecot-1.0.7-2.el5.i386.rpm
dovecot-debuginfo-1.0.7-2.el5.i386.rpm

x86_64:
dovecot-1.0.7-2.el5.x86_64.rpm
dovecot-debuginfo-1.0.7-2.el5.x86_64.rpm

Red Hat Enterprise Linux (v. 5 server):

Source:
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/os/SRPMS/dovecot-1.0.7-2.el5.src.rpm

i386:
dovecot-1.0.7-2.el5.i386.rpm
dovecot-debuginfo-1.0.7-2.el5.i386.rpm

ia64:
dovecot-1.0.7-2.el5.ia64.rpm
dovecot-debuginfo-1.0.7-2.el5.ia64.rpm

ppc:
dovecot-1.0.7-2.el5.ppc.rpm
dovecot-debuginfo-1.0.7-2.el5.ppc.rpm

s390x:
dovecot-1.0.7-2.el5.s390x.rpm
dovecot-debuginfo-1.0.7-2.el5.s390x.rpm

x86_64:
dovecot-1.0.7-2.el5.x86_64.rpm
dovecot-debuginfo-1.0.7-2.el5.x86_64.rpm

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

7. References:

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-2231
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-4211
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-6598
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-1199
http://www.redhat.com/security/updates/classification/#low

8. Contact:

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

Copyright 2008 Red Hat, Inc.
- -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (GNU/Linux)

iD8DBQFINDGqXlSAg2UNWIIRAsOeAJwKM3PYlb29LhOkcBx0olvLEhVqFgCeNBkT
tjyub6/ivPbuDLqT6Y06D/Y=
=peHK
- -----END PGP SIGNATURE-----

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

        http://www.auscert.org.au/render.html?cid=1980

If you believe that your computer system has been compromised or attacked in 
any way, we encourage you to let us know by completing the secure National IT 
Incident Reporting Form at:

        http://www.auscert.org.au/render.html?it=3192

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.
===========================================================================

-----BEGIN PGP SIGNATURE-----
Comment: http://www.auscert.org.au/render.html?it=1967

iQCVAwUBSDoVsyh9+71yA2DNAQJNygP8CSN/xmVaZs18O1EE68fbLnB5aVb6lPRT
YHCbLIjR4s9uhMlFP8vb5NyvQbTAf2luVusP2ApCb1gPC/XpfkI/NJGX5h3WYHQN
fgiF9lHx3wmb7ZVQXhvX51nBsP6KFTs5K+oJB7uog8odCoqA2OiNLYHgEOe3S9Ke
3eay+ltIqVg=
=ZcId
-----END PGP SIGNATURE-----