Bug 6870 - perl-DBD-Pg new security issue CVE-2012-1151
Summary: perl-DBD-Pg new security issue CVE-2012-1151
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Security (show other bugs)
Version: 1
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL: http://lwn.net/Vulnerabilities/486225/
Whiteboard: has_procedure MGA1-64-OK MGA1-32-OK
Keywords: validated_update
Depends on:
Blocks:
 
Reported: 2012-07-26 13:49 CEST by David Walser
Modified: 2012-07-30 21:30 CEST (History)
4 users (show)

See Also:
Source RPM: perl-DBD-Pg-2.18.1-2.mga2.src.rpm
CVE:
Status comment:


Attachments

Description David Walser 2012-07-26 13:49:55 CEST
Mandriva has issued an advisory today (July 26):
http://www.mandriva.com/en/support/security/advisories/?dis=2011&name=MDVSA-2012:112

Mageia 1 and 2 are also affected.
David Walser 2012-07-26 13:50:13 CEST

CC: (none) => jquelin
Whiteboard: (none) => MGA2TOO, MGA1TOO

Comment 1 David Walser 2012-07-26 15:22:13 CEST
The version we have in Cauldron is not affected.

Version: Cauldron => 2
Whiteboard: MGA2TOO, MGA1TOO => MGA1TOO

Comment 2 David Walser 2012-07-26 15:26:20 CEST
This is already fixed in Mageia 2.

Version: 2 => 1
Whiteboard: MGA1TOO => (none)

Comment 3 David Walser 2012-07-26 15:40:01 CEST
Patched package uploaded for Mageia 1.

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

Updated perl-DBD-Pg package fixes security vulnerability:

Two format string flaws were found in the way perl-DBD-Pg. A
rogue server could provide a specially-crafted database warning
or specially-crafted DBD statement, which once processed by the
perl-DBD-Pg interface would lead to perl-DBD-Pg based process crash
(CVE-2012-1151).

References:
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-1151
http://www.mandriva.com/en/support/security/advisories/?dis=2011&name=MDVSA-2012:112
========================

Updated packages in core/updates_testing:
========================
perl-DBD-Pg-2.18.0-1.1.mga1

from perl-DBD-Pg-2.18.0-1.1.mga1.src.rpm

Assignee: bugsquad => qa-bugs

David Walser 2012-07-26 22:52:45 CEST

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

Comment 4 Jerome Quelin 2012-07-27 10:13:29 CEST
thank you for taking time to do the update. i'm on vacation and do not look my mails on a regular basis.
Comment 5 Samuel Verschelde 2012-07-28 17:38:25 CEST
Just testing the package still works.

Testing complete on Mageia 1 64 bits using the following procedure. Jérôme, if you have any comment about the way I tested, please tell :)

--- Installation ---
urpmi perl-DBD-Pg --search-media "Updates Testing"
urpmi postgresql9.0 postgresql9.0-server

--- Create a test database ---
su -l postgres -c "psql" 
postgres=# drop database if exists qatest;
postgres=# create database qatest;
CREATE DATABASE
postgres=# \c qatest;
You are now connected to database "qatest".
qatest=# create table qatest_table (id INT, caption VARCHAR);
CREATE TABLE
qatest=# \d qatest_table
       Table "public.qatest_table"
 Column  |       Type        | Modifiers
---------+-------------------+-----------
 id      | integer           |
 caption | character varying |

qatest=# insert into qatest_table values (1, 'mageia'), (2, 'QA');
INSERT 0 2
qatest=# \q

--- Start perl in interactive debug mode to test DBI ---
perl -d -e 1

Then inside the debugger:

use DBI
$dbh = DBI->connect ( "dbi:Pg:dbname=qatest", "postgres", "")
print defined($dbh) #must print "1"
$sth = $dbh->prepare("SELECT * FROM qatest_table")
$sth->execute()
print $sth->fetchrow() #displays "1mageia"
print $sth->fetchrow() #displays "2QA"

CC: (none) => stormi

Samuel Verschelde 2012-07-28 17:38:43 CEST

Whiteboard: (none) => has_procedure MGA1-64-OK

Comment 6 Samuel Verschelde 2012-07-30 19:41:23 CEST
Testing complete on Mageia 1 32 bits, and procedure added to the wiki: https://wiki.mageia.org/en/QA_procedure:Perl-dbd-pg

Update validated. No linking required. Thanks!

See comment #3 for advisory and packages.

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs
Whiteboard: has_procedure MGA1-64-OK => has_procedure MGA1-64-OK MGA1-32-OK

Comment 7 Thomas Backlund 2012-07-30 21:30:13 CEST
Update pushed:
https://wiki.mageia.org/en/Support/Advisories/MGASA-2012-0187

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


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