Bug 16823 - cyrus-imapd new security issue fixed upstream in 2.4.18 (CVE-2015-8076)
Summary: cyrus-imapd new security issue fixed upstream in 2.4.18 (CVE-2015-8076)
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Security (show other bugs)
Version: 5
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact: Sec team
URL: http://lwn.net/Vulnerabilities/658312/
Whiteboard: has_procedure advisory MGA5-64-OK mga...
Keywords: validated_update
Depends on:
Blocks:
 
Reported: 2015-09-24 19:27 CEST by David Walser
Modified: 2015-11-29 23:23 CET (History)
2 users (show)

See Also:
Source RPM: cyrus-imapd-2.4.17-20.mga5.src.rpm
CVE:
Status comment:


Attachments

Description David Walser 2015-09-24 19:27:14 CEST
OpenSuSE has issued an advisory today (September 24):
http://lists.opensuse.org/opensuse-updates/2015-09/msg00038.html

The issue is fixed in 2.4.18.  Mageia 5 is also affected.

Reproducible: 

Steps to Reproduce:
David Walser 2015-09-24 19:27:26 CEST

Whiteboard: (none) => MGA5TOO

Comment 1 Thomas Spuhler 2015-09-27 19:10:14 CEST
It currently doesn't build with our patches

Status: NEW => ASSIGNED

Comment 2 Thomas Spuhler 2015-09-27 19:53:23 CEST
This bug has been resolved by upgrading to vers. 2.4.18 (and a ton of other bugs).
I also removed the very old cyrus-imapd-2.4.12-autosieve-0.6.0.patch because the package didn't build anymore with this very old patch. Neither Fedora nor Opensuse are using it. I will test the update when it is on the mirrors.
The following packages are now in update_testing:
cyrus-imapd-2.4.18-1.mga5.src.rpm
cyrus-imapd-2.4.18-1.mga5.x86_64.rpm
cyrus-imapd-murder-2.4.18-1.mga5.x86_64.rpm
cyrus-imapd-nntp-2.4.18-1.mga5.x86_64.rpm
cyrus-imapd-devel-2.4.18-1.mga5.x86_64.rpm
perl-Cyrus-2.4.18-1.mga5.x86_64.rpm
cyrus-imapd-utils-2.4.18-1.mga5.x86_64.rpm
cyrus-imapd-debuginfo-2.4.18-1.mga5.x86_64.rpm
and relevant i586 packages.

Assignee: thomas => qa-bugs

Comment 3 Rémi Verschelde 2015-09-27 20:02:31 CEST
Thanks Thomas, could you also fix it in cauldron?
Comment 4 David Walser 2015-09-27 22:28:54 CEST
Actually pkgsubmit shows that Cauldron was updated to 2.4.18 and mga5 just re-pushed the release version back to the build system.  SVN doesn't show an update in Mageia 5 either.  Thomas, please commit to the Mageia 5 branch and resubmit.

CC: (none) => qa-bugs
Version: Cauldron => 5
Assignee: qa-bugs => thomas
Whiteboard: MGA5TOO => (none)

Comment 5 Thomas Spuhler 2015-09-27 23:52:44 CEST
Why, I must have submitted the wrong local copy. But why did it take it?
I apologize.
Comment 6 David Walser 2015-09-27 23:54:24 CEST
(In reply to Thomas Spuhler from comment #5)
> Why, I must have submitted the wrong local copy. But why did it take it?
> I apologize.

What happened was you didn't commit anything to SVN, so when you submitted it it just built the release version.  The build system unfortunately will allow to rebuild in updates_testing the same version that's in release or last in updates.  This is a bug that would be nice to fix in the build system.
Comment 7 Thomas Spuhler 2015-09-28 00:26:44 CEST
I actually did commit it, but I checked out from cauldron instead of mga5 (forgot to add 5/ when checking out and not noticing)
It should be fixed now.

Assignee: thomas => qa-bugs

David Walser 2015-09-28 00:28:13 CEST

CC: qa-bugs => thomas

Comment 8 David Walser 2015-09-28 16:27:33 CEST
Advisory:
========================

Updated cyrus-imapd packages fix security vulnerability:

The cyrus-imapd package has been updated to version 2.4.18, fixing a security
issue with a urlfetch range starting outside the message range, as well as
several other bugs.  See the upstream release announcement for details.

References:
https://docs.cyrus.foundation/imap/release-notes/2.4/x/2.4.18.html
http://lists.opensuse.org/opensuse-updates/2015-09/msg00038.html
Comment 9 Thomas Spuhler 2015-09-28 20:45:54 CEST
just for your info, I have the updates in testing installed on my own server and so far no errors.
Comment 10 David Walser 2015-09-28 20:57:18 CEST
(In reply to Thomas Spuhler from comment #9)
> just for your info, I have the updates in testing installed on my own server
> and so far no errors.

Feel free to put the appropriate OK tag on the whiteboard for your architecture.  Thanks.
Comment 11 David Walser 2015-09-29 16:12:14 CEST
CVE request:
http://openwall.com/lists/oss-security/2015/09/29/2
Thomas Spuhler 2015-09-29 18:40:20 CEST

Whiteboard: (none) => x86_64 OK

David Walser 2015-09-29 18:42:20 CEST

Whiteboard: x86_64 OK => MGA5-64-OK

Comment 12 claire robinson 2015-09-30 17:03:07 CEST
Testing complete mga5 32

Aside from a warning about postfix user, basic testing ok.

warning: group postfix does not exist - using root
#
warning: %post(cyrus-imapd-2.4.18-1.mga5.i586) scriptlet failed, exit status 1
ERROR: 'script' failed for cyrus-imapd-2.4.18-1.mga5


# systemctl start cyrus-imapd.service
# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE STARTTLS LOGINDISABLED] laptop Cyrus IMAP v2.4.18-Mageia-RPM-2.4.18-1.mga5 server ready
^]
telnet> quit
Connection closed.

Whiteboard: MGA5-64-OK => MGA5-64-OK mga5-32-ok

claire robinson 2015-09-30 17:04:24 CEST

Whiteboard: MGA5-64-OK mga5-32-ok => has_procedure MGA5-64-OK mga5-32-ok

Comment 13 David Walser 2015-09-30 17:09:49 CEST
I wish rpm gave more feedback on scriplet failures so that you could see where it fails.  The %post for this package is rather large.

Claire, do you see "2.4.18" in /var/lib/imap/rpm/version ?

As for the postfix warning, the top section of the package needs:
%if %{PREFORK}
Requires: postfix
%endif
Comment 14 claire robinson 2015-09-30 17:53:02 CEST
Yup :)

# cat /var/lib/imap/rpm/version 
2.4.18


If it's an easy fix for the user we may as well make that change.
Comment 15 David Walser 2015-09-30 17:54:42 CEST
(In reply to claire robinson from comment #14)
> Yup :)
> 
> # cat /var/lib/imap/rpm/version 
> 2.4.18

Thanks.  I think the ERROR for the script you saw is because the service is disabled, in which case it's a known systemd bug in mga5.

> If it's an easy fix for the user we may as well make that change.

Yup.
Comment 16 claire robinson 2015-09-30 18:00:08 CEST
Postfix is not installed btw if that helps to track it down.
Comment 17 Thomas Spuhler 2015-09-30 19:36:45 CEST
(In reply to David Walser from comment #15)
> (In reply to claire robinson from comment #14)
> > Yup :)
> > 
> > # cat /var/lib/imap/rpm/version 
> > 2.4.18
> 
> Thanks.  I think the ERROR for the script you saw is because the service is
> disabled, in which case it's a known systemd bug in mga5.
> 
> > If it's an easy fix for the user we may as well make that change.
> 
> Yup.

I didn't see any errors during the upgrade (in mga5).
Comment 18 David Walser 2015-09-30 19:37:29 CEST
(In reply to Thomas Spuhler from comment #17)
> I didn't see any errors during the upgrade (in mga5).

Because you already have postfix installed (and you have the cyrus imapd service enabled).
Comment 19 Thomas Spuhler 2015-09-30 20:00:36 CEST
I wonder if it's worth to take chances. If someone has cyrus-imapd installed he very likely is using (enabled) it.
Comment 20 David Walser 2015-09-30 20:02:56 CEST
(In reply to Thomas Spuhler from comment #19)
> I wonder if it's worth to take chances. If someone has cyrus-imapd installed
> he very likely is using (enabled) it.

Yes, that part's not an issue.

What is an issue, is if the /var/spool/postfix/extern/cyrus needs to be owned by the postfix group, it won't be unless postfix is installed.
Comment 21 Thomas Spuhler 2015-09-30 20:07:37 CEST
That's a good point. Are we have any other MTA besides postfix that could be affected?
Comment 22 David Walser 2015-09-30 20:09:13 CEST
(In reply to Thomas Spuhler from comment #21)
> That's a good point. Are we have any other MTA besides postfix that could be
> affected?

Only postfix provides the postfix user, and it appears that this file is only relevant for postfix.
Comment 23 David Walser 2015-09-30 20:11:01 CEST
Although this raises an interesting issue.  postfix would conflict with sendmail, so if postfix is required, you can't use cyrus with sendmail.  Perhaps that file should be moved to a subpackage that requires postfix and is recommended by cyrus-imapd.
Comment 24 claire robinson 2015-10-01 15:29:59 CEST
Adding feedback marker for now. If it needs alot of work then we may have to push as-is and issue a separate update.

Whiteboard: has_procedure MGA5-64-OK mga5-32-ok => has_procedure feedback MGA5-64-OK mga5-32-ok

Comment 25 claire robinson 2015-10-14 00:18:18 CEST
Any movement on this one or shall we push?
Comment 26 David Walser 2015-10-14 00:45:41 CEST
I talked to Thomas on IRC an hour and a half ago (about).  Let's push this for now.  It's still not clear what to do about this issue long-term (if anything).
Comment 27 Thomas Spuhler 2015-10-14 01:39:09 CEST
I went back for quite some changelogs and yes, we added postfix as a requirement, but the requirements to have it are much, much older and I haven't seen a bug report or complaint about it. I guess they just installed postfix.
There is no reasons not to use an MTA with cyrus-imapd. It would work the other way round, using an other imap server with the MTA.
This may be forcing the issue, <is sendmail> still used?
Comment 28 David Walser 2015-10-14 02:47:01 CEST
(In reply to Thomas Spuhler from comment #27)
> This may be forcing the issue, <is sendmail> still used?

I proposed dropping the sendmail package before Mageia 5 was released and was asked to keep it, so I guess someone still uses it.  Whether they use it with cyrus, I have no idea.
David Walser 2015-10-14 02:47:23 CEST

Whiteboard: has_procedure feedback MGA5-64-OK mga5-32-ok => has_procedure MGA5-64-OK mga5-32-ok

Comment 29 claire robinson 2015-10-15 16:20:03 CEST
Validating. Advisory to upload.

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

Comment 30 claire robinson 2015-10-15 17:15:31 CEST
Advisory uploaded.

Whiteboard: has_procedure MGA5-64-OK mga5-32-ok => has_procedure advisory MGA5-64-OK mga5-32-ok

Comment 31 Mageia Robot 2015-10-15 21:51:59 CEST
An update for this issue has been pushed to Mageia Updates repository.

http://advisories.mageia.org/MGASA-2015-0401.html

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED

Comment 32 David Walser 2015-11-04 19:04:54 CET
CVE-2015-8076, CVE-2015-8077, CVE-2015-8078 allocated for this:
http://openwall.com/lists/oss-security/2015/11/04/3

Summary: cyrus-imapd new security issue fixed upstream in 2.4.18 => cyrus-imapd new security issue fixed upstream in 2.4.18 (CVE-2015-807[6-8])

Comment 33 David Walser 2015-11-29 23:23:24 CET
Actually, CVE-2015-8076 was fixed in 2.4.18.  Additional fixes are needed for the other two.  Opening a new bug.

Summary: cyrus-imapd new security issue fixed upstream in 2.4.18 (CVE-2015-807[6-8]) => cyrus-imapd new security issue fixed upstream in 2.4.18 (CVE-2015-8076)


Note You need to log in before you can comment on or make changes to this bug.