Bug 21200 - sqlite3 new security issues CVE-2017-10989 and CVE-2017-7000
Summary: sqlite3 new security issues CVE-2017-10989 and CVE-2017-7000
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Security (show other bugs)
Version: 6
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact: Sec team
URL:
Whiteboard: advisory MGA5TOO MGA5-64-OK MGA6-32-OK
Keywords: validated_update
Depends on:
Blocks:
 
Reported: 2017-07-07 21:01 CEST by David Walser
Modified: 2017-08-03 21:06 CEST (History)
4 users (show)

See Also:
Source RPM: sqlite3-3.17.0-2.mga6.src.rpm
CVE:
Status comment:


Attachments
create a test table for sqlite3 (182 bytes, application/sql)
2017-08-02 16:13 CEST, Herman Viaene
Details

Description David Walser 2017-07-07 21:01:59 CEST
A security issue in sqlite3 has been announced:
http://openwall.com/lists/oss-security/2017/07/07/16

As noted there, a fix is in progress upstream.
David Walser 2017-07-07 21:02:17 CEST

Whiteboard: (none) => MGA6TOO, MGA5TOO

Comment 1 Marja Van Waes 2017-07-07 21:19:00 CEST
Assigning to all packagers collectively, since there is no registered maintainer for this package.

Assignee: bugsquad => pkg-bugs
CC: (none) => marja11

Comment 2 David Walser 2017-07-14 22:13:49 CEST
Fedora has issued an advisory for this today (July 14):
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/5LTI7HXMO72BGOW6GWY4GIWPZBXLF3UH/
Comment 3 David Walser 2017-07-26 12:42:18 CEST
The newest Chrome update mentions CVE-2017-7000 in SQLite, so this may be affected:
https://chromereleases.googleblog.com/2017/07/stable-channel-update-for-desktop.html
Comment 4 David Walser 2017-07-30 03:19:08 CEST
CVE-2017-10989 only affects Mageia 5 (< 3.17), according to RedHat.

I found the patch from Google Chrome for CVE-2017-7000, which was a relatively easy rediff for 3.17 in Mageia 6 (checked into SVN), but not so much for Mageia 5.

Version: Cauldron => 6
Summary: sqlite3 new security issue CVE-2017-10989 => sqlite3 new security issues CVE-2017-10989 and CVE-2017-7000
Whiteboard: MGA6TOO, MGA5TOO => MGA5TOO

Comment 5 David Walser 2017-07-30 03:33:52 CEST
Patch for CVE-2017-7000 successfully rediffed for Mageia 5 and checked into SVN.
Comment 6 David Walser 2017-07-30 03:36:30 CEST
Patch for CVE-2017-10989 also checked into Mageia 5 SVN.
Comment 7 David Walser 2017-07-30 03:54:32 CEST
Patched packages uploaded for Mageia 5, Mageia 6, and Cauldron.

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

Updated sqlite3 package fixes security vulnerability:

Pointer disclosure in SQLite (CVE-2017-7000).

The getNodeSize function in ext/rtree/rtree.c in SQLite mishandles undersized
RTree blobs in a crafted database, leading to a heap-based buffer over-read or
possibly unspecified other impact (CVE-2017-10989).

Note: the CVE-2017-10989 issue only affected Mageia 5.

References:
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-7000
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-10989
https://chromereleases.googleblog.com/2017/07/stable-channel-update-for-desktop.html
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/5LTI7HXMO72BGOW6GWY4GIWPZBXLF3UH/
========================

Updated packages in core/updates_testing:
========================
libsqlite3_0-3.10.2-1.1.mga5
libsqlite3-devel-3.10.2-1.1.mga5
libsqlite3-static-devel-3.10.2-1.1.mga5
sqlite3-tools-3.10.2-1.1.mga5
lemon-3.10.2-1.1.mga5
sqlite3-tcl-3.10.2-1.1.mga5
libsqlite3_0-3.17.0-2.1.mga6
libsqlite3-devel-3.17.0-2.1.mga6
libsqlite3-static-devel-3.17.0-2.1.mga6
sqlite3-tools-3.17.0-2.1.mga6
lemon-3.17.0-2.1.mga6
sqlite3-tcl-3.17.0-2.1.mga6

from SRPMS:
sqlite3-3.10.2-1.1.mga5.src.rpm
sqlite3-3.17.0-2.1.mga6.src.rpm

Assignee: pkg-bugs => qa-bugs

Comment 8 PC LX 2017-08-01 01:12:59 CEST
Installed and tested (e.g. created DB, sqlite using programs) without issues.

System: Mageia 5, x86_64, Plasma, Intel CPU, nVidia GPU using proprietary driver.

$ rpm -qa | grep sqlite3 | sort
lib64sqlite3_0-3.10.2-1.1.mga5
sqlite3-tools-3.10.2-1.1.mga5
$ uname -a
Linux marte 4.4.79-desktop-1.mga5 #1 SMP Fri Jul 28 02:50:06 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

CC: (none) => mageia
Whiteboard: MGA5TOO => MGA5TOO MGA5-64-OK

Comment 9 Herman Viaene 2017-08-02 16:12:35 CEST
MGA6-32 on Asus A6000VM MATE
No installation issues.
Found a small test in https://www.acmesystems.it/sqlite
I will upload the create.sql file
At CLI:
$ sqlite3 testlite.db
SQLite version 3.17.0 2017-02-13 16:02:40
Enter ".help" for usage hints.
sqlite> .databases
main: /home/tester6/testlite.db
sqlite> .tables
sqlite> .quit
$ sqlite3 testlite.db < create.sql
[tester6@mach6 Documenten]$ sqlite3 testlite.db
SQLite version 3.17.0 2017-02-13 16:02:40
Enter ".help" for usage hints.
sqlite> select * from events; 
2017-08-02 14:07:04|First test event
2017-08-02 14:07:04|Second test event
sqlite> .quit
Looks OK.

CC: (none) => herman.viaene

Comment 10 Herman Viaene 2017-08-02 16:13:30 CEST
Created attachment 9555 [details]
create a test table for sqlite3
Herman Viaene 2017-08-02 16:14:16 CEST

Whiteboard: MGA5TOO MGA5-64-OK => MGA5TOO MGA5-64-OK MGA6-32-OK

Rémi Verschelde 2017-08-03 09:44:58 CEST

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

Rémi Verschelde 2017-08-03 18:53:46 CEST

Whiteboard: MGA5TOO MGA5-64-OK MGA6-32-OK => advisory MGA5TOO MGA5-64-OK MGA6-32-OK

Comment 11 Mageia Robot 2017-08-03 21:06:37 CEST
An update for this issue has been pushed to the Mageia Updates repository.

http://advisories.mageia.org/MGASA-2017-0238.html

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


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