Bug 12665 - pcre is bundled with mariadb-10.x
Summary: pcre is bundled with mariadb-10.x
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 4
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-08 17:07 CET by Oden Eriksson
Modified: 2015-03-31 14:33 CEST (History)
0 users

See Also:
Source RPM: pcre
CVE:
Status comment:


Attachments
The stack guard patch (3.44 KB, patch)
2014-02-08 17:08 CET, Oden Eriksson
Details | Diff

Description Oden Eriksson 2014-02-08 17:07:13 CET
The whole pcre code is bundled with mariadb-10.x which could pose future security problems. In Mandriva/Mageia we avoid using built bundled copies of common system wide provided libraries as much as possible. This gives us the obvious benefit of that we don't have to patch a large number of softwares should a security flaw be known in for example pcre.

With the latest MariaDB-10.x, pcre-8.34 is bundled with the source with changes to pcre that eliminates the chance of anyone crashing the server with a simple " SELECT a RLIKE REPEAT('(', 1000);" statement.

https://blog.mariadb.org/mariadb-upgrades-to-pcre-8-34/

I asked Sergei Golubchik at MariaDB for a clean patch for pcre-8.34 which he provided. The patch also fixes a build problem (pcre-8.34/pcre_compile.c:7997: undefined reference to `pcre_stack_guard') we discovered on friday using the  "-Wl,--no-undefined" gcc switch and using the mageia pcre source rpm package.

The patch is attached to this bug and applies cleanly to pcre-8.34.

Our hope is that this patch will be accepted by pcre upstream which will allow MariaDB-10.x to be built with system pcre libs. This will probably be appreciated by most OpenSource based distributions due to the reasons stated above.

Cheers.

Reproducible: 

Steps to Reproduce:
Comment 1 Oden Eriksson 2014-02-08 17:08:08 CET
Created attachment 4965 [details]
The stack guard patch
Comment 2 Oden Eriksson 2014-02-10 11:25:14 CET
This has now been implemented upstream HEAD in r1454.

svn diff -r1453:1454 svn://vcs.exim.org/pcre/code/trunk
Comment 3 Oden Eriksson 2014-02-19 15:10:56 CET
This has now been added in Mageia Cauldron as of:

http://svnweb.mageia.org/packages?view=revision&revision=594784
Comment 4 Oden Eriksson 2014-02-19 18:00:59 CET
https://mariadb.atlassian.net/browse/MDEV-5620
Comment 6 Oden Eriksson 2015-03-31 14:33:32 CEST
This was fixed long ago, closing.

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


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