diff options
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-support/sqlite/sqlite3/CVE-2025-3277.patch | 28 | ||||
| -rw-r--r-- | meta/recipes-support/sqlite/sqlite3_3.48.0.bb | 4 |
2 files changed, 31 insertions, 1 deletions
diff --git a/meta/recipes-support/sqlite/sqlite3/CVE-2025-3277.patch b/meta/recipes-support/sqlite/sqlite3/CVE-2025-3277.patch new file mode 100644 index 0000000000..8264d4443a --- /dev/null +++ b/meta/recipes-support/sqlite/sqlite3/CVE-2025-3277.patch | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | From d7f45414935e4ef6e3361f02a22876f1ee7a04aa Mon Sep 17 00:00:00 2001 | ||
| 2 | From: drh <> | ||
| 3 | Date: Sun, 16 Feb 2025 10:57:25 +0000 | ||
| 4 | Subject: [PATCH] Add a typecast to avoid 32-bit integer overflow in the | ||
| 5 | concat_ws() function with an enormous separator values and many arguments. | ||
| 6 | |||
| 7 | FossilOrigin-Name: 498e3f1cf57f164fbd8380e92bf91b9f26d6aa05d092fcd135d754abf1e5b1b5 | ||
| 8 | |||
| 9 | CVE: CVE-2025-3277 | ||
| 10 | Upstream-Status: Backport [https://sqlite.org/src/info/498e3f1cf57f164f] | ||
| 11 | Signed-off-by: Peter Marko <peter.marko@siemens.com> | ||
| 12 | --- | ||
| 13 | sqlite3.c | 2 +- | ||
| 14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 15 | |||
| 16 | diff --git a/sqlite3.c b/sqlite3.c | ||
| 17 | index 08c593e55c..24d0d954d9 100644 | ||
| 18 | --- a/sqlite3.c | ||
| 19 | +++ b/sqlite3.c | ||
| 20 | @@ -130954,7 +130954,7 @@ static void concatFuncCore( | ||
| 21 | for(i=0; i<argc; i++){ | ||
| 22 | n += sqlite3_value_bytes(argv[i]); | ||
| 23 | } | ||
| 24 | - n += (argc-1)*nSep; | ||
| 25 | + n += (argc-1)*(i64)nSep; | ||
| 26 | z = sqlite3_malloc64(n+1); | ||
| 27 | if( z==0 ){ | ||
| 28 | sqlite3_result_error_nomem(context); | ||
diff --git a/meta/recipes-support/sqlite/sqlite3_3.48.0.bb b/meta/recipes-support/sqlite/sqlite3_3.48.0.bb index bd2ac6614d..86983f21bd 100644 --- a/meta/recipes-support/sqlite/sqlite3_3.48.0.bb +++ b/meta/recipes-support/sqlite/sqlite3_3.48.0.bb | |||
| @@ -3,6 +3,8 @@ require sqlite3.inc | |||
| 3 | LICENSE = "PD" | 3 | LICENSE = "PD" |
| 4 | LIC_FILES_CHKSUM = "file://sqlite3.h;endline=11;md5=786d3dc581eff03f4fd9e4a77ed00c66" | 4 | LIC_FILES_CHKSUM = "file://sqlite3.h;endline=11;md5=786d3dc581eff03f4fd9e4a77ed00c66" |
| 5 | 5 | ||
| 6 | SRC_URI = "http://www.sqlite.org/2025/sqlite-autoconf-${SQLITE_PV}.tar.gz" | 6 | SRC_URI = "http://www.sqlite.org/2025/sqlite-autoconf-${SQLITE_PV}.tar.gz \ |
| 7 | file://CVE-2025-3277.patch \ | ||
| 8 | " | ||
| 7 | SRC_URI[sha256sum] = "ac992f7fca3989de7ed1fe99c16363f848794c8c32a158dafd4eb927a2e02fd5" | 9 | SRC_URI[sha256sum] = "ac992f7fca3989de7ed1fe99c16363f848794c8c32a158dafd4eb927a2e02fd5" |
| 8 | 10 | ||
