Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 103894 - mail-mta/exim might include vulnerable pcre lib
Summary: mail-mta/exim might include vulnerable pcre lib
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Security
URL: http://www.exim.org/mail-archives/exi...
Whiteboard: C2? [noglsa]
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-27 02:10 UTC by Thierry Carrez (RETIRED)
Modified: 2006-03-23 19:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thierry Carrez (RETIRED) gentoo-dev 2005-08-27 02:10:05 UTC
Exim ships its own (affected) copy of the libpcre library. See bug 103337 for
details on the vulnerability. There probably aren't much use of parsing of
untrusted PCRE in exim, but it should be fixed nevertheless.

The idea would be to make exim build against the system libpcre rather than
using the internal copy, which doesn't seem to be the case at the moment.

Ccing maintainers for inputs.
Comment 1 Colin Morey (RETIRED) gentoo-dev 2005-08-30 08:27:54 UTC
Thanks for the heads up, As I understand it you have to be running some PCREs at SMTP time to be 
vulnerable, and i believe the default config (as shipped by gentoo), doesn't contain any PCREs.
Upstream has fixed the issue in the snapshot, and I'm expecting a fixed release soon.

I could potentially backport the fixes, but i'd rather let someone else come up with a patch against 
4.52, however i suspect 4.53 will be released before then.

Another solution would be to link directly against the external libpcre library, but that's a fair chunk of 
changes to the ebuild, and means shipping a redundant copy of the code (ie in the source tarball), and 
there will then be a backlash from that.

If any more information comes to light, i'll look into it again, but as it stands, i'd like to wait until 
upstream releases their fix(es) (we can put the next version on accelerated release path and mask lower 
versions if needs be).
Comment 2 Thierry Carrez (RETIRED) gentoo-dev 2005-08-30 08:29:59 UTC
Setting status to 'wait for upstream', downgrading severity
Comment 3 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2005-08-30 12:21:41 UTC
At some point I guess it would be nice if it linked against the external 
libpcre lib. 
Comment 4 Colin Morey (RETIRED) gentoo-dev 2005-08-30 12:55:01 UTC
(In reply to comment #3)
> At some point I guess it would be nice if it linked against the external 
> libpcre lib. 

Please see para 4 in coment #1 for the main reasons why this won't be done any time soon unless 
absolutely necessary.
Comment 5 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2005-08-30 13:18:33 UTC
peitholm, it was a future request not a task for this bug. 
Comment 6 Thierry Carrez (RETIRED) gentoo-dev 2005-10-03 01:10:32 UTC
4.53 is out.
Comment 7 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2005-10-06 08:04:33 UTC
Colin does 4.53 solve this issue? 
Comment 8 Colin Morey (RETIRED) gentoo-dev 2005-10-07 15:20:19 UTC
I believe it does, 4.53 should be hitting the tree soon, it needs some testing, and i'm out tomorrow, but 
hopefully tomorrow evening.
Comment 9 Thierry Carrez (RETIRED) gentoo-dev 2005-10-12 02:25:44 UTC
4.54 is in.
Fixed PCRE (v6.2) is included since 4.53.

Arches should test and mark stable...

Target final KEYWORDS="x86 sparc hppa alpha amd64 ppc ia64"

Given that exploitation possibility is not obvious, you can take your time and
keyword "~" first if you prefer.
Comment 10 Fernando J. Pereda (RETIRED) gentoo-dev 2005-10-12 02:32:43 UTC
Why on earth were all the keywords removed ?

Maybe someone has to re-read our keywording policy ?
Comment 11 Colin Morey (RETIRED) gentoo-dev 2005-10-12 09:15:35 UTC
which arch keywords in specific ferdy? (so i know which archs your a member off, it's not listed on the dev 
list).

my personal policy has been that i will only add a keyword that I personally have tested on, and given no 
one has said anything for a long time now... (looking at http://www.gentoo.org/proj/en/devrel/
handbook/handbook.xml?part=3&chap=1 I see that my approach is wrong so i'll comply even though i 
don't agree with current policy on this). 

koon, there are dependancies that haven't get been tested so it's not ready to go stable... I'll draw up a list 
of these tonight. but its breifly the spf/srs stuff (which no arch has yet marked stable).
Comment 12 Fernando J. Pereda (RETIRED) gentoo-dev 2005-10-12 09:23:03 UTC
In my particular case is alpha, but I see other keywords beeing dropped. In the
future if you want us to check that something works file us a bug and we'll
gladly test the package.

Cheers,
Ferdy
Comment 13 Fernando J. Pereda (RETIRED) gentoo-dev 2005-10-16 02:51:28 UTC
I keyworded ~alpha libsrs_alt-1.0_rc1-r1, libspf2-1.2.5-r1 and exim-4.54

Though libspf2 seems to work fine, the test suite is failing, is it suposed to
work ? (I can provide an excerpt if needed)

Cheers,
Ferdy
Comment 14 René Nussbaumer (RETIRED) gentoo-dev 2005-10-17 01:42:21 UTC
Forget to remove hppa from cc. Do it now.
Comment 15 Thierry Carrez (RETIRED) gentoo-dev 2005-10-19 01:41:20 UTC
For the first pass :

amd64 should add ~amd64 to exim-4.54 when they keyword libspf2 the same.
ia64 should add ~ia64 to exim-4.54 when they keyword libspf2 and libsrs_alt the
same.

Then when sufficient time is spent in ~, feel free to keyword all stable.
Comment 16 Thierry Carrez (RETIRED) gentoo-dev 2005-10-24 07:57:21 UTC
Please test and mark exim 4.54 / libspf2 / libsrs_alt stable
Target KEYWORDS="amd64 alpha hppa ia64 ppc ~ppc64 sparc x86"
Comment 17 Fernando J. Pereda (RETIRED) gentoo-dev 2005-10-24 12:47:38 UTC
alpha done
Comment 18 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2005-10-24 12:50:31 UTC
Stable on ppc and hppa.
Comment 19 Marcin Kryczek (RETIRED) gentoo-dev 2005-10-24 16:30:47 UTC
stable on x86
Comment 20 Simon Stelling (RETIRED) gentoo-dev 2005-10-27 11:51:26 UTC
amd64 stable
Comment 21 Gustavo Zacarias (RETIRED) gentoo-dev 2005-10-28 10:26:42 UTC
sparc stable.
Comment 22 Thierry Carrez (RETIRED) gentoo-dev 2005-10-28 11:34:52 UTC
Since this has no known security consequences (but is more a preventice thing),
no GLSA is needed.
Feel free to reopen if you disagree.