Bug 14015 - mariadb update to 5.5.39
Summary: mariadb update to 5.5.39
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Security (show other bugs)
Version: 4
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact: Sec team
URL: http://lwn.net/Vulnerabilities/611457/
Whiteboard: MGA3TOO has_procedure advisory MGA3-3...
Keywords: validated_update
Depends on:
Blocks:
 
Reported: 2014-08-29 18:24 CEST by David Walser
Modified: 2014-10-24 17:42 CEST (History)
4 users (show)

See Also:
Source RPM: mariadb-5.5.38-1.mga3.src.rpm
CVE:
Status comment:


Attachments

Description David Walser 2014-08-29 18:24:28 CEST
Upstream has released version 5.5.39 on August 5:
https://blog.mariadb.org/mariadb-5-5-39-now-available/

It probably fixes security issues, so we should prepare an update.

A SuSE update for MySQL made me think to check for this:
http://lwn.net/Vulnerabilities/609963/

Reproducible: 

Steps to Reproduce:
David Walser 2014-08-29 18:24:40 CEST

CC: (none) => oe
Whiteboard: (none) => MGA3TOO

Comment 1 David Walser 2014-09-10 18:40:06 CEST
I don't have any details on security issues that might have been fixed at this time, but Oden has packaged this update.  Assigning to QA.  Advisory to come later.

For now, refer to the Release Notes and Changelog:
https://mariadb.com/kb/en/mariadb/development/release-notes/mariadb-5539-release-notes/
https://mariadb.com/kb/en/mariadb/development/changelogs/mariadb-5539-changelog/

I have actually seen an inquiry about a possible security issue fixed in MySQL 5.5.39 (likely included here as well).  We'll see what comes of it:
http://openwall.com/lists/oss-security/2014/09/10/2

Updated packages in core/updates_testing:
========================
mariadb-5.5.39-1.mga3
mysql-MariaDB-5.5.39-1.mga3
mariadb-feedback-5.5.39-1.mga3
mariadb-extra-5.5.39-1.mga3
mariadb-obsolete-5.5.39-1.mga3
mariadb-core-5.5.39-1.mga3
mariadb-common-core-5.5.39-1.mga3
mariadb-common-5.5.39-1.mga3
mariadb-client-5.5.39-1.mga3
mariadb-bench-5.5.39-1.mga3
libmariadb18-5.5.39-1.mga3
libmariadb-devel-5.5.39-1.mga3
libmariadb-embedded18-5.5.39-1.mga3
libmariadb-embedded-devel-5.5.39-1.mga3
mariadb-5.5.39-1.mga4
mysql-MariaDB-5.5.39-1.mga4
mariadb-feedback-5.5.39-1.mga4
mariadb-extra-5.5.39-1.mga4
mariadb-obsolete-5.5.39-1.mga4
mariadb-core-5.5.39-1.mga4
mariadb-common-core-5.5.39-1.mga4
mariadb-common-5.5.39-1.mga4
mariadb-client-5.5.39-1.mga4
mariadb-bench-5.5.39-1.mga4
libmariadb18-5.5.39-1.mga4
libmariadb-devel-5.5.39-1.mga4
libmariadb-embedded18-5.5.39-1.mga4
libmariadb-embedded-devel-5.5.39-1.mga4

from SRPMS:
mariadb-5.5.39-1.mga3.src.rpm
mariadb-5.5.39-1.mga4.src.rpm

CC: (none) => alien
Assignee: alien => qa-bugs

Comment 2 William Kenney 2014-09-10 20:10:30 CEST
Can we come up with a dead simple test procedure for mariadb?

I did the following
Setup mariadb
In root terminal: systemctl start mysqld.service
Set password to: testmaria
[root@localhost wilcal]# mysqladmin -u root password
type password "testmaria" twice

And was able to launch and go through simple processes with:
phpmyadmin owncloud mediawiki

Does that really mean that mariadb is installed and working?
After I update mariadb simply sucessfully reopening
http://localhost/owncloud/
does that mean that mariadb was successfully updated?

How about a nice 5-line test procedure.

CC: (none) => wilcal.int

Comment 3 David Walser 2014-09-10 20:17:45 CEST
Certainly if it works fine with webapps like mediawiki and moodle, it should be fine.  Also, make sure to run "mysql_upgrade" (as root) after installing the updated mariadb packages if you're testing updating it from an existing installation.  Note that the Moodle testing procedure has detailed steps (including the exact commands) for setting up the MariaDB/MySQL database for Moodle.
Comment 4 David Walser 2014-09-10 20:25:43 CEST
Fedora has issued an advisory for this today (September 10):
https://lists.fedoraproject.org/pipermail/package-announce/2014-September/137559.html

Here's a preliminary advisory.  I'll update it if information on any other security issues comes to light.

Advisory:
========================

Updated mariadb packages fix security vulnerability:

MyISAM temporary files could be used to mount a code-execution attack
(CVE-2014-4274).

The mariadb package has been updated to version 5.5.39, which fixes this and
several other issues.  Refer to the upstream Changelog for more details.

References:
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-4274
https://mariadb.com/kb/en/mariadb/development/changelogs/mariadb-5539-changelog/
http://openwall.com/lists/oss-security/2014/09/10/2
https://lists.fedoraproject.org/pipermail/package-announce/2014-September/137559.html

URL: (none) => http://lwn.net/Vulnerabilities/611457/

Comment 5 claire robinson 2014-09-10 23:43:31 CEST
No PoC, that I can see. 

From the launchpad link on the openwall post it adds checks for file exists. It could be possible to verify this with strace, but we'd need to be able to reproduce the original issue.

Test for obvious regressions. Use various webapps. You can run the tests from mariadb-bench package too if you like. They can need some coaxing to work properly though and take quite some time.

# cd /usr/share/mysql/mysql-test
# ./mysql-test-run.pl
Comment 6 David Walser 2014-09-11 01:03:37 CEST
Working fine on our production Moodle and Mediawiki servers at work, Mageia 4 i586.

Whiteboard: MGA3TOO => MGA3TOO MGA4-32-OK

Comment 7 claire robinson 2014-09-11 15:35:43 CEST
Testing mga4 64 as comment 5

I'll try with mariadb-bench also.

Whiteboard: MGA3TOO MGA4-32-OK => MGA3TOO has_procedure MGA4-32-OK

Comment 8 claire robinson 2014-09-11 17:28:05 CEST
Testing complete mga4 64


Added the parallel=4 to use 4 available cores.

# cd /usr/share/mysql/mysql-test
# ./mysql-test-run --parallel=4

<snip lots of tests being run>

--------------------------------------------------------------------------
The servers were restarted 778 times
Spent 5595.633 of 1957 seconds executing testcases

Completed: All 2695 tests were successful.

382 tests were skipped, 190 by the test itself.

Whiteboard: MGA3TOO has_procedure MGA4-32-OK => MGA3TOO has_procedure MGA4-32-OK mga4-64-ok

Comment 9 claire robinson 2014-09-11 17:32:12 CEST
Testing mga3 32
Comment 10 William Kenney 2014-09-11 18:06:47 CEST
Testing mga3 32
These tests take a long time even on a fast computer  :-))
Comment 11 William Kenney 2014-09-11 18:44:48 CEST
In VirtualBox, M3, KDE, 32-bit

Package(s) under test:
mariadb mariadb-bench libmariadb-embedded18 mariadb-core mariadb-extra 

default install of mariadb & mariadb-bench

[root@localhost wilcal]# urpmi mariadb
Package mariadb-5.5.38-1.mga3.i586 is already installed
[root@localhost wilcal]# urpmi mariadb-bench
Package mariadb-bench-5.5.38-1.mga3.i586 is already installed
[root@localhost wilcal]# urpmi libmariadb-embedded18
Package libmariadb-embedded18-5.5.38-1.mga3.i586 is already installed
[root@localhost wilcal]# urpmi mariadb-core
Package mariadb-core-5.5.38-1.mga3.i586 is already installed
[root@localhost wilcal]# urpmi mariadb-extra
Package mariadb-extra-5.5.38-1.mga3.i586 is already installed

In su terminal cd /usr/share/mysql/mysql-test
ran lots of ./mysql-test-run --parallel=4 tests.
QTRL-z to stop.
Some skipped, no errors reported
http://localhost/owncloud/ opens and is usable

install mariadb & mariadb-bench from updates_testing

[root@localhost wilcal]# urpmi mariadb
Package mariadb-5.5.39-1.mga3.i586 is already installed
[root@localhost wilcal]# urpmi mariadb-bench
Package mariadb-bench-5.5.39-1.mga3.i586 is already installed
[root@localhost wilcal]# urpmi libmariadb-embedded18
Package libmariadb-embedded18-5.5.39-1.mga3.i586 is already installed
[root@localhost wilcal]# urpmi mariadb-core
Package mariadb-core-5.5.39-1.mga3.i586 is already installed
[root@localhost wilcal]# urpmi mariadb-extra
Package mariadb-extra-5.5.39-1.mga3.i586 is already installed

In su terminal cd /usr/share/mysql/mysql-test
ran lots of ./mysql-test-run --parallel=4 tests.
QTRL-z to stop.
Some skipped, no errors reported
http://localhost/owncloud/ opens and is usable

Test platform:
Intel Core i7-2600K Sandy Bridge 3.4GHz
GIGABYTE GA-Z68X-UD3-B3 LGA 1155 MoBo
GIGABYTE GV-N440D3-1GI Nvidia GeForce GT 440 (Fermi) 1GB
RTL8111/8168B PCI Express 1Gbit Ethernet
DRAM 16GB (4 x 4GB)
Mageia 4 64-bit, Nvidia driver
virtualbox-4.3.10-1.1.mga4.x86_64
virtualbox-guest-additions-4.3.10-1.1.mga4.x86_64
Comment 12 claire robinson 2014-09-11 19:02:37 CEST
Stopping my mga3 32 then as it still has over 2hrs to go.
Comment 13 William Kenney 2014-09-11 19:09:45 CEST
I gave up too :-))
Comment 14 William Kenney 2014-09-11 19:10:48 CEST
In VirtualBox, M3, KDE, 64-bit

Package(s) under test:
mariadb mariadb-bench lib64mariadb-embedded18 mariadb-core mariadb-extra owncloud

default install of mariadb & mariadb-bench

[root@localhost wilcal]# urpmi mariadb
Package mariadb-5.5.38-1.mga3.x86_64 is already installed
[root@localhost wilcal]# urpmi mariadb-bench
Package mariadb-bench-5.5.38-1.mga3.x86_64 is already installed
[root@localhost wilcal]# urpmi lib64mariadb-embedded18
Package lib64mariadb-embedded18-5.5.38-1.mga3.x86_64 is already installed
[root@localhost wilcal]# urpmi mariadb-core
Package mariadb-core-5.5.38-1.mga3.x86_64 is already installed
[root@localhost wilcal]# urpmi mariadb-extra
Package mariadb-extra-5.5.38-1.mga3.x86_64 is already installed
[root@localhost wilcal]# urpmi owncloud
Package owncloud-5.0.17-1.mga3.noarch is already installed

In su terminal cd /usr/share/mysql/mysql-test
ran lots of ./mysql-test-run --parallel=4 tests.
QTRL-z to stop.
Some skipped, lots pass, no errors reported
http://localhost/owncloud/ opens and is usable

install mariadb & mariadb-bench from updates_testing

[root@localhost wilcal]# urpmi mariadb
Package mariadb-5.5.39-1.mga3.x86_64 is already installed
[root@localhost wilcal]# urpmi mariadb-bench
Package mariadb-bench-5.5.39-1.mga3.x86_64 is already installed
[root@localhost wilcal]# urpmi lib64mariadb-embedded18
Package lib64mariadb-embedded18-5.5.39-1.mga3.x86_64 is already installed
[root@localhost wilcal]# urpmi mariadb-core
Package mariadb-core-5.5.39-1.mga3.x86_64 is already installed
[root@localhost wilcal]# urpmi mariadb-extra
Package mariadb-extra-5.5.39-1.mga3.x86_64 is already installed
[root@localhost wilcal]# urpmi owncloud
Package owncloud-5.0.17-1.mga3.noarch is already installed

In su terminal cd /usr/share/mysql/mysql-test
ran lots of ./mysql-test-run --parallel=4 tests.
QTRL-z to stop.
Some skipped, lots pass, no errors reported
http://localhost/owncloud/ opens and is usable

Test platform:
Intel Core i7-2600K Sandy Bridge 3.4GHz
GIGABYTE GA-Z68X-UD3-B3 LGA 1155 MoBo
GIGABYTE GV-N440D3-1GI Nvidia GeForce GT 440 (Fermi) 1GB
RTL8111/8168B PCI Express 1Gbit Ethernet
DRAM 16GB (4 x 4GB)
Mageia 4 64-bit, Nvidia driver
virtualbox-4.3.10-1.1.mga4.x86_64
virtualbox-guest-additions-4.3.10-1.1.mga4.x86_64
Comment 15 William Kenney 2014-09-11 19:12:58 CEST
I think we have our simple procedure here. Run some
simple webapp and the mysql-test for a little while
and we can be reasonably assured that mariadb was
installed/updated correctly and is running.
William Kenney 2014-09-11 19:13:25 CEST

Whiteboard: MGA3TOO has_procedure MGA4-32-OK mga4-64-ok => MGA3TOO has_procedure MGA3-32-OK MGA3-64-OK MGA4-32-OK mga4-64-ok

Comment 16 AL13N 2014-09-11 19:47:58 CEST
heh, well, i'll have you know that when i submitted packages, i did this testing locally before submission, but with --enable-big-tests and i waited for them to complete before submission...

i donno if oden does this too...
Comment 17 William Kenney 2014-09-11 21:46:03 CEST
This update works fine.
Testing complete for mga3 32-bit & 64-bit
Testing complete for mga4 32-bit & 64-bit
Validating the update.
Could someone from the sysadmin team push this to updates.
Thanks

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

Comment 18 claire robinson 2014-09-12 14:43:59 CEST
Advisory uploaded.

Whiteboard: MGA3TOO has_procedure MGA3-32-OK MGA3-64-OK MGA4-32-OK mga4-64-ok => MGA3TOO has_procedure advisory MGA3-32-OK MGA3-64-OK MGA4-32-OK mga4-64-ok

Comment 19 Mageia Robot 2014-09-15 12:37:19 CEST
An update for this issue has been pushed to Mageia Updates repository.

http://advisories.mageia.org/MGASA-2014-0377.html

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

Comment 20 David Walser 2014-10-24 17:42:45 CEST
Full list of CVEs fixed in this update appears to be the following:
CVE-2012-5615
CVE-2014-4274
CVE-2014-4287
CVE-2014-6463
CVE-2014-6478
CVE-2014-6484
CVE-2014-6495
CVE-2014-6505
CVE-2014-6520
CVE-2014-6530
CVE-2014-6551

See Bug 14304 for more information.

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