Bug 1692357 (CVE-2019-9937)

Summary: CVE-2019-9937 sqlite: null-pointer dereference in function fts5ChunkIterate in sqlite3.c
Product: [Other] Security Response Reporter: Dhananjay Arunesh <darunesh>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: databases-maint, hhorak, itamar, jakub.dornak, mdogra, mschorm, pkubat, praiskup, 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:
A vulnerability was found in SQLite due to a NULL pointer dereference in the fts5ChunkIterate function within sqlite3.c, where an attacker could exploit this flaw by creating a specially crafted table, causing the application to crash and resulting in a denial of service condition.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-27 03:27:02 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: 1692358, 1694734    
Bug Blocks: 1692370    

Description Dhananjay Arunesh 2019-03-25 12:49:17 UTC
In SQLite 3.27.2, interleaving reads and writes in a single transaction with an fts5 virtual table will lead to a NULL Pointer Dereference in fts5ChunkIterate in sqlite3.c. This is related to ext/fts5/fts5_hash.c and ext/fts5/fts5_index.c.

References:
https://sqlite.org/src/info/45c73deb440496e8
https://www.mail-archive.com/sqlite-users@mailinglists.sqlite.org/msg114383.html
https://www.mail-archive.com/sqlite-users@mailinglists.sqlite.org/msg114393.html

Comment 1 Dhananjay Arunesh 2019-03-25 12:50:35 UTC
Created sqlite tracking bugs for this issue:

Affects: fedora-all [bug 1692358]

Comment 6 Marco Benatto 2019-03-29 19:20:32 UTC
Statement:

This issue did not affect the versions of sqlite as shipped with Red Hat Enterprise Linux 6 and 7 as they did not include support for fts5.

Comment 9 Marco Benatto 2019-05-15 12:03:39 UTC
Upstream commit for this issue:
https://sqlite.org/src/info/45c73deb440496e8

Comment 13 Red Hat Bugzilla 2025-06-08 04:25:02 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days