Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 777990 (CVE-2021-20227) - <dev-db/sqlite-3.34.1: use after free leading to possible code execution (CVE-2021-20227)
Summary: <dev-db/sqlite-3.34.1: use after free leading to possible code execution (CVE...
Status: RESOLVED FIXED
Alias: CVE-2021-20227
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal major
Assignee: Gentoo Security
URL: https://www.sqlite.org/releaselog/3_3...
Whiteboard: A2 [glsa+]
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-24 14:42 UTC by John Helmert III
Modified: 2022-10-31 20:27 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2021-03-24 14:42:01 UTC
CVE-2021-20227 (https://bugzilla.redhat.com/show_bug.cgi?id=1924886):

A flaw was found in SQLite's SELECT query functionality (src/select.c). This flaw allows an attacker who is capable of running SQL queries locally on the SQLite database to cause a denial of service or possible code execution by triggering a use-after-free. The highest threat from this vulnerability is to system availability.


Fixed in 3.34.1, please bump.
Comment 1 Larry the Git Cow gentoo-dev 2021-03-26 14:38:13 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=132acb75720c31a40559b2d9e279182318b8eb4b

commit 132acb75720c31a40559b2d9e279182318b8eb4b
Author:     Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
AuthorDate: 2021-03-25 00:00:00 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2021-03-26 14:38:01 +0000

    dev-db/sqlite: Version bump (3.34.1).
    
    Bug: https://bugs.gentoo.org/777990
    Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 dev-db/sqlite/Manifest                            |   2 +
 dev-db/sqlite/files/sqlite-3.34.1-build_1.1.patch | 375 ++++++++++++++++
 dev-db/sqlite/files/sqlite-3.34.1-build_1.2.patch | 500 ++++++++++++++++++++++
 dev-db/sqlite/files/sqlite-3.34.1-build_2.1.patch | 291 +++++++++++++
 dev-db/sqlite/files/sqlite-3.34.1-build_2.2.patch | 441 +++++++++++++++++++
 dev-db/sqlite/sqlite-3.34.1.ebuild                | 427 ++++++++++++++++++
 6 files changed, 2036 insertions(+)
Comment 2 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2021-03-26 14:40:40 UTC
Please cleanup.
Comment 3 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2021-03-26 14:48:47 UTC
(In reply to John Helmert III from comment #2)
> Please cleanup.

No, that's wrong. Ready to stabilize for other arches?
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-03-26 18:37:56 UTC
ppc64 done
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-03-26 18:38:05 UTC
ppc done
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-03-26 23:52:32 UTC
arm64 done
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-03-27 16:08:36 UTC
sparc done
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-03-28 07:10:46 UTC
arm done
Comment 9 Rolf Eike Beer archtester 2021-03-29 19:49:31 UTC
hppa stable
Comment 10 Thomas Deutschmann (RETIRED) gentoo-dev 2021-03-31 12:07:29 UTC
New GLSA request filed.
Comment 11 Agostino Sarubbo gentoo-dev 2021-03-31 14:08:41 UTC
s390 stable.

Maintainer(s), please cleanup.
Comment 12 NATTkA bot gentoo-dev 2021-03-31 14:09:03 UTC Comment hidden (obsolete)
Comment 13 Larry the Git Cow gentoo-dev 2021-04-02 15:00:55 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=648611c35f8bdad94062e54b39cdffc63acc0a50

commit 648611c35f8bdad94062e54b39cdffc63acc0a50
Author:     Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
AuthorDate: 2021-04-01 22:00:00 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2021-04-02 15:00:48 +0000

    dev-db/sqlite: Delete old versions (3.33.0, 3.34.0).
    
    Bug: https://bugs.gentoo.org/777990
    Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 dev-db/sqlite/Manifest                            |   4 -
 dev-db/sqlite/files/sqlite-3.33.0-build_1.1.patch | 413 ------------------
 dev-db/sqlite/files/sqlite-3.33.0-build_1.2.patch | 422 ------------------
 dev-db/sqlite/files/sqlite-3.33.0-build_2.1.patch | 286 -------------
 dev-db/sqlite/files/sqlite-3.33.0-build_2.2.patch | 434 -------------------
 dev-db/sqlite/files/sqlite-3.34.0-build_1.1.patch | 375 ----------------
 dev-db/sqlite/files/sqlite-3.34.0-build_1.2.patch | 500 ----------------------
 dev-db/sqlite/files/sqlite-3.34.0-build_2.1.patch | 291 -------------
 dev-db/sqlite/files/sqlite-3.34.0-build_2.2.patch | 441 -------------------
 dev-db/sqlite/sqlite-3.33.0.ebuild                | 374 ----------------
 dev-db/sqlite/sqlite-3.34.0.ebuild                | 434 -------------------
 11 files changed, 3974 deletions(-)
Comment 14 NATTkA bot gentoo-dev 2021-07-29 17:23:35 UTC Comment hidden (obsolete)
Comment 15 NATTkA bot gentoo-dev 2021-07-29 17:31:57 UTC Comment hidden (obsolete)
Comment 16 NATTkA bot gentoo-dev 2021-07-29 17:39:52 UTC Comment hidden (obsolete)
Comment 17 NATTkA bot gentoo-dev 2021-07-29 17:48:02 UTC Comment hidden (obsolete)
Comment 18 NATTkA bot gentoo-dev 2021-07-29 18:03:59 UTC Comment hidden (obsolete)
Comment 19 NATTkA bot gentoo-dev 2021-07-29 18:12:17 UTC
Package list is empty or all packages have requested keywords.
Comment 20 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-10-31 14:52:32 UTC
GLSA request filed
Comment 21 Larry the Git Cow gentoo-dev 2022-10-31 20:26:22 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/data/glsa.git/commit/?id=b966ebfc6ef872316dabbe9fe102bd7f47faadb1

commit b966ebfc6ef872316dabbe9fe102bd7f47faadb1
Author:     GLSAMaker <glsamaker@gentoo.org>
AuthorDate: 2022-10-31 20:24:49 +0000
Commit:     John Helmert III <ajak@gentoo.org>
CommitDate: 2022-10-31 20:25:51 +0000

    [ GLSA 202210-40 ] SQLite: Multiple Vulnerabilities
    
    Bug: https://bugs.gentoo.org/777990
    Bug: https://bugs.gentoo.org/863431
    Signed-off-by: GLSAMaker <glsamaker@gentoo.org>
    Signed-off-by: John Helmert III <ajak@gentoo.org>

 glsa-202210-40.xml | 44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)
Comment 22 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-10-31 20:27:53 UTC
GLSA released, all done!