Bug 1692365 (CVE-2019-9936) - CVE-2019-9936 sqlite: heap-based buffer over-read in function fts5HashEntrySort in sqlite3.c
Summary: CVE-2019-9936 sqlite: heap-based buffer over-read in function fts5HashEntrySo...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2019-9936
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1692366 1695693
Blocks: 1692370
TreeView+ depends on / blocked
 
Reported: 2019-03-25 13:00 UTC by Dhananjay Arunesh
Modified: 2021-10-27 03:27 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-10-27 03:27:15 UTC
Embargoed:


Attachments (Terms of Use)

Description Dhananjay Arunesh 2019-03-25 13:00:39 UTC
In SQLite 3.27.2, running fts5 prefix queries inside a transaction could trigger a heap-based buffer over-read in fts5HashEntrySort in sqlite3.c, which may lead to an information leak. This is related to ext/fts5/fts5_hash.c.

References:
https://sqlite.org/src/info/b3fa58dd7403dbd4 
https://www.mail-archive.com/sqlite-users@mailinglists.sqlite.org/msg114382.html
https://www.mail-archive.com/sqlite-users@mailinglists.sqlite.org/msg114394.html

Comment 1 Dhananjay Arunesh 2019-03-25 13:00:52 UTC
Created sqlite tracking bugs for this issue:

Affects: fedora-all [bug 1692366]

Comment 3 Marco Benatto 2019-04-03 15:02:48 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 6 Marco Benatto 2019-05-15 12:21:07 UTC
Upstream patch:
https://sqlite.org/src/info/b3fa58dd7403dbd4


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