Bug 1212356 (CVE-2015-3415)

Summary: CVE-2015-3415 sqlite: invalid free() in src/vdbe.c
Product: [Other] Security Response Reporter: Vasyl Kaigorodov <vkaigoro>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: carnil, databases-maint, ddu, jstanek, santony, sisharma, wilmer5
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: SQLite 3.8.9 Doc Type: Bug Fix
Doc Text:
It was found that SQLite's sqlite3VdbeExec() function did not properly implement comparison operators. A local attacker could submit a specially crafted CHECK statement that would crash the SQLite process, or have other unspecified impacts.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-17 12:36:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1212360, 1244731, 1244732    
Bug Blocks: 1212358    
Attachments:
Description Flags
Backported upstream patch for RHEL7 none

Description Vasyl Kaigorodov 2015-04-16 09:15:38 UTC
Invalid free() issue was reported in SQLite.
This was fixed by following upstream commit:

https://www.sqlite.org/src/info/02e3c88fbf6abdcf

More information about this issue can be found in the links below:
http://www.securityfocus.com/archive/1/535269
http://lcamtuf.blogspot.fr/2015/04/finding-bugs-in-sqlite-easy-way.html

Comment 1 Vasyl Kaigorodov 2015-04-16 09:20:30 UTC
Created sqlite tracking bugs for this issue:

Affects: fedora-all [bug 1212360]

Comment 2 Fedora Update System 2015-04-22 22:46:08 UTC
spatialite-tools-4.2.0-10.fc21, sqlite-3.8.9-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 3 Fedora Update System 2015-04-23 16:09:09 UTC
spatialite-tools-4.2.0-10.fc22, sqlite-3.8.9-1.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 4 Fedora Update System 2015-04-26 12:56:48 UTC
spatialite-tools-4.1.1-12.fc20, sqlite-3.8.9-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Vasyl Kaigorodov 2015-04-28 13:36:13 UTC
Common Vulnerabilities and Exposures assigned an identifier CVE-2015-3415 to
the following vulnerability:

Name: CVE-2015-3415
URL: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-3415
Assigned: 20150424
Reference: https://www.sqlite.org/src/info/02e3c88fbf6abdcf3975fb0fb71972b0ab30da30

The sqlite3VdbeExec function in vdbe.c in SQLite before 3.8.9 does not
properly implement comparison operators, which allows
context-dependent attackers to cause a denial of service (invalid free
operation) or possibly have unspecified other impact via a crafted
CHECK clause, as demonstrated by CHECK(0&O>O) in a CREATE TABLE
statement.

Comment 7 Siddharth Sharma 2015-07-03 09:03:27 UTC
RHEL 5 and 6 are *NOT affected by this flaw as the code affected by this CVE is not present in the sqlite package shipped for these products.

Comment 10 Jan Staněk 2015-07-23 11:17:00 UTC
Created attachment 1055285 [details]
Backported upstream patch for RHEL7

Comment 11 errata-xmlrpc 2015-08-17 11:45:15 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2015:1635 https://rhn.redhat.com/errata/RHSA-2015-1635.html