#47231sqlite package is vulnerable to CVE-2020-11655, CVE-2020-11656, CVE-2020-13434, CVE-2020-13435, CVE-2020-13630, CVE-2020-13631, CVE-2020-13632, CVE-2020-15358 and CVE-2020-9327
Report forwarded
to bug-guix@gnu.org: bug#47231; Package guix.
(Thu, 18 Mar 2021 11:43:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Léo Le Bouter <lle-bout@zaclys.net>:
New bug report received and forwarded. Copy sent to bug-guix@gnu.org.
(Thu, 18 Mar 2021 11:43:02 GMT) (full text, mbox, link).
According to
https://www.sqlite.org/versionnumbers.html major versions of sqlite remain ABI and file format backwards
compatible.
It means we could graft without trouble, 3.32.3 fixes all CVEs, however
3.32 introduces a test failure in Python 3.8.2 which is an errorneous
test testing internal sqlite implementation detail (but grafting wont
actually re-run this test suite).
See: https://bugs.python.org/issue40784
Otherwise I am still trying to run GNU Guix's own test suite on this
but it turns out unnecessarily complicated, see
https://issues.guix.gnu.org/47230 for suggestions on improving that
process.
Attached WIP patch.
Thank you!
Léo
Added tag(s) security.
Request was from Léo Le Bouter <lle-bout@zaclys.net>
to control@debbugs.gnu.org.
(Fri, 19 Mar 2021 10:31:01 GMT) (full text, mbox, link).
Information forwarded
to bug-guix@gnu.org: bug#47231; Package guix.
(Tue, 23 Mar 2021 23:38:01 GMT) (full text, mbox, link).
One more:
CVE-2021-20227 23.03.21 18:15
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.
I could test the graft with GNU Guix's test suite by manually replacing
the sqlite input with sqlite/fixed like so:
diff --git a/gnu/packages/package-management.scm
b/gnu/packages/package-management.scm
index 888f54322d..70f5c2dad3 100644
--- a/gnu/packages/package-management.scm
+++ b/gnu/packages/package-management.scm
@@ -389,7 +389,7 @@ $(prefix)/etc/init.d\n")))
(inputs
`(("bzip2" ,bzip2)
("gzip" ,gzip)
- ("sqlite" ,sqlite)
+ ("sqlite" ,sqlite/fixed)
("libgcrypt" ,libgcrypt)
("guile" ,guile-3.0-latest)
It worked fine.
Is that enough of a test to graft in master?
Let me know and I will push.
Léo
To: Léo Le Bouter <lle-bout@zaclys.net>, Ludovic
Courtès <ludo@gnu.org>
Cc: 47231@debbugs.gnu.org, bug-guix@gnu.org
Subject: Re: bug#47231: sqlite package is vulnerable to CVE-2020-11655,
CVE-2020-11656, CVE-2020-13434, CVE-2020-13435, CVE-2020-13630,
CVE-2020-13631, CVE-2020-13632, CVE-2020-15358 and CVE-2020-9327
Date: Thu, 25 Mar 2021 12:27:28 +0100
Thanks!
I'm currently rebuilding IceCat with this change as an extra
precaution, but that shouldn't take long. If that doesn't cause
problems this LGTM for master.
Ludo', do you think the Guix test described here is a good one?
Kind regards,
T G-R
Information forwarded
to bug-guix@gnu.org: bug#47231; Package guix.
(Thu, 25 Mar 2021 11:28:02 GMT) (full text, mbox, link).
Information forwarded
to bug-guix@gnu.org: bug#47231; Package guix.
(Thu, 25 Mar 2021 15:57:02 GMT) (full text, mbox, link).
Cc: 47231@debbugs.gnu.org, Léo Le Bouter <lle-bout@zaclys.net>,
bug-guix@gnu.org
Subject: Re: bug#47231: sqlite package is vulnerable to CVE-2020-11655,
CVE-2020-11656, CVE-2020-13434, CVE-2020-13435, CVE-2020-13630,
CVE-2020-13631, CVE-2020-13632, CVE-2020-15358 and CVE-2020-9327
Date: Thu, 25 Mar 2021 16:56:00 +0100
Tobias Geerinckx-Rice via Bug reports for GNU Guix writes:
> I'm currently rebuilding IceCat with this change as an extra
> precaution, but that shouldn't take long. If that doesn't cause
> problems this LGTM for master.
OK, it worked, old IceCat writes new SQlite files.
Kind regards,
T G-R
Information forwarded
to bug-guix@gnu.org: bug#47231; Package guix.
(Thu, 25 Mar 2021 15:57:02 GMT) (full text, mbox, link).
Information forwarded
to bug-guix@gnu.org: bug#47231; Package guix.
(Fri, 26 Mar 2021 01:26:01 GMT) (full text, mbox, link).
On Thu, 2021-03-25 at 21:23 -0400, Mark H Weaver wrote:
>
> Just a reminder that, just as with 'mysql/fixed', 'sqlite/fixed'
> should
> *not* use 'package/inherit', since the package you're defining is the
> replacement for the package you're inheriting from.
>
> Otherwise, it looks good to me!
>
> Thanks,
> Mark
Adapted, wasnt sure what package/inherit was for exactly.
Tobias Geerinckx-Rice via Bug reports for GNU Guix writes:
> > I'm currently rebuilding IceCat with this change as an extra
> > precaution, but that shouldn't take long. If that doesn't cause
> > problems this LGTM for master.
>
> OK, it worked, old IceCat writes new SQlite files.
>
> Kind regards,
>
> T G-R
Thank you both for the review!
Pushed as 6e7ba45357078b31a369b23f8a9f38302dfcbb10!
Debbugs is free software and licensed under the terms of the
GNU Public License version 2. The current version can be
obtained from https://bugs.debian.org/debbugs-source/.