Bug 1789595 (CVE-2019-19959)

Summary: CVE-2019-19959 sqlite: mishandles certain uses of INSERT INTO in situations involving embedded '\0' characters in filenames
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: databases-maint, drizt72, erik-fedora, fedora, itamar, jstanek, mschorm, odubaj, pkubat, praiskup, rh-spice-bugs, rjones, wilmer5
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-28 16:35:18 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: 1789597, 1789598, 1789599, 1789823    
Bug Blocks: 1789600    

Description Guilherme de Almeida Suckevicz 2020-01-09 21:23:42 UTC
ext/misc/zipfile.c in SQLite 3.30.1 mishandles certain uses of INSERT INTO in situations involving embedded '\0' characters in filenames, leading to a memory-management error that can be detected by (for example) valgrind.

References and upstream commits:
https://github.com/sqlite/sqlite/commit/1e490c4ca6b43a9cf8637d695907888349f69bec
https://github.com/sqlite/sqlite/commit/d8f2d46cbc9925e034a68aaaf60aad788d9373c1

Comment 1 Guilherme de Almeida Suckevicz 2020-01-09 21:24:53 UTC
Created mingw-sqlite tracking bugs for this issue:

Affects: epel-7 [bug 1789599]
Affects: fedora-all [bug 1789597]


Created sqlite tracking bugs for this issue:

Affects: fedora-all [bug 1789598]

Comment 2 Huzaifa S. Sidhpurwala 2020-01-10 14:06:30 UTC
Statement:

The zip extension was introduced in sqlite-3.22.0, therefore previous versions are not affected by this flaw.

Comment 4 errata-xmlrpc 2020-04-28 15:55:27 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

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

Comment 5 Product Security DevOps Team 2020-04-28 16:35:18 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-2019-19959