diff options
| author | Hitendra Prajapati <hprajapati@mvista.com> | 2022-09-02 16:47:44 +0530 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-09-12 08:41:51 +0100 |
| commit | d24759196aa51525e21f3edfe867930c8e323fa7 (patch) | |
| tree | 6231bede1bff239d57ec2da0b9ce9b6d06c7bf64 /meta/recipes-support | |
| parent | a884e8bdbf9b3c8970eea617f82d3d72ff6e47be (diff) | |
| download | poky-d24759196aa51525e21f3edfe867930c8e323fa7.tar.gz | |
sqlite: CVE-2022-35737 assertion failure
Source: https://www.sqlite.org/
MR: 120541
Type: Security Fix
Disposition: Backport from https://www.sqlite.org/src/info/aab790a16e1bdff7
ChangeID: cf6d0962be0d1f7d4a5019843da6349eb7f9acda
Description:
CVE-2022-35737 sqlite: assertion failure via query when compiled with -DSQLITE_ENABLE_STAT4.
(From OE-Core rev: 226f9458075061cb99d71bee737bafbe73469c22)
Signed-off-by: Hitendra Prajapati <hprajapati@mvista.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
| -rw-r--r-- | meta/recipes-support/sqlite/files/CVE-2022-35737.patch | 29 | ||||
| -rw-r--r-- | meta/recipes-support/sqlite/sqlite3_3.31.1.bb | 1 |
2 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-support/sqlite/files/CVE-2022-35737.patch b/meta/recipes-support/sqlite/files/CVE-2022-35737.patch new file mode 100644 index 0000000000..341e002913 --- /dev/null +++ b/meta/recipes-support/sqlite/files/CVE-2022-35737.patch | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | From 2bbf4c999dbb4b520561a57e0bafc19a15562093 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Hitendra Prajapati <hprajapati@mvista.com> | ||
| 3 | Date: Fri, 2 Sep 2022 11:22:29 +0530 | ||
| 4 | Subject: [PATCH] CVE-2022-35737 | ||
| 5 | |||
| 6 | Upstream-Status: Backport [https://www.sqlite.org/src/info/aab790a16e1bdff7] | ||
| 7 | CVE: CVE-2022-35737 | ||
| 8 | Signed-off-by: Hitendra Prajapati <hprajapati@mvista.com> | ||
| 9 | --- | ||
| 10 | sqlite3.c | 3 ++- | ||
| 11 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
| 12 | |||
| 13 | diff --git a/sqlite3.c b/sqlite3.c | ||
| 14 | index f664217..33dfb78 100644 | ||
| 15 | --- a/sqlite3.c | ||
| 16 | +++ b/sqlite3.c | ||
| 17 | @@ -28758,7 +28758,8 @@ SQLITE_API void sqlite3_str_vappendf( | ||
| 18 | case etSQLESCAPE: /* %q: Escape ' characters */ | ||
| 19 | case etSQLESCAPE2: /* %Q: Escape ' and enclose in '...' */ | ||
| 20 | case etSQLESCAPE3: { /* %w: Escape " characters */ | ||
| 21 | - int i, j, k, n, isnull; | ||
| 22 | + i64 i, j, k, n; | ||
| 23 | + int isnull; | ||
| 24 | int needQuote; | ||
| 25 | char ch; | ||
| 26 | char q = ((xtype==etSQLESCAPE3)?'"':'\''); /* Quote character */ | ||
| 27 | -- | ||
| 28 | 2.25.1 | ||
| 29 | |||
diff --git a/meta/recipes-support/sqlite/sqlite3_3.31.1.bb b/meta/recipes-support/sqlite/sqlite3_3.31.1.bb index 877e80f5a3..3440bf4913 100644 --- a/meta/recipes-support/sqlite/sqlite3_3.31.1.bb +++ b/meta/recipes-support/sqlite/sqlite3_3.31.1.bb | |||
| @@ -13,6 +13,7 @@ SRC_URI = "http://www.sqlite.org/2020/sqlite-autoconf-${SQLITE_PV}.tar.gz \ | |||
| 13 | file://CVE-2020-13630.patch \ | 13 | file://CVE-2020-13630.patch \ |
| 14 | file://CVE-2020-13631.patch \ | 14 | file://CVE-2020-13631.patch \ |
| 15 | file://CVE-2020-13632.patch \ | 15 | file://CVE-2020-13632.patch \ |
| 16 | file://CVE-2022-35737.patch \ | ||
| 16 | " | 17 | " |
| 17 | SRC_URI[md5sum] = "2d0a553534c521504e3ac3ad3b90f125" | 18 | SRC_URI[md5sum] = "2d0a553534c521504e3ac3ad3b90f125" |
| 18 | SRC_URI[sha256sum] = "62284efebc05a76f909c580ffa5c008a7d22a1287285d68b7825a2b6b51949ae" | 19 | SRC_URI[sha256sum] = "62284efebc05a76f909c580ffa5c008a7d22a1287285d68b7825a2b6b51949ae" |
