Bug 1801181 (CVE-2020-6405)

Summary: CVE-2020-6405 sqlite: Out-of-bounds read in SELECT with ON/USING clause
Product: [Other] Security Response Reporter: Marian Rehak <mrehak>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: alex, bazanluis20, databases-maint, drizt72, erack, erik-fedora, fedora, itamar, jstanek, mschorm, odubaj, pkubat, praiskup, rh-spice-bugs, rjones, tcallawa, tpopela, yaneti
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: chromium-browser 80.0.3987.87, sqlite 3.31.0 Doc Type: If docs needed, set a value
Doc Text:
An out-of-bounds read vulnerability was found in the SQLite component of the Chromium browser. A remote attacker could abuse this flaw to obtain potentially sensitive information from process memory via a crafted HTML page. The highest threat from this vulnerability is to data confidentiality.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-02-17 14:12:11 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: 1801837, 1801838, 1801839, 1804823, 1805306, 1805307    
Bug Blocks: 1802811    

Description Marian Rehak 2020-02-10 11:54:10 UTC
An out of bounds read flaw was found in the SQLite component of the Chromium browser.

Upstream bug(s):

https://code.google.com/p/chromium/issues/detail?id=1042145

External References:

https://chromereleases.googleblog.com/2020/02/stable-channel-update-for-desktop.html

Comment 1 Tomas Hoger 2020-02-11 17:42:35 UTC
Created chromium tracking bugs for this issue:

Affects: epel-7 [bug 1801839]
Affects: fedora-all [bug 1801838]

Comment 4 errata-xmlrpc 2020-02-17 08:29:05 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 6 Supplementary

Via RHSA-2020:0514 https://access.redhat.com/errata/RHSA-2020:0514

Comment 5 Product Security DevOps Team 2020-02-17 14:12:11 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2020-6405

Comment 6 Mauro Matteo Cascella 2020-02-18 17:18:44 UTC
The out-of-bounds read flaw lies in function propagateConstantExprRewrite() in src/select.c, which is part of the WHERE-clause constant propagation optimization.

The initial implementation of this feature was introduced in SQLite upstream version 3.25.0 with commit https://github.com/sqlite/sqlite/commit/660ee55663fb8aa26a7ebd764ec5c94440bcd62f.

Comment 7 Mauro Matteo Cascella 2020-02-18 17:21:52 UTC
Statement:

This flaw did not affect the versions of SQLite as shipped with Red Hat Enterprise Linux 5, 6 and 7 as they did not include the WHERE-clause constant propagation optimization, which was introduced in a later version of the package.

Comment 9 Mauro Matteo Cascella 2020-02-20 16:21:50 UTC
Created mingw-sqlite tracking bugs for this issue:

Affects: fedora-all [bug 1805307]


Created sqlite tracking bugs for this issue:

Affects: fedora-all [bug 1805306]

Comment 10 errata-xmlrpc 2020-11-04 00:59:42 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2020:4442 https://access.redhat.com/errata/RHSA-2020:4442