From patchwork Tue Nov 24 22:51:08 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 105457 X-Patchwork-Delegate: yoann.congal@smile.fr Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.30973.1795560741990361336 for ; Tue, 24 Nov 2026 14:52:22 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=aKapO+hx; spf=pass (domain: smile.fr, ip: 209.85.221.53, mailfrom: yoann.congal@smile.fr) Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-498f5fa4f70so4165972f8f.0 for ; Tue, 24 Nov 2026 14:52:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560740; x=1796165540; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=RyJ/exhlhxDgV5d5IIVwXOdPuDWA1tW6niRBhohRVmg=; b=aKapO+hxqNJh4IfRN78lzTAJCxTHZueDTnC0B6EUiA180sHheC30w87uaPkmNhQIRH M44ooQDo5oQaP2do1zVVc6mR9Nw6tsiGrh9gy7I476qOffFTCl4IZ8W9X2VJEBW/5rXt qnXHY09l6Lb5RNAHl6gVvxGcxrF0CfZ4Fdyf59bBPZJUxdKhe/TP/OfZZf8ijYeL4nrN rL0fZk0n9ml9gR26voxUTwieIax9U+e096xALtBu0jGRX+tXxxskTdxyQ+AuZdpj3NK3 uI+pROVVJm77OLrMa+cPmiUCOWJohhiobK2zik/qpG3fMIZ5/8QwhvwoGaVfEB4+StSx ephQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560740; x=1796165540; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=RyJ/exhlhxDgV5d5IIVwXOdPuDWA1tW6niRBhohRVmg=; b=kgGXUVNiYRKNq45ZNCdhl5abS8r9TA2SxCW/7yh04Tr7QpkW+gkUmot7HxLjheDa6G g4CPOTpxRF2ihS1AcNOpr6aBEhwdL5jY7L3+AjlwfT12m9A7waszAVF5IO5Ihuux1QOC IZiYfvLklvcANmJHqFVQxh9n5pbVI5LwEG15fIUQf6yEAS9dC372mU+LRJkhkXLEFLgq haTcuIx4aSZ4BvT2ssQ1gqK6WdgnDxpUfVyPxUomcMcumrYL9HI6VShTBTFz84wNxPb4 ngKX4MbG5vKY6JHIYVNHea8Wx/qdC6jeEe6kNDygPs6dM1ZlAKCpOp6QY7vKHAKNmUhv WZGQ== X-Gm-Message-State: APuU4Z+PEAPO9YQFfHLxNPILVxPGAWHoGINzo6O9qvL7KOXbJpmVTzBO LyhD0ImsorHYYqZG53VVHWNkCX7eqIZtofSxmDQOVHluZG1CIRY9bFmWWT6/4uBE3OfCAqPYdP+ A5Uh7qIg= X-Gm-Gg: AZFdTZeRd8i7Fcmk0MBkl2fAo2hwqDDU8HrZv1/EXgGQEuItO7BUnoTih5pwLCfSgvN 6VtRlefaDDURIjw/kjeHsj3ahz0M2wr3mx70Q0nFh3e225ZRHVS5jXu17s8ckz9FO2/ACDnFOuU IDUgMJUx30QqcoEmUqeL7NJmaiykWZss1eDoDS+BwxkGC/gLYNDYq/CFzRuLVSU9Cvm2kVJN3Kw Phel2c3t9kGcE3uR9pGV4sEcT2bpVaIq0Q+SNwOsTDfzGedXwaVIXxwv6lq7b4DJHCKNkvoGVzX ncgw+6KAi+Vr8ZEnAeBvizU48yKCqgAHjuKxqx7L/o1Gelb7yBDvOP4c/3fHcR376KYgX9NvlJi sAiHq5eTQVjFQ7eAktSmnkH0o0ffFX6ZOsj3b7jAVo2zHG/Js2ytJIz01+dMsEKUAZ9azrRcEi8 iF10T1pfxYZ+HorQvC2VLYvR0qBoov4CSzDcza9qV2jmWHZDJbwF5HoulagIbRdakawzX8fLNjG NyS4RdvSntSBymLyCg8hw8P2trLY3yr+Hg+iMwV9xmU1ZLW7SMp+idcq8Yt8aLdBkFovu7OkI0k 4rEk4wETU67UxscnZ676YMUDD0EbJBXN5U0XSj1qV5BseNoVwVa5e6McAYOO7VwvcvIuzWj81Ip 02Ku00Z2QXs/j1GWGzm4u1rxWTe4Q X-Received: by 2002:a05:6000:2b84:b0:492:7d9c:fcf8 with SMTP id ffacd0b85a97d-4abb42ea6e4mr20391830f8f.49.1795560740237; Tue, 24 Nov 2026 14:52:20 -0800 (PST) Return-Path: Received: from FRSMI25-LASER.home (2a01cb001331aa00a2e4fb7b0d887544.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:a2e4:fb7b:d88:7544]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6bb989e3sm30462488f8f.52.2026.11.24.14.52.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:19 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][blacksail 01/21] glibc: stable 2.44 branch updates to f715e9491c Date: Tue, 24 Nov 2026 23:51:08 +0100 Message-ID: <8fc17de6ee27f1b4e249c5e27afe51f5fa21e4c1.1795560335.git.yoann.congal@smile.fr> X-Mailer: git-send-email 2.55.0 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 24 Nov 2026 22:52:26 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251081 From: Jaipaul Cheernam Including fixes for the following CVEs: CVE-2026-84243 CVE-2026-100290 CVE-2026-115819 git log --oneline 34106fee6...f715e9491c f715e9491c (HEAD, origin/release/2.44/master) Add a few BZ entries to NEWS 063fdd4c7e stdio-common: Fix double null terminator in wide scanf %s and %[ (BZ 34989, CVE-2026-115819) fcfb867c58 posix: Fix double free after allocation failure in regcomp and regexec (BZ 34991, CVE-2026-100290) 438677ef49 intl: Restrict path traversal when using LANGUAGE env var [BZ #17142, CVE-2026-84243] 48fa38b921 AArch64: Fix libmvec archive member collisions [BZ #34946] 47e2b57041 io: Fix silent readdir failures in ftw/nftw (BZ 33085) c5c6fc6f44 elf: Set the library path for tst-ptrguard-static-dlopen (BZ 34966) a0b0ef791e aarch64: Fix SVE tanf mixed-lane results [BZ #34922] 71eeab669c aarch64: Fix SVE log1pf special case results [BZ #34940] f1bbb002b4 aarch64: Fix SVE log1p helper mixed-lane shortcut [BZ #34923] 21442dba0d linux: Add C++ and multiple inclusion guards to sys/pidfd.h (BZ 34752) b9b1e925b6 AArch64: Preserve SVE pow/powf base magnitude across lanes [BZ #34921] 27fd010255 AArch64: Fix SVE pow and powf negative-base predication [BZ #34920] a527fd2510 tests: elf: Fix flaky thp tests 534e36bbf7 io: Reject fts_open root arguments longer than USHRT_MAX (BZ 34782) d1e132966e io: Fix fts_pathlen overflow for paths longer than USHRT_MAX (BZ 34782) 42c8bd03fb io: Fix fts_set FTS_FOLLOW in a physical walk (BZ 34775) eb288d8cef io: Fix fts FTS_CWDFD return from a followed directory (BZ 34781) 5a068df1b6 configure: Fix have-no-error-execstack substitution 00f6968bbd aarch64: Return with ret from the la_pltexit path of _dl_runtime_profile 6b0445bd0b Makefile.in: Run the build directory goals serially (BZ 34699) fb9f408983 x86: Bound Hygon non-temporal threshold [BZ #34875] 045c51476c linux: Do not return stack garbage in sparc tcgetattr c_cc [BZ #34734] Testing Results: Before After Diff PASS 6634 6634 0 FAIL 141 147 +6 XFAIL 16 16 0 UNSUPPORTED 606 607 +1 Changes in testcases: testcase-name before after io/tst-fts-bz34782(new) - PASS io/tst-fts-bz34782-root(new) - PASS io/tst-fts-cwdfd-follow(new) - PASS io/tst-fts-follow(new) - PASS io/tst-ftw-bz33085(new) - UNSUPPORTED stdio-common/tst-wscanf-nul(new) - PASS termios/tst-tcgetattr-stack(new) - PASS stdio-common/tst-vfscanf-bz34008 FAIL PASS stdlib/tst-getenv-signal FAIL PASS malloc/*-malloc-check tests are flaky under QEMU user-mode and flip in both directions between runs (14 PASS->FAIL, 6 FAIL->PASS this run, net -8 reflected in the FAIL delta above). No malloc code paths relevant to these were changed in this uplift; Signed-off-by: Jaipaul Cheernam Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie (cherry picked from commit 3d6398249ff6fa5a35b7481979b2d168d69498bf) Signed-off-by: Yoann Congal --- meta/recipes-core/glibc/glibc-version.inc | 2 +- meta/recipes-core/glibc/glibc_2.44.bb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/recipes-core/glibc/glibc-version.inc b/meta/recipes-core/glibc/glibc-version.inc index 2fb355a29bd..0971422e4a2 100644 --- a/meta/recipes-core/glibc/glibc-version.inc +++ b/meta/recipes-core/glibc/glibc-version.inc @@ -1,6 +1,6 @@ SRCBRANCH ?= "release/2.44/master" PV = "2.44+git" -SRCREV_glibc ?= "34106fee698c83eb0af71d4d0381e66b399be746" +SRCREV_glibc ?= "f715e9491c062bbb50d32ccb05a8debc488dda39" SRCREV_localedef ?= "cba02c503d7c853a38ccfb83c57e343ca5ecd7e5" GLIBC_GIT_URI ?= "git://sourceware.org/git/glibc.git;protocol=https" diff --git a/meta/recipes-core/glibc/glibc_2.44.bb b/meta/recipes-core/glibc/glibc_2.44.bb index 886a15f1572..c3400d98450 100644 --- a/meta/recipes-core/glibc/glibc_2.44.bb +++ b/meta/recipes-core/glibc/glibc_2.44.bb @@ -24,6 +24,7 @@ CVE_STATUS_GROUPS += "CVE_STATUS_STABLE_BACKPORTS" CVE_STATUS_STABLE_BACKPORTS = "\ CVE-2026-5435 CVE-2026-19542 CVE-2026-18374 CVE-2026-19499 CVE-2026-77117 CVE-2026-80489 \ CVE-2026-8674 CVE-2026-86805 CVE-2026-89092 CVE-2026-95818 CVE-2026-97399 \ + CVE-2026-84243 CVE-2026-100290 CVE-2026-115819 \ " CVE_STATUS_STABLE_BACKPORTS[status] = "cpe-stable-backport: fix available in used git hash" From patchwork Tue Nov 24 22:51:09 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 105458 X-Patchwork-Delegate: yoann.congal@smile.fr Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.31014.1795560742873711588 for ; Tue, 24 Nov 2026 14:52:23 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=d8Sybdkw; spf=pass (domain: smile.fr, ip: 209.85.221.49, mailfrom: yoann.congal@smile.fr) Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-4acb44dcd7bso4413404f8f.0 for ; Tue, 24 Nov 2026 14:52:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560741; x=1796165541; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=p9CrfEJevykuNHhskl+5Bt3grWxrPKbceBfvUcNSvLg=; b=d8SybdkwukQh2SLooAQASgwSxgEVSy2QWpN01gQhGGReVEdkpBrL1vv33MFD9dodeh BFdQUK//mTP1PCA6Haa+FyxTn27l/gobMi8qck2f/pZFZI2K4mHVgLm0mLVCoLlZ2OLH w5VeGRORT6fSqlRoFAjcgjthZycfi0hBCy7EZGYDQK2mnPSS1EEF2zgmU/chfUWlQFQ0 A0o/xvK8Q9StPDz/PXRp7cPANgkRhJJ7rFxGQrMsKN1sSdxoO9SMuFRes1lZ8MXsdV5U Rs/wHtzxBsR5UHjZ95OSkLTTdYW3eoyrPa2rm7WPU9dSYJdIHLSro2Hsx2RiaeLbTyGy g2DA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560741; x=1796165541; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=p9CrfEJevykuNHhskl+5Bt3grWxrPKbceBfvUcNSvLg=; b=Q+CEVXpISOvt7i6N7RURJ4q+roTFDzkRrS/0v3C/4rbmTiMOnfm/+WXmKsETStmLB7 1occ7A+CKNkWOEYamadO21h2XCFOIXOOg/zYoeoo9BgIg7ddXZWKxjWFEszlUWsWAy7o JYGgIFBzpDbY7J41vyNisXLs/Tk0sNUdLooeGqPAua9rM0OiwGyX4XJMbK3YJG3rLHi9 d3wLVxwEij6Xdc3JZQAE9QvwfAii8L5imZIjswJBVJ1ZexTlacjhmROFUjegSqgVtNNC rIHTfbTvsrmM6DGH6yUgUj1MlnlzJO7h1nCtYkQMbrXRHw/+dNIny990heWtYcIP91GT unZQ== X-Gm-Message-State: APuU4Z8yoMEWJ0UvoyywS57ZmW3PWeynFlD4krA1AkEyqW++OST8jFBX 4DrJj1v8ePYLpA204cljgHJJQJvJvzwS+9/GtKimjLPbpHgA6vFkqkOO3B12G4kgqUHhkzgf/b8 +0a+TyCc= X-Gm-Gg: AZFdTZfCptcvNalNheAb99tsvnl04O3M2cMpz7CkVw9QfX74SMt7iWTsbX/rKul5qyE STrxZ2MKi6pSBqjqL9S/BlA+/CJMqNqwZdvoi9YV7h+T8CBLa+t10a0lf9HM3VwN5cbEUnAg5rd h/9ZzpT+rOO4jYQ1nEwzNLcysBuk6omD9xChZvEVqW6W4nu5mZ9hQil4oK8oo1oh4W5oFf0r6ep /g+5zivQQPds4+6o6WCtojrzyO9ZJXb3KOprCF5UFqf9W55fCS3NTwXGJBUyhSLX8d0BGRnqAxH bHvcP0EexG6nxrmiDi0JyXMXXszWK0MDW8X+C7n1BAReeemZb+e6aiheup/puIa/U7TfvHScZPM A/Ym2OyIAZzV3/Eh/8ZavoyMgT9KgRbEt+Eft4b6bBZOEz8yGxN7udoLv6LPKESlxX+FbUuvF20 DBw6l/i+1m9Wm4MQod92d4P80A1WV2t2zekCObnnCtcKvj7iVnUqI/G/uNJaU3U1ZREZEQz/fvU BHUoBMnuUzcCHKWNazGG7cyBk8v0XzMZFL3VDQ8MVm8huK8M/sGTCGPbcAeSNJY6aWe0fndE6pT zBtrXpdN0ux8Igc+stP1TxNOMYADrTLsSgqxsc/BsklyorHOsHtlGdHY1Cw38YListRhJWFYpDc HtGU92HNCn/2IAg/6MUizlXhRekH7 X-Received: by 2002:a05:600c:1c08:b0:4bb:7757:fe6d with SMTP id 5b1f17b1804b1-4bb88804c5fmr404197275e9.11.1795560740696; Tue, 24 Nov 2026 14:52:20 -0800 (PST) Return-Path: Received: from FRSMI25-LASER.home (2a01cb001331aa00a2e4fb7b0d887544.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:a2e4:fb7b:d88:7544]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6bb989e3sm30462488f8f.52.2026.11.24.14.52.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:20 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][blacksail 02/21] sqlite3: Fix CVE-2026-119377 Date: Tue, 24 Nov 2026 23:51:09 +0100 Message-ID: <50a8dde55e8ac4d52c672d3f34f0d33a8e21948b.1795560335.git.yoann.congal@smile.fr> X-Mailer: git-send-email 2.55.0 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 24 Nov 2026 22:52:26 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251082 From: Arpit Patel This patch applies the upstream fix series [1], [3], [5], and [7] for the authorizer bypass. Commits [1] and [3] are dependent commits. Commit [5] adds authorizer checks for RIGHT JOIN USING terms, and commit [7] corrects the loop so every term is checked. The GitHub mirror commits correspond to the SQLite Fossil check-ins shown in [2], [4], [6], and [8], respectively. [1] https://github.com/sqlite/sqlite/commit/c70fbd39f9c130bbe1cc45269c3b490dfdf7f259 [2] https://sqlite.org/src/info/625f78a630bb [3] https://github.com/sqlite/sqlite/commit/ddea119f825bf07f145c55f623022286bc644664 [4] https://sqlite.org/src/info/4ef88a36f9d9 [5] https://github.com/sqlite/sqlite/commit/7ff247c5b9ead3ad8a69c26d3fd264878e127237 [6] https://sqlite.org/src/info/bbd69ce27462 [7] https://github.com/sqlite/sqlite/commit/5694c3bb2a6a40770ecd2f65910eea756734dfd8 [8] https://sqlite.org/src/info/2cb228776836 Reference: https://nvd.nist.gov/vuln/detail/CVE-2026-119377 Signed-off-by: Arpit Patel Signed-off-by: Yoann Congal --- .../CVE-2026-119377-dependent_p1.patch | 86 +++++++++++++++++++ .../CVE-2026-119377-dependent_p2.patch | 61 +++++++++++++ .../sqlite/sqlite3/CVE-2026-119377_p1.patch | 52 +++++++++++ .../sqlite/sqlite3/CVE-2026-119377_p2.patch | 51 +++++++++++ meta/recipes-support/sqlite/sqlite3_3.53.4.bb | 8 +- 5 files changed, 256 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-support/sqlite/sqlite3/CVE-2026-119377-dependent_p1.patch create mode 100644 meta/recipes-support/sqlite/sqlite3/CVE-2026-119377-dependent_p2.patch create mode 100644 meta/recipes-support/sqlite/sqlite3/CVE-2026-119377_p1.patch create mode 100644 meta/recipes-support/sqlite/sqlite3/CVE-2026-119377_p2.patch diff --git a/meta/recipes-support/sqlite/sqlite3/CVE-2026-119377-dependent_p1.patch b/meta/recipes-support/sqlite/sqlite3/CVE-2026-119377-dependent_p1.patch new file mode 100644 index 00000000000..57f44bc645e --- /dev/null +++ b/meta/recipes-support/sqlite/sqlite3/CVE-2026-119377-dependent_p1.patch @@ -0,0 +1,86 @@ +From c3cab0322ae36fe6ca21df300c670af379c0a423 Mon Sep 17 00:00:00 2001 +From: drh <> +Date: Sat, 2 May 2026 17:30:33 +0000 +Subject: [PATCH] Minor optimization to the authorizer. + +FossilOrigin-Name: 625f78a630bbf897f945065f1b85a92fe26e426302c8f6edc4d26a817ff62358 + +CVE: CVE-2026-119377 +Upstream-Status: Backport [https://github.com/sqlite/sqlite/commit/c70fbd39f9c130bbe1cc45269c3b490dfdf7f259] + +Backport Changes: +- Applied the src/auth.c and src/resolve.c changes to sqlite3.c because + the Yocto sqlite-autoconf source uses the amalgamated SQLite layout. +- Kept SQLITE_PRIVATE on sqlite3AuthCheck() to match the amalgamated + source. +- Omitted manifest and manifest.uuid because they are repository + metadata and are not needed for this sqlite3.c backport. + +Signed-off-by: Arpit Patel +--- + sqlite3.c | 27 ++++++++++++++++++++++----- + 1 file changed, 22 insertions(+), 5 deletions(-) + +diff --git a/sqlite3.c b/sqlite3.c +index 0644a39..6a795f7 100644 +--- a/sqlite3.c ++++ b/sqlite3.c +@@ -111320,9 +111320,7 @@ lookupname_end: + if( cnt==1 ){ + assert( pNC!=0 ); + #ifndef SQLITE_OMIT_AUTHORIZATION +- if( pParse->db->xAuth +- && (pExpr->op==TK_COLUMN || pExpr->op==TK_TRIGGER) +- ){ ++ if( db->xAuth && (pExpr->op==TK_COLUMN || pExpr->op==TK_TRIGGER) ){ + sqlite3AuthRead(pParse, pExpr, pSchema, pNC->pSrcList); + } + #endif +@@ -126468,8 +126466,14 @@ SQLITE_PRIVATE void sqlite3AuthRead( + ** either SQLITE_OK (zero) or SQLITE_IGNORE or SQLITE_DENY. If SQLITE_DENY + ** is returned, then the error count and error message in pParse are + ** modified appropriately. ++** ++** Divided into two routines. realAuthCheck() does the work. The ++** sqlite3AuthCheck() routine is usually a fast no-op but invokes ++** realAuthCheck() (and spends time doing some stack pushes and pops ++** as a result) in the uncommon case where an authorization check is ++** actually needed. + */ +-SQLITE_PRIVATE int sqlite3AuthCheck( ++static int SQLITE_NOINLINE realAuthCheck( + Parse *pParse, + int code, + const char *zArg1, +@@ -126483,7 +126487,7 @@ SQLITE_PRIVATE int sqlite3AuthCheck( + ** or if the parser is being invoked from within sqlite3_declare_vtab. + */ + assert( !IN_RENAME_OBJECT || db->xAuth==0 ); +- if( db->xAuth==0 || db->init.busy || IN_SPECIAL_PARSE ){ ++ if( IN_SPECIAL_PARSE ){ + return SQLITE_OK; + } + +@@ -126508,6 +126512,19 @@ SQLITE_PRIVATE int sqlite3AuthCheck( + } + return rc; + } ++SQLITE_PRIVATE int sqlite3AuthCheck( ++ Parse *pParse, ++ int code, ++ const char *zArg1, ++ const char *zArg2, ++ const char *zArg3 ++){ ++ if( pParse->db->xAuth!=0 && pParse->db->init.busy==0 ){ ++ return realAuthCheck(pParse,code,zArg1,zArg2,zArg3); ++ }else{ ++ return SQLITE_OK; ++ } ++} + + /* + ** Push an authorization context. After this routine is called, the +-- +2.35.6 + diff --git a/meta/recipes-support/sqlite/sqlite3/CVE-2026-119377-dependent_p2.patch b/meta/recipes-support/sqlite/sqlite3/CVE-2026-119377-dependent_p2.patch new file mode 100644 index 00000000000..121424308e2 --- /dev/null +++ b/meta/recipes-support/sqlite/sqlite3/CVE-2026-119377-dependent_p2.patch @@ -0,0 +1,61 @@ +From 4ad8d0b4f4de75182a835bfadf0dc14c1c8c1a70 Mon Sep 17 00:00:00 2001 +From: drh <> +Date: Mon, 1 Jun 2026 16:49:39 +0000 +Subject: [PATCH] Make sure the authenticator is called for columns that are + part of a USING in a FULL JOIN. [bugs:/info/2026-05-31T02:00:37Z|Bug + 2026-05-31T02:00:37Z]. + +FossilOrigin-Name: 4ef88a36f9d9669b0d74c58f79ad497803885ff6078e5f9685f13c96eab397cc + +CVE: CVE-2026-119377 +Upstream-Status: Backport [https://github.com/sqlite/sqlite/commit/ddea119f825bf07f145c55f623022286bc644664] + +Backport Changes: +- Applied the src/resolve.c change to sqlite3.c because this recipe + uses the amalgamated SQLite source. +- Omitted manifest and manifest.uuid updates because they are Fossil + repository metadata and are not needed in this backport. + +Signed-off-by: Arpit Patel +--- + sqlite3.c | 17 +++++++++++++--- + 1 file changed, 13 insertions(+), 4 deletions(-) + +diff --git a/sqlite3.c b/sqlite3.c +index 6a795f7..9353a03 100644 +--- a/sqlite3.c ++++ b/sqlite3.c +@@ -111237,7 +111237,7 @@ static int lookupName( + ** cnt>1 means there were two or more matches. + ** + ** cnt==0 is always an error. cnt>1 is often an error, but might +- ** be multiple matches for a NATURAL LEFT JOIN or a LEFT JOIN USING. ++ ** be multiple matches for a NATURAL OUTER JOIN or a OUTER JOIN USING. + */ + assert( pFJMatch==0 || cnt>0 ); + assert( !ExprHasProperty(pExpr, EP_xIsSelect|EP_IntValue) ); +@@ -111320,9 +111320,18 @@ + if( cnt==1 ){ + assert( pNC!=0 ); + #ifndef SQLITE_OMIT_AUTHORIZATION +- if( db->xAuth && (pExpr->op==TK_COLUMN || pExpr->op==TK_TRIGGER) ){ +- sqlite3AuthRead(pParse, pExpr, pSchema, pNC->pSrcList); +- } ++ if( db->xAuth ){ ++ if( pFJMatch ){ ++ assert( pExpr->op==TK_FUNCTION ); ++ assert( sqlite3_stricmp(pExpr->u.zToken,"coalesce")==0 ); ++ assert( pExpr->x.pList==pFJMatch ); ++ assert( pFJMatch->nExpr>0 ); ++ pExpr = pFJMatch->a[0].pExpr; ++ } ++ if( pExpr->op==TK_COLUMN || pExpr->op==TK_TRIGGER ){ ++ sqlite3AuthRead(pParse, pExpr, pSchema, pNC->pSrcList); ++ } ++ } + #endif + /* Increment the nRef value on all name contexts from TopNC up to + ** the point where the name matched. */ +-- +2.35.6 + diff --git a/meta/recipes-support/sqlite/sqlite3/CVE-2026-119377_p1.patch b/meta/recipes-support/sqlite/sqlite3/CVE-2026-119377_p1.patch new file mode 100644 index 00000000000..4ab2f652bf0 --- /dev/null +++ b/meta/recipes-support/sqlite/sqlite3/CVE-2026-119377_p1.patch @@ -0,0 +1,52 @@ +From 7e76b79f06869f46def99a3ec08d9dfb53a346b1 Mon Sep 17 00:00:00 2001 +From: drh <> +Date: Sun, 5 Jul 2026 16:06:33 +0000 +Subject: [PATCH] Be sure to invoke the authorizer callback on all terms of the + USING clause in a RIGHT JOIN. [bugs:/info/2026-07-05T08:15:45Z|Bug + 2026-07-05T08:15:45Z] + +FossilOrigin-Name: bbd69ce27462000873af053bfebdd305c53deac85c426b1e7dbd927b5f17d622 + +CVE: CVE-2026-119377 +Upstream-Status: Backport [https://github.com/sqlite/sqlite/commit/7ff247c5b9ead3ad8a69c26d3fd264878e127237] + +Backport Changes: +- Applied the src/resolve.c change in sqlite3.c because the Yocto + sqlite-autoconf source uses the amalgamated layout. +- Omitted test/auth.test because the extracted recipe source lacks the + upstream Tcl test tree. +- Omitted manifest and manifest.uuid because they are repository + metadata and are not needed in this source patch. + +Signed-off-by: Arpit Patel +--- + sqlite3.c | 9 ++++++--- + 1 file changed, 6 insertions(+), 3 deletions(-) + +diff --git a/sqlite3.c b/sqlite3.c +index 9353a03..411a39a 100644 +--- a/sqlite3.c ++++ b/sqlite3.c +@@ -111322,13 +111322,16 @@ lookupname_end: + #ifndef SQLITE_OMIT_AUTHORIZATION + if( db->xAuth ){ + if( pFJMatch ){ ++ int ii; + assert( pExpr->op==TK_FUNCTION ); + assert( sqlite3_stricmp(pExpr->u.zToken,"coalesce")==0 ); + assert( pExpr->x.pList==pFJMatch ); + assert( pFJMatch->nExpr>0 ); +- pExpr = pFJMatch->a[0].pExpr; +- } +- if( pExpr->op==TK_COLUMN || pExpr->op==TK_TRIGGER ){ ++ for(ii=0; iinExpr; ii++){ ++ assert( pFJMatch->a[0].pExpr->op==TK_COLUMN ); ++ sqlite3AuthRead(pParse, pFJMatch->a[0].pExpr, pSchema, pNC->pSrcList); ++ } ++ }else if( pExpr->op==TK_COLUMN || pExpr->op==TK_TRIGGER ){ + sqlite3AuthRead(pParse, pExpr, pSchema, pNC->pSrcList); + } + } +-- +2.35.6 + diff --git a/meta/recipes-support/sqlite/sqlite3/CVE-2026-119377_p2.patch b/meta/recipes-support/sqlite/sqlite3/CVE-2026-119377_p2.patch new file mode 100644 index 00000000000..827d5fe7501 --- /dev/null +++ b/meta/recipes-support/sqlite/sqlite3/CVE-2026-119377_p2.patch @@ -0,0 +1,51 @@ +From a98f25c8a88d1e0e24f677279ac90b30567f93ee Mon Sep 17 00:00:00 2001 +From: drh <> +Date: Fri, 24 Jul 2026 14:53:59 +0000 +Subject: [PATCH] Fix a bug in the check-in [bbd69ce274620008] causing that + bug-fix check-in to fail to completely fix the original bug. This fix is in + response to the follow-up report at [bugs:/info/2026-07-24T02:52:08Z|Bug + 2026-07-24T02:52:08Z]. + +FossilOrigin-Name: 2cb22877683680c1f89bcc9edb47bd1a4a8755d4a6b846a1a20136a657dacdcc + +CVE: CVE-2026-119377 +Upstream-Status: Backport [https://github.com/sqlite/sqlite/commit/5694c3bb2a6a40770ecd2f65910eea756734dfd8] + +Backport Changes: +- Applied the src/resolve.c correction to sqlite3.c because the Yocto + recipe source uses the amalgamated SQLite layout. +- Omitted test/auth.test because the extracted recipe source lacks the + upstream Tcl test tree. +- Omitted manifest and manifest.uuid because they are Fossil + repository metadata and are not needed in the source patch. + +Signed-off-by: Arpit Patel +--- + sqlite3.c | 7 +++---- + 1 file changed, 3 insertions(+), 4 deletions(-) + +diff --git a/sqlite3.c b/sqlite3.c +index 273ef4a..6130466 100644 +--- a/sqlite3.c ++++ b/sqlite3.c +@@ -111322,14 +111322,13 @@ lookupname_end: + #ifndef SQLITE_OMIT_AUTHORIZATION + if( db->xAuth ){ + if( pFJMatch ){ +- int ii; + assert( pExpr->op==TK_FUNCTION ); + assert( sqlite3_stricmp(pExpr->u.zToken,"coalesce")==0 ); + assert( pExpr->x.pList==pFJMatch ); + assert( pFJMatch->nExpr>0 ); +- for(ii=0; iinExpr; ii++){ +- assert( pFJMatch->a[0].pExpr->op==TK_COLUMN ); +- sqlite3AuthRead(pParse, pFJMatch->a[0].pExpr, pSchema, pNC->pSrcList); ++ for(i=0; inExpr; i++){ ++ assert( pFJMatch->a[i].pExpr->op==TK_COLUMN ); ++ sqlite3AuthRead(pParse,pFJMatch->a[i].pExpr,pSchema,pNC->pSrcList); + } + }else if( pExpr->op==TK_COLUMN || pExpr->op==TK_TRIGGER ){ + sqlite3AuthRead(pParse, pExpr, pSchema, pNC->pSrcList); +-- +2.35.6 + diff --git a/meta/recipes-support/sqlite/sqlite3_3.53.4.bb b/meta/recipes-support/sqlite/sqlite3_3.53.4.bb index 007a823dc59..c7c081b3935 100644 --- a/meta/recipes-support/sqlite/sqlite3_3.53.4.bb +++ b/meta/recipes-support/sqlite/sqlite3_3.53.4.bb @@ -20,8 +20,12 @@ S = "${UNPACKDIR}/sqlite-autoconf-${SQLITE_PV}" B = "${WORKDIR}/build" SRC_URI = "http://www.sqlite.org/2026/sqlite-autoconf-${SQLITE_PV}.tar.gz" -SRC_URI += "file://0001-Add-option-to-disable-zlib.patch" - +SRC_URI += "file://0001-Add-option-to-disable-zlib.patch \ + file://CVE-2026-119377-dependent_p1.patch \ + file://CVE-2026-119377-dependent_p2.patch \ + file://CVE-2026-119377_p1.patch \ + file://CVE-2026-119377_p2.patch \ +" SRC_URI[sha256sum] = "0e9483900e92cd5de8fd48d16bf9200145a61f7fd5be542a5ac81d8a9516eb9c" UPSTREAM_CHECK_URI = "http://www.sqlite.org/" From patchwork Tue Nov 24 22:51:10 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 105459 X-Patchwork-Delegate: yoann.congal@smile.fr Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.31015.1795560743102573239 for ; Tue, 24 Nov 2026 14:52:23 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=Z3e8jayo; spf=pass (domain: smile.fr, ip: 209.85.221.54, mailfrom: yoann.congal@smile.fr) Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-48e46e449e8so3289467f8f.3 for ; Tue, 24 Nov 2026 14:52:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560741; x=1796165541; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=GkAbrxDPzAK8jyPKa4KKQ/cV8Rc/4SeyjCjifluhGsc=; b=Z3e8jayouinNbJW9TEgBKPy7Hi2LE/GEC+36utH/0akm1kdR9op/XyIhA/qqB/irSY YeZpDtOIXfTB0oey9j7PO4qcRxIPOHHOTE+AazWWCaSy1nlOuGck607MDi2+TXDPW6m3 oc7PqibqyAmLnJlDuauJzbpCE7nyD8ApyfJwqUl8SzmYswN8HIT5DWUcCgLXP1NUfmvm 01k6eZI3+Krp6aWBLITNXrRfxyki3oiFi4nKYJQ4tFRsMQdas+SUOurz25N7RvR6X1lw VDe92lcOtcaOfLp3hyGBfVeGExP9wxwkkc/JlGInx+xC+HcaaHyzbRRRTG7D3bTy/3LD 6ACA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560741; x=1796165541; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=GkAbrxDPzAK8jyPKa4KKQ/cV8Rc/4SeyjCjifluhGsc=; b=U4yY3t9VvA9Vylm5GcCTdXRx5oddueU8YZNLTHYlkWOtgSHeQn/xs5ZCJNsrU1KcE7 bxEYpn+VlAACcyzScw9fKcfEvDIA0CDkW/HiWMOVWTyoyeiTZ8R116j6FXsJC98h1uwP hNfTBN5d8+Xutpt22Fbz8ShN83DSWIzigkSX1UyIW9xwz3aEyN8J4hikIBBJytbmVAgG 15M4KAYek4faM4WYUQzD7c/OAS2AQgK6P6gMCyks6Fa/Q1IvIOIdPo6ECDwZmxUh30Ld nYi0hFoUG1T8JIg1z5eqysSrzA/Fay6kjI+escmzJ28rJyJ4PRy/BQ2aWtQeyL5pgbYU 6a3A== X-Gm-Message-State: APuU4Z8AZnLQyFgXkg6LEFuDzb28nNfWXuo/lKgflT+V2IUkmlJxDstY bZLF3kggzROtBEkTc/Uq3ZbySLwFLfmZpFXuJIBFYxSzoum48Odxw5Kkj85jWesBeytnMI9W3cv mFTM4XY4= X-Gm-Gg: AZFdTZdn60Ret+SCXWIapGSVLU7XhtHendEW22ebl+98q2hX2bkEHrMp9S6OgP3sNDe Vg2LJ1T1vwKBjjbAadYn6mz+a8/LzHrVRM8D++FvLZs7FQm9eNYVUathmDTFYR4hn0wx+GmKxKW noKuIw9P6ksHr8KZKM+4cZaUU2Q6VdneJBGjxaVYcDJuyxVbGFsqpQUHi92tzIhoCZLvY5BG1y3 g1ovmhAlTzJSG5UgTZ9lFxuNsmc5DhcKpbZ4HEigYbTMcEPNMz/DoSAy3yLOE8OgdIWCezz8mb3 eUqCYqIxc0gOL8p1Nnm6EHf9/Q8epyg+loSP3lk7R2oTwo1qyb3MVs/uQoJOG02sQqGqvlHgG56 L2MXIrQEwugE5DEIrQZ6zjlhltXz+/Es1a4Vvn6DogIxjAiXjBZNL9yxcum+1nLhB7tbqpQ92cm sRJnVv4YRkbEcSMzw0PUCo8cip7oQemKcqxsplxxXRIrMV2m77tyZg3u6XjW657SWz3+QTEOjH5 azMcLCTSBeLS9esYM8EQzx4SEn5mCGpzm4OS+NgqcaOwADW5YUgcIdODoi6bI175/ranOa/Je8+ kKspQZvNwcgnQTpWENacepcXivY/cGapuTJsEbOYsVmxKjBe1UQjGeJWF9BQgnniLicnYloBeYm yz9YssT7lPs1emk7Bs4EgTqSn8dy0 X-Received: by 2002:a05:6000:184d:b0:4b7:66fb:b15d with SMTP id ffacd0b85a97d-4b766fbb8b1mr5788326f8f.11.1795560741277; Tue, 24 Nov 2026 14:52:21 -0800 (PST) Return-Path: Received: from FRSMI25-LASER.home (2a01cb001331aa00a2e4fb7b0d887544.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:a2e4:fb7b:d88:7544]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6bb989e3sm30462488f8f.52.2026.11.24.14.52.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:20 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][blacksail 03/21] sqlite3: fix CVE-2026-119373 Date: Tue, 24 Nov 2026 23:51:10 +0100 Message-ID: <8ff7b2598ac3eaa1deef06751c06eaf9869d5b6c.1795560335.git.yoann.congal@smile.fr> X-Mailer: git-send-email 2.55.0 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 24 Nov 2026 22:52:26 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251083 From: Arpit Patel This patch applies the upstream fix [1], which prevents a buffer overflow when merging FTS5 detail=none prefix lists with negative docids. The GitHub mirror commit [1] corresponds to the SQLite Fossil check-in shown in [2]. [1] https://github.com/sqlite/sqlite/commit/e1c9934f9f11a499029abb020ea715a08970da80 [2] https://sqlite.org/src/info/a7f8c92f62 Reference: https://nvd.nist.gov/vuln/detail/CVE-2026-119373 Signed-off-by: Arpit Patel Signed-off-by: Yoann Congal --- .../sqlite/sqlite3/CVE-2026-119373.patch | 56 +++++++++++++++++++ meta/recipes-support/sqlite/sqlite3_3.53.4.bb | 1 + 2 files changed, 57 insertions(+) create mode 100644 meta/recipes-support/sqlite/sqlite3/CVE-2026-119373.patch diff --git a/meta/recipes-support/sqlite/sqlite3/CVE-2026-119373.patch b/meta/recipes-support/sqlite/sqlite3/CVE-2026-119373.patch new file mode 100644 index 00000000000..bb2eb09d0a5 --- /dev/null +++ b/meta/recipes-support/sqlite/sqlite3/CVE-2026-119373.patch @@ -0,0 +1,56 @@ +From 2ea652e191b5fd3e2ff13eadd907519b74e3db94 Mon Sep 17 00:00:00 2001 +From: dan +Date: Tue, 4 Aug 2026 11:04:17 +0000 +Subject: [PATCH] In fts5, account for the possibility of negative docids when + allocating a buffer to store the results of merging detail=none prefix lists. + Fix for report [bugs:/info/2026-08-04T08:49:27Z | 2026-08-04T08:49:27Z]. + +FossilOrigin-Name: a7f8c92f623e9cbe8a61266d949916acc9e5110c94dff4aa6fd1ad2ea8a60d4e + +CVE: CVE-2026-119373 +Upstream-Status: Backport [https://github.com/sqlite/sqlite/commit/e1c9934f9f11a499029abb020ea715a08970da80] + +Backport Changes: +- Applied the FTS5 fix from ext/fts5/fts5_index.c to sqlite3.c because + the recipe source uses the amalgamated SQLite layout. +- Omitted ext/fts5/test/fts5prefix2.test because the extracted source + does not include SQLite's Tcl test tree. +- Omitted manifest and manifest.uuid because they are Fossil + repository metadata and are not needed for this source patch. + +Signed-off-by: Arpit Patel +--- + sqlite3.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/sqlite3.c b/sqlite3.c +index 6130466..06ceecf 100644 +--- a/sqlite3.c ++++ b/sqlite3.c +@@ -256971,7 +256971,7 @@ static void fts5MergeRowidLists( + (void)nBuf; + memset(&out, 0, sizeof(out)); + assert( nBuf==1 ); +- sqlite3Fts5BufferSize(&p->rc, &out, p1->n + p2->n); ++ sqlite3Fts5BufferSize(&p->rc, &out, p1->n + p2->n + 9); + if( p->rc ) return; + + fts5NextRowid(p1, &i1, &iRowid1); +@@ -256979,12 +256979,12 @@ static void fts5MergeRowidLists( + while( i1>=0 || i2>=0 ){ + if( i1>=0 && (i2<0 || iRowid1iOut ); +- fts5BufferSafeAppendVarint(&out, iRowid1 - iOut); ++ fts5BufferSafeAppendVarint(&out, (u64)iRowid1 - (u64)iOut); + iOut = iRowid1; + fts5NextRowid(p1, &i1, &iRowid1); + }else{ + assert( iOut==0 || iRowid2>iOut ); +- fts5BufferSafeAppendVarint(&out, iRowid2 - iOut); ++ fts5BufferSafeAppendVarint(&out, (u64)iRowid2 - (u64)iOut); + iOut = iRowid2; + if( i1>=0 && iRowid1==iRowid2 ){ + fts5NextRowid(p1, &i1, &iRowid1); +-- +2.35.6 + diff --git a/meta/recipes-support/sqlite/sqlite3_3.53.4.bb b/meta/recipes-support/sqlite/sqlite3_3.53.4.bb index c7c081b3935..4ec6eb230e0 100644 --- a/meta/recipes-support/sqlite/sqlite3_3.53.4.bb +++ b/meta/recipes-support/sqlite/sqlite3_3.53.4.bb @@ -25,6 +25,7 @@ SRC_URI += "file://0001-Add-option-to-disable-zlib.patch \ file://CVE-2026-119377-dependent_p2.patch \ file://CVE-2026-119377_p1.patch \ file://CVE-2026-119377_p2.patch \ + file://CVE-2026-119373.patch \ " SRC_URI[sha256sum] = "0e9483900e92cd5de8fd48d16bf9200145a61f7fd5be542a5ac81d8a9516eb9c" From patchwork Tue Nov 24 22:51:11 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 105460 X-Patchwork-Delegate: yoann.congal@smile.fr Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.31016.1795560743773929112 for ; Tue, 24 Nov 2026 14:52:24 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=lLWfejhf; spf=pass (domain: smile.fr, ip: 209.85.221.51, mailfrom: yoann.congal@smile.fr) Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-4aa5833c263so4898163f8f.2 for ; Tue, 24 Nov 2026 14:52:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560742; x=1796165542; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=mu/DbNCUQxkTGBZhcAE7oQHGkRCiLhL4YIaZcKee6Tc=; b=lLWfejhfP2I2RS2At61KYblQijggmRZ4XZycoWL/NR3Q7EN9OrRYXJTEu97lAuw+2c /wwIvSwJFY2fbXcNy06G3KJktNGL1J3j1RDJ3QBKd4t+JeyAW2xpara5SVEGbsolQxS6 +H7tGcsgEdnt1ZPW1fWkOFa2izuoOQX8Y6rrRcE6aN94fCiBrLQ7TyvTmGJNzbR2bma6 Tf57dDTVXVlcc9Fr5+sx1zTb09lOzqEoTay45+gTzHkol6Gvu6Pjvm8Qh7KjSS61xVQG VYJg1EdwGsdxpfVgIPaDSk0bwPbXkOa+ng/DMd4VoP1WyvgrVjtHPpv4rXIZ4r5BFhOw LEuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560742; x=1796165542; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=mu/DbNCUQxkTGBZhcAE7oQHGkRCiLhL4YIaZcKee6Tc=; b=JxN39XO2h6CWjTQ6FlWtWHX5c3pxT+TTRQjTgrIUI7p1dST04bRxfKWlwnIXMpdyPx Pk84yYrNsp7KZ33SMw1n3vyTMmXiOk3R6DJOTku5tWBt+4PA6tGQWTf9rOxcJBBJ1CWv MweMU3TC1VdYxsHBRrcLxb3TenR0hGBW9vbYQfMXJccz/waXNIbiHZMyC7zX1NeC3W3o GfNAKU6jImou8Fur0O5wcM0z8KiOAg9g6t0VkoU2PUKsjaXHCgYKIGP2bfCxFvGWMtPC 5fdb58S3XrXXvqX6RJT59hFguYgagbLBj7EDdEQmAgwxPS+AdvZ5KJg3w+HRPsxauMwN uIsg== X-Gm-Message-State: APuU4Z8L884Nqhhn/om1grM94jXzkEtIAgBS3JRN5lhGGlYN+VSgUNU/ 3SqG0klz85X2OpWufJyBeCehqLXcy0umHrIvqKLNwdaxv5LGMMhOeDkEGc6orpuTPSFs0DDLQvN qD+LerxE= X-Gm-Gg: AZFdTZfi+46Iz+I2vtK15NdDc8eA8h87E2mVTattnfp/TNddyMa1OJTeVS/+3BIvWOl 8KBMzm98v2lZC2FY5BAZYrvLipX9LBhoid29+SMKiGzjujxUELj1BPB31gdxa35KkqBSc8mkpAN cS8TNTbqQIq1BJbpRAQhzrK0Zru7FJB+PCX0uGKNmd4TaU3cU6+eiHO/MU+zWCqElqCX1l80Va9 JKKq5/QxqFC2Ilmdi+rmMIIsz3IX3M07Uq4oK2dRTgt7Hh98xA1EbMGLwwAEnUV/eBptzh1zlRY mmloPzceY7sqjPffpBdWsbO1k/qAisVUmxle/pZJn0F/VpD2hWXqRlwPU0ZHgO+jNBM6Ed3fSMz xd7Q95jhXEzgQ+luoIFt31TgTWSkjBo5qE9nAq+4xWUqSPZR3gFr5po+nNBWpV4K8sfZ22X7aEt vWyGR3IAJzuZK655vTSPnF3+3F7kmQ9IKl8FM3z/dZVuoHhzYZKpGDilUIh/6eXCMNpBBR6RN3A q4u67I/buCZbTBtWg5ZfhQ1jJWG2VypVDRe10NNzEJ5hzj0odYREyou+somk97uglcqPJs3QiQa 1Uokqy/LlK7+u2qIS6P4DSlDmastdc8o185Gur4/k6DlYLnOfBGstO8ztOBBp8m7fr6W9IqZYro B3EG78Z3WkfoqAlTrb3P5KSipvyaN X-Received: by 2002:a5d:6f06:0:b0:4a6:8d5b:7338 with SMTP id ffacd0b85a97d-4abb3a4d35fmr32084442f8f.37.1795560741771; Tue, 24 Nov 2026 14:52:21 -0800 (PST) Return-Path: Received: from FRSMI25-LASER.home (2a01cb001331aa00a2e4fb7b0d887544.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:a2e4:fb7b:d88:7544]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6bb989e3sm30462488f8f.52.2026.11.24.14.52.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:21 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][blacksail 04/21] sqlite3: fix CVE-2026-119374 Date: Tue, 24 Nov 2026 23:51:11 +0100 Message-ID: X-Mailer: git-send-email 2.55.0 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 24 Nov 2026 22:52:26 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251084 From: Arpit Patel This patch applies the upstream fix [1], which addresses an FTS5 secure-delete buffer overrun when handling a corrupted database. The GitHub mirror commit [1] corresponds to the SQLite Fossil check-in shown in [2]. [1] https://github.com/sqlite/sqlite/commit/d9de6eedbe918c074c7556400fa21df5960704d9 [2] https://sqlite.org/src/info/9cd4f9e920 Reference: https://nvd.nist.gov/vuln/detail/CVE-2026-119374 Signed-off-by: Arpit Patel Signed-off-by: Yoann Congal --- .../sqlite/sqlite3/CVE-2026-119374.patch | 78 +++++++++++++++++++ meta/recipes-support/sqlite/sqlite3_3.53.4.bb | 1 + 2 files changed, 79 insertions(+) create mode 100644 meta/recipes-support/sqlite/sqlite3/CVE-2026-119374.patch diff --git a/meta/recipes-support/sqlite/sqlite3/CVE-2026-119374.patch b/meta/recipes-support/sqlite/sqlite3/CVE-2026-119374.patch new file mode 100644 index 00000000000..15ca70d338f --- /dev/null +++ b/meta/recipes-support/sqlite/sqlite3/CVE-2026-119374.patch @@ -0,0 +1,78 @@ +From 6875e24f0c0612feccb97ab4c3f92c8444833373 Mon Sep 17 00:00:00 2001 +From: dan +Date: Tue, 11 Aug 2026 14:16:12 +0000 +Subject: [PATCH] Fix a problem in fts5 secure-delete code that could lead to a + buffer overrun when dealing with a strategically corrupted database. Problem + reported by YEONBA. + +FossilOrigin-Name: 9cd4f9e9205c5a5096388397a39349db9ff5377d19095c6b20388ff799969c31 + +CVE: CVE-2026-119374 +Upstream-Status: Backport [https://github.com/sqlite/sqlite/commit/d9de6eedbe918c074c7556400fa21df5960704d9] + +Backport Changes: +- Applied the fix from ext/fts5/fts5_index.c to sqlite3.c because the + recipe uses SQLite's amalgamated source. +- Omitted ext/fts5/test/fts5corruptB.test because the extracted source + does not include the upstream Tcl test tree. +- Omitted manifest and manifest.uuid because they are Fossil metadata + and are not needed for this source patch. + +Signed-off-by: Arpit Patel +--- + sqlite3.c | 18 +++++++++++------- + 1 file changed, 11 insertions(+), 7 deletions(-) + +diff --git a/sqlite3.c b/sqlite3.c +index 06ceecf..4fb0674 100644 +--- a/sqlite3.c ++++ b/sqlite3.c +@@ -256381,34 +256381,38 @@ static void fts5DoSecureDelete( + if( p->rc==SQLITE_OK ){ + const int nMove = nPg - iNextOff; /* Number of bytes to move */ + int nShift = iNextOff - iOff; /* Distance to move them */ +- ++ int nNewPg = 0; + int iPrevKeyOut = 0; +- int iKeyIn = 0; ++ i64 iKeyIn = 0; + + if( nMove>0 ){ + memmove(&aPg[iOff], &aPg[iNextOff], nMove); + } + iPgIdx -= nShift; +- nPg = iPgIdx; ++ nNewPg = iPgIdx; + fts5PutU16(&aPg[2], iPgIdx); + + for(iIdx=0; iIdxnPg ){ ++ FTS5_CORRUPT_IDX(p); ++ break; ++ } + if( iKeyIn!=iDelKeyOff ){ + int iKeyOut = (iKeyIn - (iKeyIn>iOff ? nShift : 0)); +- nPg += sqlite3Fts5PutVarint(&aPg[nPg], iKeyOut - iPrevKeyOut); ++ nNewPg += sqlite3Fts5PutVarint(&aPg[nNewPg], iKeyOut - iPrevKeyOut); + iPrevKeyOut = iKeyOut; + } + } + +- if( iPgIdx==nPg && nIdx>0 && pSeg->iLeafPgno!=1 ){ ++ if( p->rc==SQLITE_OK && iPgIdx==nNewPg && nIdx>0 && pSeg->iLeafPgno!=1 ){ + fts5SecureDeleteIdxEntry(p, iSegid, pSeg->iLeafPgno); + } + +- assert_nc( nPg>4 || fts5GetU16(aPg)==0 ); +- fts5DataWrite(p, FTS5_SEGMENT_ROWID(iSegid,pSeg->iLeafPgno), aPg, nPg); ++ assert_nc( nNewPg>4 || fts5GetU16(aPg)==0 ); ++ fts5DataWrite(p, FTS5_SEGMENT_ROWID(iSegid,pSeg->iLeafPgno), aPg, nNewPg); + } + sqlite3_free(aIdx); + } +-- +2.35.6 + diff --git a/meta/recipes-support/sqlite/sqlite3_3.53.4.bb b/meta/recipes-support/sqlite/sqlite3_3.53.4.bb index 4ec6eb230e0..0c7b7137289 100644 --- a/meta/recipes-support/sqlite/sqlite3_3.53.4.bb +++ b/meta/recipes-support/sqlite/sqlite3_3.53.4.bb @@ -26,6 +26,7 @@ SRC_URI += "file://0001-Add-option-to-disable-zlib.patch \ file://CVE-2026-119377_p1.patch \ file://CVE-2026-119377_p2.patch \ file://CVE-2026-119373.patch \ + file://CVE-2026-119374.patch \ " SRC_URI[sha256sum] = "0e9483900e92cd5de8fd48d16bf9200145a61f7fd5be542a5ac81d8a9516eb9c" From patchwork Tue Nov 24 22:51:12 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 105461 X-Patchwork-Delegate: yoann.congal@smile.fr Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.30974.1795560744095113304 for ; Tue, 24 Nov 2026 14:52:24 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=M7MV2PJ9; spf=pass (domain: smile.fr, ip: 209.85.221.43, mailfrom: yoann.congal@smile.fr) Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-4ac109a8a12so2987054f8f.3 for ; Tue, 24 Nov 2026 14:52:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560742; x=1796165542; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=LzhjiGZz+X3HLXWMkRqRj/II/KLaj7MDSWyCSrojDq0=; b=M7MV2PJ9Az4bS4AMMMkYOu8bXeKBUr355eJtZp4z/rBIHJeVnb6AxQn+ARx+n//4oJ onVdl6ZqaXqLMFF5EV414DotyNkBg7mCKvYJB73aXbSQJqDqcqjPmOFbvAUzEimSut4N rRmQqkiUYAHktgwc4C+FmwbT/aVhyApIcrenrbSmcgBF7cklH1YGb49bAWmu6DOZEzOr IgGFyTEQOkUYLECLbOu4EndYUKgJVC4Xv4aV31hIkb3/mZnkjwV/tFwTL202050fN9ko l6GmiU08HFgbrCc/FIozCzjfOeKgc5sjHDCbSlf0oDHVToKqxnFsN0Vt1mmixn8Lr4ud Ie1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560742; x=1796165542; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=LzhjiGZz+X3HLXWMkRqRj/II/KLaj7MDSWyCSrojDq0=; b=YNMmZNzWxBF875zolbCJo63RIxCVrR9AMKT7NAWTAvcAToJzzuqvPhNLeptTmQj9Kg ECpkq8oj6bXtqaCPoyV/NmI65W5DYTa7Lc9ByEdW092yVFYrY91GTqVN+dFa/Rfqv32R mLwI/KUxflXSPKXGgWVLooVGMMkkwL1RsmzE8YiBL1jeyLDcTYMw4evsrvDS3uiFB5UD IEMctG55tT8DPqS/tRYGnUg8/5MGJQk+D5Vv6vfSmAPWX/z3RRimF9ttNvNLj1SFnXK3 hQviaJBwwkCZ+xZs9D+2UJB+UDVzh+h39n3iATKjXU8GcnYBWdN+ziIyPY2CpkApQ1SO mozg== X-Gm-Message-State: APuU4Z9wXsbXiHUlogryhZGr3sSqEDAtbnoepJxcMIs4ge94udeWEbEW w33eaUjopwWgNJglo4vHXEjB1/ewrCLQi9HNROSwUNj6wQQMWo2EDYNtKS6iCY5zw9zkD3A5VOv uAyiDsjk= X-Gm-Gg: AZFdTZduWqDOH21agkJreykKXEH0TR1AI87JjLiT32viLhZ8mYRewOHB4FCuiH07g6r gmQm2yN0UT/HzrQTdljjqeWxZAeiKBz3TcjJesPuPex+8a3yhs3gS4jUUqltpkHWNMuT+BMtiNp CJ+khcybFsP1/d820TemqkOkSnvges/I3E+OHpmbv5gEyLFZgN+fP2Twb4K2dQByyi2futFR746 igdxZXgYGdWhiMGszof3zF5z9JxPvIRgG2njw4M9EFOGmCIqOxuioj2Z2Sg+4jwOynrJvW54kaN DYcaGcqYVhz8YaUx4q7MF+GfSg14+Ah5D+nLMwQoQhE9mX5mkolratbTmgDDz3A/XmIkpCQyxRy U1hEvQrbgFFlLG82tlgo92fMdHpHyw7+aKp8NOYfwScRKZMDYfOg5RtXiszR16pNDyBZrWRTvyO +9ojyQKpkCipLAYAmwqbRfGNtcfQa0iCRMzLiGkKcrODGAGswde5lhYz8ur+/LCXDWISe40VPTm mKVageg5Ncm6+M/bjog+pU6mQzMH6ALJryRzC2VpefTnTedyfs7JH2fIbKbBkBiqMth+6hxMXNa vZyIdRk8y7Axe6Bs+zb8mC0qnAL6bozZ0OjIXwylN2zV3HkWW0YTVYRQ7azqxiYp3eufDPzMM4B wExCzBCUmWMVBU0TYuOYxC552qJwD X-Received: by 2002:a5d:5d88:0:b0:4b4:510c:51da with SMTP id ffacd0b85a97d-4b4510c553amr13688021f8f.11.1795560742267; Tue, 24 Nov 2026 14:52:22 -0800 (PST) Return-Path: Received: from FRSMI25-LASER.home (2a01cb001331aa00a2e4fb7b0d887544.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:a2e4:fb7b:d88:7544]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6bb989e3sm30462488f8f.52.2026.11.24.14.52.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:22 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][blacksail 05/21] sqlite3: fix CVE-2026-119375 Date: Tue, 24 Nov 2026 23:51:12 +0100 Message-ID: <4168ff6284885b059a5bed1749f5d149b372f8d6.1795560335.git.yoann.congal@smile.fr> X-Mailer: git-send-email 2.55.0 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 24 Nov 2026 22:52:27 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251085 From: Arpit Patel This patch applies the upstream fix [1], which fully initializes the page read when the WAL and database page sizes differ, preventing disclosure of uninitialized page data. The GitHub mirror commit [1] corresponds to the SQLite Fossil check-in shown in [2]. [1] https://github.com/sqlite/sqlite/commit/e5bf119821f25be1d7f10ef0a2edbe175289166e [2] https://sqlite.org/src/info/f9b4ee369557c36c Reference: https://nvd.nist.gov/vuln/detail/CVE-2026-119375 Signed-off-by: Arpit Patel Signed-off-by: Yoann Congal --- .../sqlite/sqlite3/CVE-2026-119375.patch | 47 +++++++++++++++++++ meta/recipes-support/sqlite/sqlite3_3.53.4.bb | 1 + 2 files changed, 48 insertions(+) create mode 100644 meta/recipes-support/sqlite/sqlite3/CVE-2026-119375.patch diff --git a/meta/recipes-support/sqlite/sqlite3/CVE-2026-119375.patch b/meta/recipes-support/sqlite/sqlite3/CVE-2026-119375.patch new file mode 100644 index 00000000000..149889f90ce --- /dev/null +++ b/meta/recipes-support/sqlite/sqlite3/CVE-2026-119375.patch @@ -0,0 +1,47 @@ +From c9e05db641c387aad309081b35afa3e703aa075d Mon Sep 17 00:00:00 2001 +From: drh <> +Date: Sun, 16 Aug 2026 10:49:39 +0000 +Subject: [PATCH] When reading a frame from a WAL file where the WAL pagesize + and the database pagesize disagree, be sure to fully initialize the page that + is read. + +FossilOrigin-Name: f9b4ee369557c36c606666bd7e6d8dc4685d87531993d3ce4e7a718aa814a5ac + +CVE: CVE-2026-119375 +Upstream-Status: Backport [https://github.com/sqlite/sqlite/commit/e5bf119821f25be1d7f10ef0a2edbe175289166e] + +Backport Changes: +- Applied the src/wal.c change to sqlite3.c because the recipe source + uses the amalgamated SQLite layout. +- Omitted manifest and manifest.uuid because they are Fossil + repository metadata and are not needed in this source patch. + +Signed-off-by: Arpit Patel +--- + sqlite3.c | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/sqlite3.c b/sqlite3.c +index 4fb0674..04f4eea 100644 +--- a/sqlite3.c ++++ b/sqlite3.c +@@ -71183,11 +71183,15 @@ SQLITE_PRIVATE int sqlite3WalReadFrame( + i64 iOffset; + sz = pWal->hdr.szPage; + sz = (sz&0xfe00) + ((sz&0x0001)<<16); ++ if( nOut>sz ){ ++ memset(pOut+sz, 0, nOut-sz); ++ nOut = sz; ++ } + testcase( sz<=32768 ); + testcase( sz>=65536 ); + iOffset = walFrameOffset(iRead, sz) + WAL_FRAME_HDRSIZE; + /* testcase( IS_BIG_INT(iOffset) ); // requires a 4GiB WAL */ +- return sqlite3OsRead(pWal->pWalFd, pOut, (nOut>sz ? sz : nOut), iOffset); ++ return sqlite3OsRead(pWal->pWalFd, pOut, nOut, iOffset); + } + + /* +-- +2.35.6 + diff --git a/meta/recipes-support/sqlite/sqlite3_3.53.4.bb b/meta/recipes-support/sqlite/sqlite3_3.53.4.bb index 0c7b7137289..29187e75b4b 100644 --- a/meta/recipes-support/sqlite/sqlite3_3.53.4.bb +++ b/meta/recipes-support/sqlite/sqlite3_3.53.4.bb @@ -27,6 +27,7 @@ SRC_URI += "file://0001-Add-option-to-disable-zlib.patch \ file://CVE-2026-119377_p2.patch \ file://CVE-2026-119373.patch \ file://CVE-2026-119374.patch \ + file://CVE-2026-119375.patch \ " SRC_URI[sha256sum] = "0e9483900e92cd5de8fd48d16bf9200145a61f7fd5be542a5ac81d8a9516eb9c" From patchwork Tue Nov 24 22:51:13 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 105462 X-Patchwork-Delegate: yoann.congal@smile.fr Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.30975.1795560744476322106 for ; Tue, 24 Nov 2026 14:52:24 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=IpW+FsEF; spf=pass (domain: smile.fr, ip: 209.85.221.48, mailfrom: yoann.congal@smile.fr) Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-4a2f4ca0dcfso2921743f8f.1 for ; Tue, 24 Nov 2026 14:52:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560743; x=1796165543; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=0gtszMEK3fVV5lTwJHs6VpBcMGIgWySnHeYa7/bg438=; b=IpW+FsEFMST4um7bqBxhfFit51mNPHSca4Ihyq/NVwbiiM6NXAmm714PiGs4YJz+pJ 4mFS/bXNKw+4hZ83oPMF+stavyvc3YzFMnNdjvRSqOl0S37Pw9QR1hS0jLmZanB06+tQ sbJ8/VOgC5dPVLCF9fuvj9JzD1deYthbnUgVugOqlNf8VckbwFbZ9m8n2HS82Z/4BDU0 w8DSfZOX9lOh3ApGPrePa3yivhRyTySdhgKgkki3ZIPdBUyP5Tv8n6oTnCNsEw9shBTY jpB6K4Nt03HKWjH3PeJ0ZIFjDe14YjIYXXlrCiUYejjbjp7OXHnh8MC/+6uNy8ipV4ya JJTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560743; x=1796165543; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=0gtszMEK3fVV5lTwJHs6VpBcMGIgWySnHeYa7/bg438=; b=KK+Yps2Fgcg0O6Qw7gKSBZpCeiXJXeqYY9UcnYOSTW3sIMs0gJKrTdHqoRzvmcGybU uIr1jF9pw0naknKI3acwNVSdDbvYdMJNsT/kXCElBSqfH/cUJMe/0Y7iXW7JYrHOS8/8 yC1nfud7NYOhDuVSWR1zNaLZ36gCddEDf5h6YAimkGhr5yCB7nAnKAW21EEZR+p13Qch +zqiGQT5+jzxecIdPc5GfgQhQJ3XqGWiLL7KLpbqG0tW6c+k/+MdRbtdcVJ0j1LISrn8 uafI9DQJvAQ6L/j0S/XPJtoh6AnOAdme7qgl/3jMWa1Y/vWOHkDbcQ8sVFVtfb7QYrsU A4Bw== X-Gm-Message-State: APuU4Z/OwE8Zx3CDOAyiUMxg+vyeHPUwUHvQHIodX99+6Ss8oDwgh/3S r/ez/nhBA1xYXZr8RTFz02dT1JCo0qsJUUwiY3q8EdHHj5jpDIv2+mVARbAEy/dBNwFXCrCAAnp zVEmbwOo= X-Gm-Gg: AZFdTZcqm9u3LkWrDYWE7A9A15mkZe21GC9FKi23Q5V88uh5+SW9g7fk94DVwbgCzeS N2r+zNe737/k9KryxUWs69pIiZC9Ds1u7ximCVMSsQ/KJA7H7t8fBYup2ztOJia97iEuTqK8SQN +jqManWY196Knoee1o5lIZG2iPlY1teg+meS86neZS9C5ppMJhIDUuRRt0Uy25HQXVprxUST98x cpnoftST2EWn3jHGLc+Y4irxgm5iFhnWaSxduBAobcJr0zF0dBmUq225xiHdzt8wdZ8c83GloN7 d7bVmZw8p10VuYpl91GEZu+jmBD67wmdaKszuHXxdHhVA/AU1Fivr6Zaks72MjoQdGoefvDdZEP Gg4Vgq7yGaXnQ3a9/b5OlOKC/A2cyyTXlfiix1Hqj47DS97sRqLdWq9cYovS1agEQhhCI9PH/XM N4IXkbptWrrm1Ktvyq780hCnoWWMehmo4h4NTEUYHmu6mpxTxdI4H9TDm7eWAmV49t3YRd37MWt 33nYbLfSNgaJZ3BGTR2H+C8urlutroCEa3v8s9BYln2aNJa1ihtjhv+BAF73WRBxDqR086Oe5VU Gke0NJLB7fV19ts7+0pE/G536Vh/Z1NZyEcHurV+RPrF4Gc9QGSBMP6KSKBhXus2pChxsYENAIv 78wM+sEtsBzbhdehnyoPzs7U5/Fy0 X-Received: by 2002:a05:6000:47d4:b0:493:8c32:94 with SMTP id ffacd0b85a97d-4abb400ae31mr20422301f8f.38.1795560742672; Tue, 24 Nov 2026 14:52:22 -0800 (PST) Return-Path: Received: from FRSMI25-LASER.home (2a01cb001331aa00a2e4fb7b0d887544.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:a2e4:fb7b:d88:7544]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6bb989e3sm30462488f8f.52.2026.11.24.14.52.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:22 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][blacksail 06/21] sqlite3: fix CVE-2026-119379 Date: Tue, 24 Nov 2026 23:51:13 +0100 Message-ID: <1b4fde19c888c8d1c81c7d34c7155b529badce49.1795560335.git.yoann.congal@smile.fr> X-Mailer: git-send-email 2.55.0 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 24 Nov 2026 22:52:27 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251086 From: Arpit Patel This patch applies the upstream fix [1], which prevents a buffer overrun when applying a strategically corrupted changeset through SQLite's session extension. The GitHub mirror commit [1] corresponds to the SQLite Fossil check-in shown in [2]. [1] https://github.com/sqlite/sqlite/commit/64459c87cc702d600704fb77ee40ca1782398a52 [2] https://sqlite.org/src/info/3f57024aecea0f3b Reference: https://nvd.nist.gov/vuln/detail/CVE-2026-119379 Signed-off-by: Arpit Patel Signed-off-by: Yoann Congal --- .../sqlite/sqlite3/CVE-2026-119379.patch | 79 +++++++++++++++++++ meta/recipes-support/sqlite/sqlite3_3.53.4.bb | 1 + 2 files changed, 80 insertions(+) create mode 100644 meta/recipes-support/sqlite/sqlite3/CVE-2026-119379.patch diff --git a/meta/recipes-support/sqlite/sqlite3/CVE-2026-119379.patch b/meta/recipes-support/sqlite/sqlite3/CVE-2026-119379.patch new file mode 100644 index 00000000000..1fad466b3da --- /dev/null +++ b/meta/recipes-support/sqlite/sqlite3/CVE-2026-119379.patch @@ -0,0 +1,79 @@ +From 17e3b5a6f6c3a5e852a86597ad68f259d802296a Mon Sep 17 00:00:00 2001 +From: dan +Date: Mon, 17 Aug 2026 11:31:59 +0000 +Subject: [PATCH] Avoid a buffer overrun when processing a strategically + corrupted changeset. Report [bugs:/info/2026-08-16T10:15:25Z | + 2026-08-16T10:15:25Z]. + +FossilOrigin-Name: 3f57024aecea0f3b565ed823cf94b085031c481fd6323c1f2e4319a53500864f + +CVE: CVE-2026-119379 +Upstream-Status: Backport [https://github.com/sqlite/sqlite/commit/64459c87cc702d600704fb77ee40ca1782398a52] + +Backport Changes: +- Applied the ext/session/sqlite3session.c fix to sqlite3.c because + the recipe source uses the amalgamated SQLite layout. +- Omitted ext/session/sessioncorrupt.test because the extracted source + does not include the upstream test tree. +- Omitted manifest and manifest.uuid because they are Fossil + metadata and are not required for this backport. + +Signed-off-by: Arpit Patel +--- + sqlite3.c | 9 ++++----- + 1 file changed, 4 insertions(+), 5 deletions(-) + +diff --git a/sqlite3.c b/sqlite3.c +index 04f4eea..39b300c 100644 +--- a/sqlite3.c ++++ b/sqlite3.c +@@ -239370,10 +239370,10 @@ static int sessionChangesetApply( + int schemaMismatch = 0; + int rc = SQLITE_OK; /* Return code */ + const char *zTab = 0; /* Name of current table */ +- int nTab = 0; /* Result of sqlite3Strlen30(zTab) */ + SessionApplyCtx sApply; /* changeset_apply() context object */ + int bPatchset; + u64 savedFlag = db->flags & SQLITE_FkNoAction; ++ int bNew = 0; /* True for first entry of new table */ + + assert( xConflict!=0 ); + +@@ -239395,15 +239395,16 @@ static int sessionChangesetApply( + if( rc==SQLITE_OK ){ + rc = sqlite3_exec(db, "PRAGMA defer_foreign_keys = 1", 0, 0, 0); + } +- while( rc==SQLITE_OK && SQLITE_ROW==sqlite3changeset_next(pIter) ){ ++ while( rc==SQLITE_OK && SQLITE_ROW==sessionChangesetNext(pIter, 0, 0,&bNew) ){ + int nCol; + int op; + const char *zNew; + + sqlite3changeset_op(pIter, &zNew, &nCol, &op, 0); + +- if( zTab==0 || sqlite3_strnicmp(zNew, zTab, nTab+1) ){ ++ if( bNew ){ + u8 *abPK; ++ bNew = 0; + + rc = sessionRetryConstraints( + db, pIter->bPatchset, zTab, &sApply, xConflict, pCtx +@@ -239438,7 +239439,6 @@ static int sessionChangesetApply( + rc = SQLITE_NOMEM; + break; + } +- nTab = (int)strlen(zTab); + sApply.azCol = (const char **)zTab; + }else{ + int nMinCol = 0; +@@ -239491,7 +239491,6 @@ static int sessionChangesetApply( + sApply.bStat1 = 0; + } + } +- nTab = sqlite3Strlen30(zTab); + } + } + +-- +2.35.6 + diff --git a/meta/recipes-support/sqlite/sqlite3_3.53.4.bb b/meta/recipes-support/sqlite/sqlite3_3.53.4.bb index 29187e75b4b..2a0517efe67 100644 --- a/meta/recipes-support/sqlite/sqlite3_3.53.4.bb +++ b/meta/recipes-support/sqlite/sqlite3_3.53.4.bb @@ -28,6 +28,7 @@ SRC_URI += "file://0001-Add-option-to-disable-zlib.patch \ file://CVE-2026-119373.patch \ file://CVE-2026-119374.patch \ file://CVE-2026-119375.patch \ + file://CVE-2026-119379.patch \ " SRC_URI[sha256sum] = "0e9483900e92cd5de8fd48d16bf9200145a61f7fd5be542a5ac81d8a9516eb9c" From patchwork Tue Nov 24 22:51:14 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 105456 X-Patchwork-Delegate: yoann.congal@smile.fr Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.30977.1795560744940654911 for ; Tue, 24 Nov 2026 14:52:25 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=CSPekGtk; spf=pass (domain: smile.fr, ip: 209.85.221.52, mailfrom: yoann.congal@smile.fr) Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-491971ac844so4621382f8f.2 for ; Tue, 24 Nov 2026 14:52:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560743; x=1796165543; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=XZsT8sW0Kn5L9VpirvVov91gVTSX+7u93BkTI9y6ydY=; b=CSPekGtkJ33gxVSh+SqPt85VHAafgimV/URXk1eNmFkpKbxy3fsjbnQzuLWl8jCCZw Z9rktYRXwkJwPBsH8j0ny8UeLhWLrzUZC8kYrHzrachpHul8XHy6Wc2NkcJaEymja0Rp PuopHchg+vrdz1xHaIY5juXrYNQpYva6nSLExPe4iipLRH8ece6mFiZF0LdMGjr8HQoi xkaH2HYZfa99New7fzfKJa3jsNXssjWkgvh9lKl1hUWi7v3EdReYb9OvtMuy6gEn4MBw 2Q3PNbaztyTEdRfC0GfucVzoJV0hdeD18rw7vZSbzZataa2Liv3a4Ll/268lZCm1d3bE kVPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560743; x=1796165543; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=XZsT8sW0Kn5L9VpirvVov91gVTSX+7u93BkTI9y6ydY=; b=fHJdfz6Y5KiqTAlVfR14nzrMCTSr9dNyg1XuTH9tw4PLwJ3BCyrRTa0lVuVIYDOUiF pMVk/kpGS6gd5pCqIwnGDEZsql22pnLUARWBr4s95N7VevkJyOBgYGnUIPbeHa/Yqiyc sbYESS4BbIdlxzVpnKDD4j6rBIl4AoBVvBFTRJaRbfnKV0kFPg8OFhLFV0kLdgT51VkC /U6+msCl7s3i++WXuAXbtHXVj/d9/toHk37Y4RYNkOXGFdQVXLgfEXT2PPDbaw7Tmh0x k0w6k0JOede3iOWbrXbwjW+DFxSvchqsNcixe48ckRdrQsqc3pjfh13u8Ky5j8ZO2sZl jyxA== X-Gm-Message-State: APuU4Z90DegJMgxrvBGj+LlpSTS+E9tRGVYUe/fUUyIQ9R8q/d0mSKzy ioU/NQ1qzCaQpvULpH0MlNQf9GaXRHwDlwdNMz2VVyNBz87YWSgZnt0PwXK90UgVegLaz39ds9a CoW9+BXE= X-Gm-Gg: AZFdTZeOYEoquinT9b9/2+4CSGZ/FYB2WorRphdkwF3mucvQaX8c0Fof3NzFh5s5ta6 BmGfpNXz+V6EAVdvz5OgKk38pT5B6vPvJ2IrnRhpD0acVcTUmWVL6ZUoSUbOQwK87ho5plHDxvu WJX9c5BszYgoFCHLk/Xys3/adQr7NypF2C9LGDpm04BhBza2wv9HBtaQLJgCPNPCFfeVFdhoMyO TGA518/IGBM52R31eh6MW7bHzfqdQltvilrOvRmSZqk2uwTvURwmdEF9ZRTNsSc9GoUSGJwB0+r L4sksU1pKcRra3S6SOY+iP9uoo6i/zQMpwVZReqWfqQmNH8XePy2WO9oCc26XRkGbe5gzp3TQ52 tHwclK+XMVHcEu243eidNCaD+AKw7rwnwEGqTOZkEg6yg2ydCn3NJmdLfqPz0jPfPpIDrbjZvag VazeKVaIx44QP7TVWhMcXNCVDPkYc4OqoPAVd/azTLd8d7WATNWXCUZnRARy8sTFOLhX1FcT+cB PGgnrop6jXzv69+rHWGHbhTJv8G8Sqk/8PSfMRxArgiF1Bn2z4fHmfCP0tveSfO5wB3DqdyeHEC OEQH4HKssdMRvS2h8qbUrvcJlFhc6g/iVqsD2c3zwaEFsXWLG9wfRREGjL4AoxGnjOVWwyQLy0D UkoQCXdoAF5Wmqw8E8jtYtr1vI7cu X-Received: by 2002:a05:6000:29cc:b0:4a9:32c9:a6c with SMTP id ffacd0b85a97d-4abb43deca6mr19773057f8f.50.1795560743121; Tue, 24 Nov 2026 14:52:23 -0800 (PST) Return-Path: Received: from FRSMI25-LASER.home (2a01cb001331aa00a2e4fb7b0d887544.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:a2e4:fb7b:d88:7544]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6bb989e3sm30462488f8f.52.2026.11.24.14.52.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:22 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][blacksail 07/21] sqlite3: fix CVE-2026-119372 Date: Tue, 24 Nov 2026 23:51:14 +0100 Message-ID: <45e72e075a6f7a2e9ef29f2c5b46ccd3d37716bd.1795560335.git.yoann.congal@smile.fr> X-Mailer: git-send-email 2.55.0 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 24 Nov 2026 22:52:25 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251087 From: Arpit Patel This patch applies the upstream fix [1], which prevents a use-after-free in FTS3 snippet() processing. The GitHub mirror commit [1] corresponds to the SQLite Fossil check-in shown in [2]. [1] https://github.com/sqlite/sqlite/commit/a87bd2471a9c0606e78d3c3678bcd9cecaa0e731 [2] https://sqlite.org/src/info/e4635c41536a Reference: https://nvd.nist.gov/vuln/detail/CVE-2026-119372 Signed-off-by: Arpit Patel Signed-off-by: Yoann Congal --- .../sqlite/sqlite3/CVE-2026-119372.patch | 56 +++++++++++++++++++ meta/recipes-support/sqlite/sqlite3_3.53.4.bb | 1 + 2 files changed, 57 insertions(+) create mode 100644 meta/recipes-support/sqlite/sqlite3/CVE-2026-119372.patch diff --git a/meta/recipes-support/sqlite/sqlite3/CVE-2026-119372.patch b/meta/recipes-support/sqlite/sqlite3/CVE-2026-119372.patch new file mode 100644 index 00000000000..37fbba21be9 --- /dev/null +++ b/meta/recipes-support/sqlite/sqlite3/CVE-2026-119372.patch @@ -0,0 +1,56 @@ +From a5fe767d0ba12d3082bd22b3c5341fdb6cc6ef95 Mon Sep 17 00:00:00 2001 +From: dan +Date: Mon, 17 Aug 2026 13:55:38 +0000 +Subject: [PATCH] Avoid a problem causing a use-after-free in the fts3 + snippet() function. Report [bugs:/info/2026-08-17T09:18:24Z | + 2026-08-17T09:18:24Z]. + +FossilOrigin-Name: e4635c41536a0b3620780c3f1c872de33121370bafb608fce9fe7e3113e2ae01 + +CVE: CVE-2026-119372 +Upstream-Status: Backport [https://github.com/sqlite/sqlite/commit/a87bd2471a9c0606e78d3c3678bcd9cecaa0e731] + +Backport Changes: +- Applied the ext/fts3/fts3_snippet.c fix to sqlite3.c because the + recipe source uses the amalgamated SQLite layout. +- Omitted test/fts3snippet2.test because the extracted source does not + include the upstream Tcl test tree. +- Omitted manifest and manifest.uuid because they are Fossil + repository metadata and are not needed for this source patch. + +Signed-off-by: Arpit Patel +--- + sqlite3.c | 10 +++++++--- + 1 file changed, 7 insertions(+), 3 deletions(-) + +diff --git a/sqlite3.c b/sqlite3.c +index 8a0f44c..76cb284 100644 +--- a/sqlite3.c ++++ b/sqlite3.c +@@ -210732,6 +210732,7 @@ static int fts3BestSnippet( + sqlite3_int64 nByte; /* Number of bytes of space to allocate */ + int iBestScore = -1; /* Best snippet score found so far */ + int i; /* Loop counter */ ++ Fts3Expr *pExpr = pCsr->pExpr; + + memset(&sIter, 0, sizeof(sIter)); + +@@ -210760,9 +210761,12 @@ static int fts3BestSnippet( + sIter.nSnippet = nSnippet; + sIter.nPhrase = nList; + sIter.iCurrent = -1; +- rc = sqlite3Fts3ExprIterate( +- pCsr->pExpr, fts3SnippetFindPositions, (void*)&sIter +- ); ++ rc = sqlite3Fts3ExprIterate(pExpr, fts3SnippetFindPositions, (void*)&sIter); ++ if( rc==SQLITE_OK ){ ++ /* Iterate through the expression twice, in case pointers garnered during ++ ** the first iteration are invalidated by a call to fts5EvalRestart(). */ ++ rc = sqlite3Fts3ExprIterate(pExpr, fts3SnippetFindPositions, (void*)&sIter); ++ } + if( rc==SQLITE_OK ){ + + /* Set the *pmSeen output variable. */ +-- +2.35.6 + diff --git a/meta/recipes-support/sqlite/sqlite3_3.53.4.bb b/meta/recipes-support/sqlite/sqlite3_3.53.4.bb index 2a0517efe67..911f5720298 100644 --- a/meta/recipes-support/sqlite/sqlite3_3.53.4.bb +++ b/meta/recipes-support/sqlite/sqlite3_3.53.4.bb @@ -29,6 +29,7 @@ SRC_URI += "file://0001-Add-option-to-disable-zlib.patch \ file://CVE-2026-119374.patch \ file://CVE-2026-119375.patch \ file://CVE-2026-119379.patch \ + file://CVE-2026-119372.patch \ " SRC_URI[sha256sum] = "0e9483900e92cd5de8fd48d16bf9200145a61f7fd5be542a5ac81d8a9516eb9c" From patchwork Tue Nov 24 22:51:15 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 105463 X-Patchwork-Delegate: yoann.congal@smile.fr Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.31017.1795560745665628267 for ; Tue, 24 Nov 2026 14:52:25 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=Ql3f8TQk; spf=pass (domain: smile.fr, ip: 209.85.221.42, mailfrom: yoann.congal@smile.fr) Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-4a34ffd3e39so2784038f8f.0 for ; Tue, 24 Nov 2026 14:52:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560744; x=1796165544; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=2yRHzI+RxyOjZ1/yk7lXB9VgspNvmNJ4k+KNpxwGnB8=; b=Ql3f8TQkFPOtlhmHDajC+su/DbA6Pin0UNODDKPCkP+/qMnz1IOUqS3E0ESc97tW6r 3CbhFPVpiFSD3SFbcIY6UKyw4RXlV2/chzRpt+WRrag3cnhb/LHP3OH+ehH0hYlcsC3E bJcWKGqLXTrgY0OG6D4/qI0UCVrVkshh4pvVaE7zt84+ykZUVQ7QdqY2JGsk9EHnkvu1 rTV/wjnjCQJlFZEO7CgySSykRaCkcc38BI7itYtflW+xUM5VozFclxD7dTlayWXTfcu6 gOkZ1qdoJBXDe5pg+Vjr9HtTxrR5qfyLLjnika7UgoOX9zcP1WWCwoskqzz/S2IpmD3I llRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560744; x=1796165544; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=2yRHzI+RxyOjZ1/yk7lXB9VgspNvmNJ4k+KNpxwGnB8=; b=IK+MfVlWB2pEgiIVi7nmNEUTbOgO0Zp2yJEg//dQ0XKRrPWDvPIxvIJEVLkLNM26qq Z73mJDtfiNqIkDX9auAABfRK/1bjHMfR08fHEKBdLIEk0qWSaYjPBhSXoOKoyd//Eqwg byG9vURQxyLFffNrpFc/ugLUSB2jBiscmb0YzIxPs7nvbz9r0OSQ2bC3AJyN3cOv055a tcro6Hwxuq1LRItay3Wm+HP0Q6NcNS9fWR65sO/BaZ/fTsXzG84Wiy0LyYTgdtbhb7wu 5q5Up1v4riWNnLmDYnJLoJn41sx8ilngIqj4q2ap3I0Fu2kqiojiVsZLIcUmcPB6ldpQ g+BA== X-Gm-Message-State: APuU4Z89bFAXwP7f9iUSvkrlWdYtfnTYOlAlX33AZG6+gqxWZ337TXA+ KNfYjnuglx06hQ2Q0lxnBYRHGQsSKS/YYCFgcTEdcg5KvRcl52A9z0PT753t7z0cV3c/llazLsA beevxpDk= X-Gm-Gg: AZFdTZd98wlERR5QIi9YeklwTklQ2KDSTVo/ZTcS6fpsqmTCODlrShb7iwSEMPXEIUy IiQbJcCU3/ERvg9JYRZ32AgS+8WkJxwRxS2L/La2/lHFn4ohLs6yQLBp/LdwLsurevyjBKEB4GX jyXFNlpZh6TkKcD2bBwHJ/h7YYOIVPweMguKHlWd8npC7PVVBGqJFXh1v1lB+Vz13GfQlnt8AgW HGJVAymkwWyXbgTQIGN1smSpzae/9dKRqSubf9JOU3rSyw77MMF54Hyful+ifQG1PERhBkbkBxi pQEVDBcChY10FPsm7GTd7xZCE9rtmOqG+xO/isF15sl9W+5GRFH4LLcQ253NtxCE5ttdOG4VjFi 6BTEsaNhIumyYXpB8XilLgv+uquSDf1/pzf8vs9vR2k3rmmJhwEa+znl0aqQXYpto3KOFYfmfbZ vrhWI2OaVKM8gpc7MvleDde+Q9I0+mkXLW5FnBnYhnbWAkJhzBL/t4i0aW2Wy5sN/W1+T5cQPdZ 0K5ZdfJY0+2aJcFc6aD11NfUwvRRSt2fm0e6ljUwlK5EbuiGNtfzRlgD3fMdcAUcUdhqsMrm7lU nd7QBG9ka9C7i11OUphULEX444LptfNa3v1khH8mmtlVIxPU6J8VTcWZcPswRRuRisbRSwoJblB cJWsoyo6v1Kv3AY/HAaRI2nExWQZM X-Received: by 2002:a05:6000:310a:b0:48d:f383:2356 with SMTP id ffacd0b85a97d-4abb5eabd3dmr34501190f8f.53.1795560743916; Tue, 24 Nov 2026 14:52:23 -0800 (PST) Return-Path: Received: from FRSMI25-LASER.home (2a01cb001331aa00a2e4fb7b0d887544.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:a2e4:fb7b:d88:7544]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6bb989e3sm30462488f8f.52.2026.11.24.14.52.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:23 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][blacksail 08/21] sqlite3: fix CVE-2026-119378 Date: Tue, 24 Nov 2026 23:51:15 +0100 Message-ID: <6ac90ac92db451d1f3aca1d53347248464dc993b.1795560335.git.yoann.congal@smile.fr> X-Mailer: git-send-email 2.55.0 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 24 Nov 2026 22:52:27 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251088 From: Arpit Patel This patch applies the upstream fix [1], which prevents a use-after-free in R-Tree when a manipulated shadow-table schema causes sqlite3_last_insert_rowid() to return 0. The GitHub mirror commit [1] corresponds to the SQLite Fossil check-in shown in [2]. [1] https://github.com/sqlite/sqlite/commit/d21bd37c7cfc1b85b17a6703555f0926b6236e04 [2] https://sqlite.org/src/info/6a9e1415659f9e75 Reference: https://nvd.nist.gov/vuln/detail/CVE-2026-119378 Signed-off-by: Arpit Patel Signed-off-by: Yoann Congal --- .../sqlite/sqlite3/CVE-2026-119378.patch | 52 +++++++++++++++++++ meta/recipes-support/sqlite/sqlite3_3.53.4.bb | 1 + 2 files changed, 53 insertions(+) create mode 100644 meta/recipes-support/sqlite/sqlite3/CVE-2026-119378.patch diff --git a/meta/recipes-support/sqlite/sqlite3/CVE-2026-119378.patch b/meta/recipes-support/sqlite/sqlite3/CVE-2026-119378.patch new file mode 100644 index 00000000000..23d9aaf6aad --- /dev/null +++ b/meta/recipes-support/sqlite/sqlite3/CVE-2026-119378.patch @@ -0,0 +1,52 @@ +From 347b0263ce597345446fcfd259d063ef86228191 Mon Sep 17 00:00:00 2001 +From: dan +Date: Thu, 24 Sep 2026 20:14:31 +0000 +Subject: [PATCH] Avoid a use-after-free problem in rtree triggered by an + attacker manipulating the shadow table schema to ensure + sqlite3_last_insert_rowid() returns 0 after certain INSERTs. Problem reported + by Claude and Ada Logics. + +FossilOrigin-Name: 6a9e1415659f9e75940b3c3a6f6e123f61c5e9e2a7a612693ee395d7b7567bef + +CVE: CVE-2026-119378 +Upstream-Status: Backport [https://github.com/sqlite/sqlite/commit/d21bd37c7cfc1b85b17a6703555f0926b6236e04] + +Backport Changes: +- Applied the ext/rtree/rtree.c fix to sqlite3.c because the recipe + source uses the amalgamated SQLite layout. +- Omitted ext/rtree/rtreeI.test because the extracted source does not + include the upstream test tree. +- Omitted manifest and manifest.uuid because they are Fossil + repository metadata and are not needed for this source patch. + +Signed-off-by: Arpit Patel +--- + sqlite3.c | 12 +++++++++++- + 1 file changed, 11 insertions(+), 1 deletion(-) + +diff --git a/sqlite3.c b/sqlite3.c +index 76cb284..d2c0f23 100644 +--- a/sqlite3.c ++++ b/sqlite3.c +@@ -219417,7 +219417,17 @@ static int nodeWrite(Rtree *pRtree, RtreeNode *pNode){ + sqlite3_bind_null(p, 2); + if( pNode->iNode==0 && rc==SQLITE_OK ){ + pNode->iNode = sqlite3_last_insert_rowid(pRtree->db); +- nodeHashInsert(pRtree, pNode); ++ if( pNode->iNode==0 ){ ++ /* If the SQL statement has succeeded but sqlite3_last_insert_rowid() ++ ** returns 0, then the shadow table schema has been corrupted somehow ++ ** (e.g. the %_node table has been replaced by a WITHOUT ROWID table). ++ ** It would be dangerous to continue in this case as the hash table ++ ** implementation assumes iNode==0 means that the node is not part ++ ** of the hash table. */ ++ rc = SQLITE_CORRUPT_VTAB; ++ }else{ ++ nodeHashInsert(pRtree, pNode); ++ } + } + } + return rc; +-- +2.35.6 + diff --git a/meta/recipes-support/sqlite/sqlite3_3.53.4.bb b/meta/recipes-support/sqlite/sqlite3_3.53.4.bb index 911f5720298..1aea7cb3741 100644 --- a/meta/recipes-support/sqlite/sqlite3_3.53.4.bb +++ b/meta/recipes-support/sqlite/sqlite3_3.53.4.bb @@ -30,6 +30,7 @@ SRC_URI += "file://0001-Add-option-to-disable-zlib.patch \ file://CVE-2026-119375.patch \ file://CVE-2026-119379.patch \ file://CVE-2026-119372.patch \ + file://CVE-2026-119378.patch \ " SRC_URI[sha256sum] = "0e9483900e92cd5de8fd48d16bf9200145a61f7fd5be542a5ac81d8a9516eb9c" From patchwork Tue Nov 24 22:51:16 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 105464 X-Patchwork-Delegate: yoann.congal@smile.fr Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.30979.1795560746861911053 for ; Tue, 24 Nov 2026 14:52:27 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=hFr1Hn4z; spf=pass (domain: smile.fr, ip: 209.85.128.43, mailfrom: yoann.congal@smile.fr) Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-4bb6057b333so24075525e9.3 for ; Tue, 24 Nov 2026 14:52:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560745; x=1796165545; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=1k7GzTKIOkVJLe6A5a37Z8HGKYQ58EYjyflMb0OmFio=; b=hFr1Hn4zonPiIEbdYTIuupnzFGSd+VrmY18+5ouhZGfsVnWXWFIwFH4592qgiQ4ll8 2TlUk8dxJjSFkrRYYF+uJrM7k8UZHG5go6/LGOx9d1AUDDnrl3w2/HNcrLVTVlbkFbwD LO6OldvuQ6ln9FDBE/QSzfdLt46lG3ZA5wO0woVjYE8LvOyZTVkk2N3DEXURFn6ACDi9 /TsU+xqx0nQwnt5RSj+m5xqnk4AD8ZSQHyJnJM4BZZKjxPSzgytQQxbNHFjJ3waoUgPH gHrP/qAA4F8yCI32smiIOgEeJ2G0+45+uK6JP9bikAnvdKpdFSZ3yPx07JdSelCzZtIn CHyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560745; x=1796165545; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=1k7GzTKIOkVJLe6A5a37Z8HGKYQ58EYjyflMb0OmFio=; b=g4uVfEP07WqNwXwFRGfSYJibAuleV8hRUB4d27XQwop3+Pt2ezoLzSBiP1jsJGIcEV rTdCKVDrxYbCoYy/l7ePqaP1i2G7S0sA+pSTdwHiQQvmJ+DzOMIakJK9qi6XCU0XxZIf LMtElG0ZWOCcQH54DBG/YiQX/bHni4j8q2DXZlNZAUXEU4eslmHPcBiINxAnKpptMoUb CXP+uEKSrQFwTz2uEPAwihgzqjcCEQ0IaWu5NucFPZA28FmGl6ZGp0+VQIvozOzRSlji M6jPRCELgGlF4nzZ1b1KmuT7F6Po0s04WYZaFFjM/LYQ8/DztwokfRc8yt17X4/noA/W jwiw== X-Gm-Message-State: APuU4Z/FEEjRxVNH/aK3K5kppKCBy03pOgM2ODjEnFXtLYzoW2vobWyK +YpWwkW+dKfKsZr8GiMGgiSR5IOYEyj0u6kiRPDRyLtUm4QE9HtSAP633v2RF+zvDvSdRCv2V3t 3veNseXU= X-Gm-Gg: AZFdTZc12XuTa7e0UP/Eur98iJ1dvaLO9kcKXUcwuk24VU/MG40o0scm1mtaNWYwC/o JIcP34DwuyviVvr9ln/vEueyPUVmP069dymCQkVZTnrrauXw8MyuasI+G0Y7egQUXAzAG7lhxEm dx1d5pRYIN4ABhCjJnNos1fMyT8lHKmpQSXy/0vgQPIIwpt/Zr2Bl3BORyDaYI0QWxQb2Dt9VgF aJ/RaDOrRIiewbZNGK0+ahYAGMbqUVNgm3cS0gonCDjLD3QWGDZqedWUsJ0oi7ixGZxXSM9RA2J 8lOVkDUbM7qHbFvXuhk2F5qItCN/cD5/d59pvVyWvMd8hpLheh4JCw3FrI4jdB7T0SCkDQTiMc5 hmOWruzF+bgcqPTvyw1WV3Uho0lUpF38hMmq3AXkA05F3n4EPJ8eq1KK3XIMA8H4oMoYQnWKmHr O3X+/1igDTOMK38XXlSrQe9J8/xlV0oyaRM9iNfXm2O+m4Ej7ii5eREKc4w+XvDi3XoK02uIKLI PDCp7FP+m/ld8ti/qkPHLH4UeWEBypT1nyLPjjcpRYrou6QGXwS6LFPj+ur9XUF3W32J1UstAeP BhM4L4Y93CIHVsp5foPYI8m6wz60dqNvHjCwOfaODgJHmAqht2QuemfRpMdfskUUX+hdm80Z5JT oowboEnIcjnOCYvanVmVuJt6fRfnPBg== X-Received: by 2002:a05:600c:4f10:b0:4a1:88de:9e8b with SMTP id 5b1f17b1804b1-4bb88807909mr354632535e9.5.1795560744955; Tue, 24 Nov 2026 14:52:24 -0800 (PST) Return-Path: Received: from FRSMI25-LASER.home (2a01cb001331aa00a2e4fb7b0d887544.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:a2e4:fb7b:d88:7544]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6bb989e3sm30462488f8f.52.2026.11.24.14.52.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:24 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][blacksail 09/21] sqlite3: fix CVE-2026-119376 Date: Tue, 24 Nov 2026 23:51:16 +0100 Message-ID: <1e0d7f4e8bd99a632b743f1b6eba11d6d6de54f8.1795560335.git.yoann.congal@smile.fr> X-Mailer: git-send-email 2.55.0 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 24 Nov 2026 22:52:27 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251089 From: Arpit Patel This patch applies the upstream fix [1], which includes COLLATE expressions in expression tree depth calculations and prevents bypass of the expression depth limit. The GitHub mirror commit [1] corresponds to the SQLite Fossil check-in shown in [2]. [1] https://github.com/sqlite/sqlite/commit/d54522a5b832422ab893a1e9fa7a99ab314ea4e2 [2] https://sqlite.org/src/info/252c0b7bf5a727d2 Reference: https://nvd.nist.gov/vuln/detail/CVE-2026-119376 Signed-off-by: Arpit Patel Signed-off-by: Yoann Congal --- .../sqlite/sqlite3/CVE-2026-119376.patch | 75 +++++++++++++++++++ meta/recipes-support/sqlite/sqlite3_3.53.4.bb | 1 + 2 files changed, 76 insertions(+) create mode 100644 meta/recipes-support/sqlite/sqlite3/CVE-2026-119376.patch diff --git a/meta/recipes-support/sqlite/sqlite3/CVE-2026-119376.patch b/meta/recipes-support/sqlite/sqlite3/CVE-2026-119376.patch new file mode 100644 index 00000000000..5a6bc972598 --- /dev/null +++ b/meta/recipes-support/sqlite/sqlite3/CVE-2026-119376.patch @@ -0,0 +1,75 @@ +From 2af844923ba3e32fb16b06adab4e4ad3b2f4da49 Mon Sep 17 00:00:00 2001 +From: drh <> +Date: Sun, 4 Oct 2026 21:54:17 +0000 +Subject: [PATCH] Fix expression tree depth calculations for COLLATE. + [bugs:/info/2026-10-04T04:50:56Z|Bug 2026-10-04T04:50:56Z] + +FossilOrigin-Name: 252c0b7bf5a727d29605672bb58e06c758173c276671df3e388a68294998b4d3 + +CVE: CVE-2026-119376 +Upstream-Status: Backport [https://github.com/sqlite/sqlite/commit/d54522a5b832422ab893a1e9fa7a99ab314ea4e2] + +Backport Changes: +- Ported the src/expr.c and src/sqliteInt.h changes into sqlite3.c + because the recipe source uses the amalgamated SQLite layout. +- Omitted test/sqllimits1.test because the extracted source does not + include the upstream test tree. +- Omitted manifest and manifest.uuid because they are Fossil + repository metadata and are not needed for this source patch. + +Signed-off-by: Arpit Patel +--- + sqlite3.c | 16 +++++++++++----- + 1 file changed, 11 insertions(+), 5 deletions(-) + +diff --git a/sqlite3.c b/sqlite3.c +index d2c0f23..cb678b2 100644 +--- a/sqlite3.c ++++ b/sqlite3.c +@@ -22409,8 +22409,8 @@ SQLITE_PRIVATE void sqlite3SetTextEncoding(sqlite3 *db, u8); + SQLITE_PRIVATE CollSeq *sqlite3ExprCollSeq(Parse *pParse, const Expr *pExpr); + SQLITE_PRIVATE CollSeq *sqlite3ExprNNCollSeq(Parse *pParse, const Expr *pExpr); + SQLITE_PRIVATE int sqlite3ExprCollSeqMatch(Parse*,const Expr*,const Expr*); +-SQLITE_PRIVATE Expr *sqlite3ExprAddCollateToken(const Parse *pParse, Expr*, const Token*, int); +-SQLITE_PRIVATE Expr *sqlite3ExprAddCollateString(const Parse*,Expr*,const char*); ++SQLITE_PRIVATE Expr *sqlite3ExprAddCollateToken(Parse *pParse, Expr*, const Token*, int); ++SQLITE_PRIVATE Expr *sqlite3ExprAddCollateString(Parse*,Expr*,const char*); + SQLITE_PRIVATE Expr *sqlite3ExprSkipCollate(Expr*); + SQLITE_PRIVATE Expr *sqlite3ExprSkipCollateAndLikely(Expr*); + SQLITE_PRIVATE int sqlite3CheckCollSeq(Parse *, CollSeq *); +@@ -113018,23 +113018,29 @@ SQLITE_PRIVATE int sqlite3ExprDataType(const Expr *pExpr){ + ** and the pExpr parameter is returned unchanged. + */ + SQLITE_PRIVATE Expr *sqlite3ExprAddCollateToken( +- const Parse *pParse, /* Parsing context */ ++ Parse *pParse, /* Parsing context */ + Expr *pExpr, /* Add the "COLLATE" clause to this expression */ + const Token *pCollName, /* Name of collating sequence */ + int dequote /* True to dequote pCollName */ + ){ +- if( pCollName->n>0 ){ ++ if( pCollName->n>0 && pParse->nErr==0 ){ + Expr *pNew = sqlite3ExprAlloc(pParse->db, TK_COLLATE, pCollName, dequote); ++ assert( pExpr!=0 ); + if( pNew ){ + pNew->pLeft = pExpr; + pNew->flags |= EP_Collate|EP_Skip; ++#if SQLITE_MAX_EXPR_DEPTH>0 ++ pNew->nHeight = pExpr->nHeight+1; ++ sqlite3ExprCheckHeight(pParse, pNew->nHeight); ++ testcase( pParse->nErr>0 ); ++#endif + pExpr = pNew; + } + } + return pExpr; + } + SQLITE_PRIVATE Expr *sqlite3ExprAddCollateString( +- const Parse *pParse, /* Parsing context */ ++ Parse *pParse, /* Parsing context */ + Expr *pExpr, /* Add the "COLLATE" clause to this expression */ + const char *zC /* The collating sequence name */ + ){ +-- +2.35.6 + diff --git a/meta/recipes-support/sqlite/sqlite3_3.53.4.bb b/meta/recipes-support/sqlite/sqlite3_3.53.4.bb index 1aea7cb3741..06cd34818f5 100644 --- a/meta/recipes-support/sqlite/sqlite3_3.53.4.bb +++ b/meta/recipes-support/sqlite/sqlite3_3.53.4.bb @@ -31,6 +31,7 @@ SRC_URI += "file://0001-Add-option-to-disable-zlib.patch \ file://CVE-2026-119379.patch \ file://CVE-2026-119372.patch \ file://CVE-2026-119378.patch \ + file://CVE-2026-119376.patch \ " SRC_URI[sha256sum] = "0e9483900e92cd5de8fd48d16bf9200145a61f7fd5be542a5ac81d8a9516eb9c" From patchwork Tue Nov 24 22:51:17 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 105465 X-Patchwork-Delegate: yoann.congal@smile.fr Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.31020.1795560747368259944 for ; Tue, 24 Nov 2026 14:52:27 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=g+ZlGIsa; spf=pass (domain: smile.fr, ip: 209.85.221.45, mailfrom: yoann.congal@smile.fr) Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-48dee593f18so4795403f8f.3 for ; Tue, 24 Nov 2026 14:52:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560745; x=1796165545; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=wvhO74IUd6n8ZagX3Re2qgFbZB5krBJfZXbLHhh+hKI=; b=g+ZlGIsaICNT6im6q+IzlbhipotFK799LTVKR+biWs8MMg5EHQu8ArOovujDWXb+Zl mbwV3nb2ZA2poQh2eHUgzKbSMpWJ57RLrArKvIFfxQcJRslaJllEjDHuCyepx7Z2y7hK REt1QNU9EQQaMfMQip6Q/1TrCQwZ4bzsLLsFDXJMzIEfs35V5fVXuy83J3q0szkgcEA4 ewwy2ZGacIXuOXzUcaKJZlZDkyHZ6z8jIzKSn6VyRpvRmRhjmEZbujIE7YM56ZIlF6vp FNDEpTXh9MYskQmAuiW7wnpg2MYoSYdsgfJkJVDA8j/GHgqdHpJzTaNeZhwIWTF4a4XG Tv2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560745; x=1796165545; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=wvhO74IUd6n8ZagX3Re2qgFbZB5krBJfZXbLHhh+hKI=; b=O/aRg3DD0XyYibcOZSF/3OBk2WZQcE/Ti3BYgNplQChuFt1ZkuyjFM0glRdfkFiGhv tWkQguVlx7wdqHoedmj34iuIv8yXfbaOMQlecK8VORUDzOe6m/AoUzZyjF2/2tkZtaVp yplSx03ulmgHYYFaNRuDlZMQJ0vJ3Px+QZeySuxGkA2UfK5iTE99z7EkZ2sjrMNHSoHc +ZMTQ5iGzb9/k3VEvWI17H8phyBnTiKrnmgcz+rPiOwe8m4vcQ1fk9YiiG4e0rfn42pe d1Ys6onDEKO9OFxR6WKoUeujXeL5MC375q3GCQQdxYLeJ8vb+D/81kcL1CuPFh7AQiIk DGFw== X-Gm-Message-State: APuU4Z/JCgy1vIhmp3OpBCNyRijJpOQ2Sx7PVmC9MduL5YGL6sbgz9g6 RE8i4hlVG8EVf40gjE4jKXi1eelt3LhE7Yq7N+V+F/zRa8v/2ifZKpKERenuqCN8a5WASc5N9Zs MenRjqio= X-Gm-Gg: AZFdTZfuTNwbCwlz0ByiV2gJM2CpnTvbiepZF4pD3hMCYzpBXVw8enYnIR+3XPaEc4S mhPtoDAWjaRMF5Dg5ieOtlz9J0gSPSPcdRpDBAQZfOC2MRVS/7WfBt3WSbDaEwnxjYOtl1qQjFE Jn0iU6nAG5CWPibE9IJBVXxe8GgYfr4aNkaNUA1yCf5Jmyr3yKoxOHkkvWJnMehvsUHfbTpDZiE Nc9seuuEu64aAI7yQ5++WuBXlZKtjxeQE/FpEH/lwremJUW3SSMGJzR5A6aLmE0iFNj4UXCHLC3 4NDu0KLaQxeMl8lW50c10VHoRzAqjQvbACeBsSkDtd6dxvc3fr5KCtBcuOZbjGw8kqOLJWjXNOe awzWNICFsnWFUWbwO1kVfnq2v/0rTaYthe8zq/tdK9s2x4EEJOHwA89ps2uFR7ENXIcUJkk+1d1 NwMqMVLX/MEqLvPxG0fRGVj0yJFxgylO81zntDJ+hazKGEin7CBG0Gcv6omQg1J4CQbfm8uQ5FD AskLNgijc4Uz2XBqE9MBXVF+DrbezfnR6/aFioWqbEYMH7TK5Ps3rb9dzM/uovY3LeD03Wy8sTj zEEmlIfPC0YkT+llUjBWvKkI7SV4txIIRdIG40yLw9QB562eSx1VFiKCcSOzOYnK8h0PLVe3hB+ wvfriikj0DWSGljeYfIo+2cb6F04oBOz52ahBzQC2CDjkKctutg== X-Received: by 2002:a05:6000:2312:b0:48e:b62:d133 with SMTP id ffacd0b85a97d-4abab6de675mr32993340f8f.5.1795560745447; Tue, 24 Nov 2026 14:52:25 -0800 (PST) Return-Path: Received: from FRSMI25-LASER.home (2a01cb001331aa00a2e4fb7b0d887544.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:a2e4:fb7b:d88:7544]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6bb989e3sm30462488f8f.52.2026.11.24.14.52.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:25 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][blacksail 10/21] sqlite3: fix CVE-2026-119371 Date: Tue, 24 Nov 2026 23:51:17 +0100 Message-ID: <5394a83c67a1d91a45eb2259aa95462dd0c6a11c.1795560335.git.yoann.congal@smile.fr> X-Mailer: git-send-email 2.55.0 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 24 Nov 2026 22:52:28 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251090 From: Arpit Patel This patch applies the upstream CTE recursion limit [1]. It uses the expression-depth counter and limit already present in SQLite 3.53.4, so the prerequisite patch is not needed. The GitHub mirror commit [1] corresponds to the SQLite Fossil check-in shown in [2]. [1] https://github.com/sqlite/sqlite/commit/e6ff280c839fdfc7418fd5add12e8f32702a17fb [2] https://sqlite.org/src/info/f54730871303e655 Reference: https://nvd.nist.gov/vuln/detail/CVE-2026-119371 Signed-off-by: Arpit Patel Signed-off-by: Yoann Congal --- .../sqlite/sqlite3/CVE-2026-119371.patch | 103 ++++++++++++++++++ meta/recipes-support/sqlite/sqlite3_3.53.4.bb | 1 + 2 files changed, 104 insertions(+) create mode 100644 meta/recipes-support/sqlite/sqlite3/CVE-2026-119371.patch diff --git a/meta/recipes-support/sqlite/sqlite3/CVE-2026-119371.patch b/meta/recipes-support/sqlite/sqlite3/CVE-2026-119371.patch new file mode 100644 index 00000000000..ecd644dd3d5 --- /dev/null +++ b/meta/recipes-support/sqlite/sqlite3/CVE-2026-119371.patch @@ -0,0 +1,103 @@ +From e6ff280c839fdfc7418fd5add12e8f32702a17fb Mon Sep 17 00:00:00 2001 +From: drh <> +Date: Mon, 5 Oct 2026 09:32:24 +0000 +Subject: [PATCH] Limit the depth of recursion for CTEs using + SQLITE_LIMIT_EXPR_DEPTH. [bugs:/info/2026-10-04T04:58:58Z|Bug + 2026-10-04T04:58:58Z]. + +FossilOrigin-Name: f54730871303e655a70f3167ce1a39dcd4e53fcf017d225f429e2bb67ad96604 + +CVE: CVE-2026-119371 +Upstream-Status: Backport [https://github.com/sqlite/sqlite/commit/e6ff280c839fdfc7418fd5add12e8f32702a17fb] + +Backport Changes: +- Ported src/select.c changes into the amalgamated sqlite3.c file. +- Omitted test/with2.test because the extracted source lacks the + upstream Tcl test tree. +- Omitted manifest and manifest.uuid because they are Fossil metadata. + +Signed-off-by: Arpit Patel +--- + sqlite3.c | 36 ++++++++++++++++++++++++------------ + 1 file changed, 24 insertions(+), 12 deletions(-) + +diff --git a/sqlite3.c b/sqlite3.c +index 816b998..3432915 100644 +--- a/sqlite3.c ++++ b/sqlite3.c +@@ -151472,6 +151472,20 @@ SQLITE_PRIVATE void sqlite3SubqueryColumnTypes( + pTab->szTabRow = 1; /* Any non-zero value works */ + } + ++/* ++** Check the current subquery nesting depth. Return true and set an ++** error if it has gone too deep. ++*/ ++static int checkSubqueryNestingDepth(Parse *pParse){ ++#if SQLITE_MAX_EXPR_DEPTH>0 ++ if( pParse->nNestSel >= pParse->db->aLimit[SQLITE_LIMIT_EXPR_DEPTH] ){ ++ sqlite3ErrorMsg(pParse, "VIEWs and/or subqueries nested too deep"); ++ return 1; ++ } ++#endif ++ return 0; ++} ++ + /* + ** Given a SELECT statement, generate a Table structure that describes + ** the result set of that SELECT. +@@ -151482,12 +151496,7 @@ SQLITE_PRIVATE Table *sqlite3ResultSetOfSelect(Parse *pParse, Select *pSelect, c + u64 savedFlags; + + pParse->nNestSel++; +-#if SQLITE_MAX_EXPR_DEPTH>0 +- if( pParse->nNestSel >= db->aLimit[SQLITE_LIMIT_EXPR_DEPTH] ){ +- sqlite3ErrorMsg(pParse, "VIEWs and/or subqueries nested too deep"); +- return 0; +- } +-#endif ++ if( checkSubqueryNestingDepth(pParse) ) return 0; + savedFlags = db->flags; + db->flags &= ~(u64)SQLITE_FullColNames; + db->flags |= SQLITE_ShortColNames; +@@ -154703,14 +154712,13 @@ SQLITE_PRIVATE With *sqlite3WithPush(Parse *pParse, With *pWith, u8 bFree){ + } + + /* +-** This function checks if argument pFrom refers to a CTE declared by ++** This function checks to see if argument pFrom refers to a CTE declared by + ** a WITH clause on the stack currently maintained by the parser (on the +-** pParse->pWith linked list). And if currently processing a CTE +-** CTE expression, through routine checks to see if the reference is +-** a recursive reference to the CTE. ++** pParse->pWith linked list). And if currently processing a CTE expression, ++** it also checks to see if the reference is a recursive reference to the CTE. + ** +-** If pFrom matches a CTE according to either of these two above, pFrom->pSTab +-** and other fields are populated accordingly. ++** If pFrom matches a CTE, pFrom->pSTab and other fields are populated ++** accordingly. + ** + ** Return 0 if no match is found. + ** Return 1 if a match is found. +@@ -154839,6 +154847,8 @@ static int resolveFromTermToCte( + pRecTerm = pRecTerm->pPrior; + } + ++ pParse->nNestSel++; ++ if( checkSubqueryNestingDepth(pParse) ) return 2; + pCte->zCteErr = "circular reference: %s"; + pSavedWith = pParse->pWith; + pParse->pWith = pWith; +@@ -154863,6 +154873,8 @@ static int resolveFromTermToCte( + } + } + pParse->pWith = pWith; ++ pParse->nNestSel--; ++ assert( pParse->nNestSel>=0 ); + + for(pLeft=pSel; pLeft->pPrior; pLeft=pLeft->pPrior); + pEList = pLeft->pEList; +-- +2.35.6 + diff --git a/meta/recipes-support/sqlite/sqlite3_3.53.4.bb b/meta/recipes-support/sqlite/sqlite3_3.53.4.bb index 06cd34818f5..93ee778292b 100644 --- a/meta/recipes-support/sqlite/sqlite3_3.53.4.bb +++ b/meta/recipes-support/sqlite/sqlite3_3.53.4.bb @@ -32,6 +32,7 @@ SRC_URI += "file://0001-Add-option-to-disable-zlib.patch \ file://CVE-2026-119372.patch \ file://CVE-2026-119378.patch \ file://CVE-2026-119376.patch \ + file://CVE-2026-119371.patch \ " SRC_URI[sha256sum] = "0e9483900e92cd5de8fd48d16bf9200145a61f7fd5be542a5ac81d8a9516eb9c" From patchwork Tue Nov 24 22:51:18 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 105466 X-Patchwork-Delegate: yoann.congal@smile.fr Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.30980.1795560747629952243 for ; Tue, 24 Nov 2026 14:52:27 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=QC9Vkb+2; spf=pass (domain: smile.fr, ip: 209.85.221.46, mailfrom: yoann.congal@smile.fr) Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-4a34ffd3e39so2784043f8f.0 for ; Tue, 24 Nov 2026 14:52:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560746; x=1796165546; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=BpKd4eAevFvogK5uk5Hy6Y8yw47AH/B8yBTGjjLhHmc=; b=QC9Vkb+2RiyMDXt8WDc7JLunmxtLmTDusoG60veeCv8xfZekaruab+Pa2wX5jO1C53 f2BQXNxfGtmPnnSs2YlHmRW2yLBK4uGfCOJpmglVr1yBrHG5aHGX1fh91M2cFBCTxDud be4eLY5oFx9H2jGBuPlNRiZynUkD11BrfzD5rVIY6UvviqMWGlWO7HsdszD+poF7ACrt iIvODYZ5E9z2df/FmYo1laFs8+7QwfNE7dW0FDZFnQacmTWJNzU03fpNo9Ie4yoAEIyM hwGOSXvEi3K+s/MGeCyQgtE9YgjxJeRgpWyYQKZwFjKU6hEDfyuISM8tigwVcvY37FYu hyDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560746; x=1796165546; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=BpKd4eAevFvogK5uk5Hy6Y8yw47AH/B8yBTGjjLhHmc=; b=RUMlTQekfPyFkQSj36n/41S/YxC7O+8Ekrtc+amDUv8ZlHikaVXNKKkFFghYsmTZOC xciYCL5EC/Aoe4zJyw93kVb4kHH7GuRk8ZcxMDWDkzb3vp8NV6p8ZmZYKV2O8Kh4KRim o5Q49MyjByYhg2SoomZ6aoTTeFxxer/czstF2ZaxbYv4oCA4c1NUt0HhIhIbFFoauOBp YNOP1bTGflXBcgofbMQw2TMC2ZnBKa/beMx3t22sviFCN1Dm/NWcHPte06ColFSOV1Y7 Is1A83nVawY/fLZh1pmHKxx96Ts3ncFuYOcmsWzlAFwNT4vmgxmFlxxmjub1tZtE0WEX 4ihQ== X-Gm-Message-State: APuU4Z8yHpfpIVauSD5agNNRkS3n9SiLHFkEwhClqjeBgl/ImjIJf6kw 7RqInekOAgILWmmAB711tQZNvAkRSGSDTGnQng6Dca8VsQ0Ws0+0bTftqcq/2vgsLUi3Bi92JpM 6ClQL7sE= X-Gm-Gg: AZFdTZdHCXloC0gZDZfTIIl7mSctmpdtn5rg9UmXe5wHDVa/M+8sI/YFSrwE3roFP1K v0P0dmwAUkYY/aOjER0uPZ4RkUWKVHCHLAFjkAPyKA0G8xeXcS0omShqtbmCiadYcLUiiH0A6fx T3UVsjHvhRl5qJ+E/flb8fAOtQcYFRRczIUuF4DSoiu6Eqz8OI4UfNooPPka/3lyKLXYnkpeMS/ Fnjdkl/fTVJqPOMjQAtyA0ddhvuw726jRchvnLWpexmQPTUQurIAWH4OcYX/j/Aw1bo6KGPAUhJ CNWI+Do3Lzx1s/MwacBUHt6JqZCPjz7xbNkMPLOz5lx1w3CikQlTqNjWsnHfnMuzKoWWQtswB6i 6YO5iFj1aZwE0/Kw3XgaxqyzEvk4NZNwiporzeY1RXapJrJ/Om9dIvHF147OaqR8GkCIapSCbK/ UwvBSYbGKsV4uI1mZpyYXqb+znGHFVyyik+5VKvkAUPZqln0dAJk5Eh4Lc6xswSCB6WfxuaOeHv YkqOPj1hReXwV62MyX/iHoDRlf7Yf50y2YadnkhatYUZC3pLQRLca3jPkhDeayn/LGNgZpCJna8 q4E7SS2Inq65OR9ProXptV4NwM3jK+Id6FAjFD1fEbte/ePD5dgd/gIV5w2r0qFpt3JfzVF6pbU oNYi1GDF/lNnFsBEWV82XdCvn6TTE X-Received: by 2002:a05:6000:248a:b0:487:b50:101c with SMTP id ffacd0b85a97d-4abaa97702bmr29623283f8f.5.1795560745936; Tue, 24 Nov 2026 14:52:25 -0800 (PST) Return-Path: Received: from FRSMI25-LASER.home (2a01cb001331aa00a2e4fb7b0d887544.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:a2e4:fb7b:d88:7544]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6bb989e3sm30462488f8f.52.2026.11.24.14.52.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:25 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][blacksail 11/21] sqlite3: fix CVE-2026-119591 Date: Tue, 24 Nov 2026 23:51:18 +0100 Message-ID: X-Mailer: git-send-email 2.55.0 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 24 Nov 2026 22:52:38 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251091 From: Arpit Patel This patch applies the upstream fix [1] for stack exhaustion in the count-of-view optimization. The GitHub mirror commit [1] corresponds to the SQLite Fossil check-in shown in [2]. [1] https://github.com/sqlite/sqlite/commit/eff50a067c55f972909e7780e506e91382d08de2 [2] https://sqlite.org/src/info/ab621a3e11ee4acc Reference: https://nvd.nist.gov/vuln/detail/CVE-2026-119591 Signed-off-by: Arpit Patel Signed-off-by: Yoann Congal --- .../sqlite/sqlite3/CVE-2026-119591.patch | 40 +++++++++++++++++++ meta/recipes-support/sqlite/sqlite3_3.53.4.bb | 1 + 2 files changed, 41 insertions(+) create mode 100644 meta/recipes-support/sqlite/sqlite3/CVE-2026-119591.patch diff --git a/meta/recipes-support/sqlite/sqlite3/CVE-2026-119591.patch b/meta/recipes-support/sqlite/sqlite3/CVE-2026-119591.patch new file mode 100644 index 00000000000..57ca37d9092 --- /dev/null +++ b/meta/recipes-support/sqlite/sqlite3/CVE-2026-119591.patch @@ -0,0 +1,40 @@ +From 5dbe255431ad2b935db31e8e3c2c66284e2709ef Mon Sep 17 00:00:00 2001 +From: drh <> +Date: Mon, 5 Oct 2026 12:18:23 +0000 +Subject: [PATCH] Prevent the expression generated by the count-of-view + optimization from getting too deep and causing a CPU stack overflow. + [bugs:/info/2026-10-04T05:34:47Z|Bug 2026-10-04T05:34:47Z] + +FossilOrigin-Name: ab621a3e11ee4accce14bf6c90a7cc273d9c25a7c3d9dd2466f2bdc2bbbf8084 + +CVE: CVE-2026-119591 +Upstream-Status: Backport [https://github.com/sqlite/sqlite/commit/eff50a067c55f972909e7780e506e91382d08de2] + +Backport Changes: +- Ported the src/select.c change into the amalgamated sqlite3.c. +- Omitted manifest and manifest.uuid because they are Fossil metadata + and are not needed for this source layout. + +Signed-off-by: Arpit Patel +--- + sqlite3.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/sqlite3.c b/sqlite3.c +index dc245c4..d814a1c 100644 +--- a/sqlite3.c ++++ b/sqlite3.c +@@ -156251,6 +156251,10 @@ static int countOfViewOptimization(Parse *pParse, Select *p){ + }else{ + pExpr = sqlite3PExpr(pParse, TK_PLUS, pTerm, pExpr); + } ++ if( pParse->nErr ){ ++ sqlite3ExprDelete(db, pExpr); ++ pExpr = 0; ++ } + pSub = pPrior; + } + p->pEList->a[0].pExpr = pExpr; +-- +2.35.6 + diff --git a/meta/recipes-support/sqlite/sqlite3_3.53.4.bb b/meta/recipes-support/sqlite/sqlite3_3.53.4.bb index 93ee778292b..f616c70073e 100644 --- a/meta/recipes-support/sqlite/sqlite3_3.53.4.bb +++ b/meta/recipes-support/sqlite/sqlite3_3.53.4.bb @@ -33,6 +33,7 @@ SRC_URI += "file://0001-Add-option-to-disable-zlib.patch \ file://CVE-2026-119378.patch \ file://CVE-2026-119376.patch \ file://CVE-2026-119371.patch \ + file://CVE-2026-119591.patch \ " SRC_URI[sha256sum] = "0e9483900e92cd5de8fd48d16bf9200145a61f7fd5be542a5ac81d8a9516eb9c" From patchwork Tue Nov 24 22:51:19 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 105470 X-Patchwork-Delegate: yoann.congal@smile.fr Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.30981.1795560748472252533 for ; Tue, 24 Nov 2026 14:52:28 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=NQ/gneMs; spf=pass (domain: smile.fr, ip: 209.85.221.48, mailfrom: yoann.congal@smile.fr) Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-4a358881793so2633146f8f.0 for ; Tue, 24 Nov 2026 14:52:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560747; x=1796165547; darn=lists.openembedded.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=dk0uK9q85mABu2Ho2mkRUMGdbW6Tk2Utef8CbeUZNhI=; b=NQ/gneMsJJJLGHgtP1jKhvMl20UPCHV9N9/0MYsi7KGxDR4wurd5SiT/KxgKqORC4w GJhbMvPTKCxSBOllpXAjNYvSH8ZwBJyCXto4F4RYVsz87/NLgfzY+vRAg8zim3pH/SVO tR37Tf0wv8ojgg8DV0I00dpUVg9AEiD1nMtUxHlnNSfAXIHN9z5qNhVL7eDmXTocLn46 yb38n9ovUe2KFzZXJnmBmB9mmfrKCnoO+HxpXTikGSyNCiKNFWfvaglFJ/IApuRFZEMM 4dgZJN7BEOKSF33OCX+2uSrBJLkmv04G3iUlUBj+qJBy41uKi4QyY2lVMWupezTKmOz5 KxfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560747; x=1796165547; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=dk0uK9q85mABu2Ho2mkRUMGdbW6Tk2Utef8CbeUZNhI=; b=eJT3K5kM8QY57PAPxZcfbzXLjlAWW/mNDwyGDnzH+S8J/lotnCOgdz6zQVcoKTtaBC rDJkOyz4/ozpoKqdVm1Z8Duh/HyA2OAZLhZY3MH1/4C+mWtX8T87MzO1dsCGQmLGuiwF zgcD6xZ7/VuYyS13gif69KQz+ojkHxWP3eqWUJcssAxAq4XUcF38pub9p5X8mY338kMx 1F94gCdg3qNdDDWhFjjC23Ghm5bqCMSIdKpTiePhPU8l+kzaPP8l3h3XBFucsWd0iyhu GBxbsb8nUI13Yqe4x5gcdS+jYlYtpL7A9igmopuhJTYz8beHFaqrIAQk4Hk/dGG0k/x+ pwEg== X-Gm-Message-State: APuU4Z+6poZcntpdS/mqMGJRQM1KtaRrKADhNIYfgJgDeR6xmiiYZ+FF ZsDv6cypTtXgSBrfGGtwz+YZXpVcuLP4Wy4UZJObx2s5cwZ2llTUX4jwk8UVBWpjZW13HnPj8HR p+Cqf/8I= X-Gm-Gg: AZFdTZekPW5hoWm6/P4kv8EFgqYAueo/L13Z75EE2P6zt7pbtVJH/7mdPAMEnqiJ8A2 EdOfS3hPQAAhNLTQ4MRZeDszX2lonfcrca86v+JrzXHWTFEyyOcJlqA3XlNXhDioJ0q0xxjSmgm rtbgNRY6Z5BcBeEgdMojuCZLVKbL+SdyxAw6QCtOGUef083XKnxgHSOT+56iELMNZbR8k7uZvpD F/egA6KDbeoBya4YioVQp4GVAl8R7fofgiYBmEPacODZNlTOJhCqH+hRshLkgIbd270i+MwKd0h g3q326Bzgekbvtc+XRtMrCvhuCcCtAiId0sUGJXUt0ELlbEGkdPwfepjJCDW4qHuI+3UjjzhTQG PU1TGjR7U0YCrfTS+iQ6ZxqbKq+3dSoobkqby5OZU9AsljDmKHTxS3uCSuF5THtQMtETU/zpUbn KJb0uFyqje0YP2glM9bZJm6Wu9fM3G9QB1nJYuU31MtCUFh63F0WZ0iFqkToXMgGjgK/l+tvaxs Ut4mH4HUXiwd5qcALSSPwoJfASt7iYHsZ9rPlLZg5sW0jtvDrMdhXAXx0kAGf/zly67KbQC1Xxa o8pmw5uH21uEd3BmVWJE6jtROH2vOjSwfXnwoqMSaZGlaYjX6CvYhQlS5CSqAfCv8i8FIzSJzRU RAgCAMKQxWKSm03dlnrYISZ5rOWrWMQ== X-Received: by 2002:a05:6000:2906:b0:4a3:777a:a964 with SMTP id ffacd0b85a97d-4aba58de987mr30800486f8f.0.1795560746550; Tue, 24 Nov 2026 14:52:26 -0800 (PST) Return-Path: Received: from FRSMI25-LASER.home (2a01cb001331aa00a2e4fb7b0d887544.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:a2e4:fb7b:d88:7544]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6bb989e3sm30462488f8f.52.2026.11.24.14.52.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:26 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][blacksail 12/21] curl: fix CVE-2026-87865 Date: Tue, 24 Nov 2026 23:51:19 +0100 Message-ID: <5dd778d9f5be936ba2c553e496f0fce5d8f379c6.1795560335.git.yoann.congal@smile.fr> X-Mailer: git-send-email 2.55.0 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 24 Nov 2026 22:52:38 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251092 From: João Marcos Costa (Schneider Electric) This vulnerability, marked as High [1], was fixed upstream [2] since v8.23.0. Backport the fix to curl v8.22.0. [1] https://nvd.nist.gov/vuln/detail/cve-2026-87865 [2] https://curl.se/docs/CVE-2026-87865.html Signed-off-by: João Marcos Costa (Schneider Electric) Signed-off-by: Yoann Congal --- .../curl/curl/CVE-2026-87865.patch | 216 ++++++++++++++++++ meta/recipes-support/curl/curl_8.22.0.bb | 1 + 2 files changed, 217 insertions(+) create mode 100644 meta/recipes-support/curl/curl/CVE-2026-87865.patch diff --git a/meta/recipes-support/curl/curl/CVE-2026-87865.patch b/meta/recipes-support/curl/curl/CVE-2026-87865.patch new file mode 100644 index 00000000000..32a7441c95f --- /dev/null +++ b/meta/recipes-support/curl/curl/CVE-2026-87865.patch @@ -0,0 +1,216 @@ +From a7622dc02ccc01f7438227f1920db08268a6ccb0 Mon Sep 17 00:00:00 2001 +From: Bobbeh Rhino +Date: Tue, 8 Sep 2026 06:33:27 -0400 +Subject: [PATCH] libssh2: match hashed known_hosts entries by host +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +libssh2 does not expose the plaintext name for hashed entries. Check +each entry key against the requested hostname before using its key type. +Otherwise an unrelated hashed entry can select the wrong algorithm. + +Add an SFTP regression test 3500 with an unrelated hashed entry before +the requested host. + +Closes #22874 + +CVE: CVE-2026-87865 +Upstream-Status: Backport [https://github.com/curl/curl/commit/323c184b6bdf5b1988a10c0a61560] + +Signed-off-by: João Marcos Costa +--- + lib/vssh/libssh2.c | 16 +++++++-- + tests/data/Makefile.am | 2 ++ + tests/data/test3500 | 47 +++++++++++++++++++++++++ + tests/libtest/Makefile.am | 3 +- + tests/libtest/test3500.pl | 72 +++++++++++++++++++++++++++++++++++++++ + 5 files changed, 136 insertions(+), 4 deletions(-) + create mode 100644 tests/data/test3500 + create mode 100755 tests/libtest/test3500.pl + +diff --git a/lib/vssh/libssh2.c b/lib/vssh/libssh2.c +index 24a651d30e..cd28cde76f 100644 +--- a/lib/vssh/libssh2.c ++++ b/lib/vssh/libssh2.c +@@ -685,9 +685,19 @@ static CURLcode ssh_force_knownhost_key_type(struct Curl_easy *data, + break; + } + } +- else { +- found = TRUE; +- break; ++ else if(store->key) { ++ int keycheck = libssh2_knownhost_checkp( ++ sshc->kh, conn->origin->hostname, ++ (conn->origin->port != PORT_SSH) ? conn->origin->port : -1, ++ store->key, strlen(store->key), ++ LIBSSH2_KNOWNHOST_TYPE_PLAIN | ++ LIBSSH2_KNOWNHOST_KEYENC_BASE64 | ++ (store->typemask & LIBSSH2_KNOWNHOST_KEY_MASK), ++ NULL); ++ if(keycheck == LIBSSH2_KNOWNHOST_CHECK_MATCH) { ++ found = TRUE; ++ break; ++ } + } + } + } +diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am +index 3b32fce7bb..4a27927b1c 100644 +--- a/tests/data/Makefile.am ++++ b/tests/data/Makefile.am +@@ -2090,6 +2090,8 @@ TESTCASES = \ + test3400 \ + test3401 \ + \ ++ test3500 \ ++ \ + test4000 \ + test4001 \ + \ +diff --git a/tests/data/test3500 b/tests/data/test3500 +new file mode 100644 +index 0000000000..1bcf3bc17d +--- /dev/null ++++ b/tests/data/test3500 +@@ -0,0 +1,47 @@ ++ ++ ++ ++ ++SFTP ++known_hosts ++libssh2 ++ ++ ++ ++# Server-side ++ ++ ++Test data ++for hashed known hosts ++ ++ ++ ++# Client-side ++ ++ ++sftp ++ ++ ++sftp ++libssh2 ++!badlibssh ++ ++ ++%PERL %SRCDIR/libtest/test3500.pl %LOGDIR/server/curl_host_key.pub %LOGDIR/known%TESTNUMBER "[%HOSTIP]:%SSHPORT" ++ ++ ++SFTP matches requested hashed known_hosts entry ++ ++ ++--knownhosts %LOGDIR/known%TESTNUMBER --key %LOGDIR/server/curl_client_key --pubkey %LOGDIR/server/curl_client_key.pub -u %USER: sftp://%HOSTIP:%SSHPORT%SFTP_PWD/%LOGDIR/file%TESTNUMBER.txt ++ ++ ++Test data ++for hashed known hosts ++ ++ ++ ++# Verify data after the test has been "shot" ++ ++ ++ +diff --git a/tests/libtest/Makefile.am b/tests/libtest/Makefile.am +index 74eb150742..8fdf484b55 100644 +--- a/tests/libtest/Makefile.am ++++ b/tests/libtest/Makefile.am +@@ -49,7 +49,8 @@ EXTRA_DIST = CMakeLists.txt $(FIRST_C) $(FIRST_H) $(UTILS_C) $(UTILS_H) $(TESTS_ + test1022.pl \ + test307.pl \ + test610.pl \ +- test613.pl ++ test613.pl \ ++ test3500.pl + + CFLAGS += @CURL_CFLAG_EXTRAS@ + +diff --git a/tests/libtest/test3500.pl b/tests/libtest/test3500.pl +new file mode 100755 +index 0000000000..d95f54cecf +--- /dev/null ++++ b/tests/libtest/test3500.pl +@@ -0,0 +1,72 @@ ++#!/usr/bin/env perl ++#*************************************************************************** ++# _ _ ____ _ ++# Project ___| | | | _ \| | ++# / __| | | | |_) | | ++# | (__| |_| | _ <| |___ ++# \___|\___/|_| \_\_____| ++# ++# Copyright (C) Daniel Stenberg, , et al. ++# ++# This software is licensed as described in the file COPYING, which ++# you should have received as part of this distribution. The terms ++# are also available at https://curl.se/docs/copyright.html. ++# ++# You may opt to use, copy, modify, merge, publish, distribute and/or sell ++# copies of the Software, and permit persons to whom the Software is ++# furnished to do so, under the terms of the COPYING file. ++# ++# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY ++# KIND, either express or implied. ++# ++# SPDX-License-Identifier: curl ++# ++########################################################################### ++use strict; ++use warnings; ++ ++use Digest::SHA qw(hmac_sha1); ++use MIME::Base64 qw(encode_base64); ++ ++sub errout { ++ print $_[0] . "\n"; ++ exit 1; ++} ++ ++if(@ARGV != 3) { ++ errout "Usage: $0 host-public-key known-hosts-file target"; ++} ++ ++my ($hostkey_file, $knownhosts_file, $target) = @ARGV; ++open(my $hostkey, "<", $hostkey_file) or errout "$!"; ++my $hostkey_line = <$hostkey>; ++close($hostkey) or errout "$!"; ++ ++my ($hostkey_algo, $hostkey_data) = split(/\s+/, $hostkey_line); ++if(!$hostkey_algo || !$hostkey_data) { ++ errout "Failed parsing SSH host public key"; ++} ++ ++my $rsa_key = ++ "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCgSyqrUP2xhqLqkyopVapoKeucYIp" . ++ "ZXeUqj+Q9WLWyXka5re62Y3R/lxZUXtkJjlpdD2LNMFenNlDQvPaXH5Utllt+c3z" . ++ "wOkOLy7RXX5S37SfQFm/0fPkZqoZfMDB6XDcwA4cakjCRn4oZyKs8dWAxoNaTtYc" . ++ "nKKMJ6rmc8PttykJw9fwiKAjPyYf21/BMvWIzu9req+TrDA/Jcd2UAug94CikJIX" . ++ "uwKmSYleAOo4eJWx8GyujgEgZn05eq+K1LSg9RqRVIxOdqjoE5K3abBfs0rmUuLd" . ++ "MFh7nHseTFXYbKzpz46V7iZMfFuoyURrzVsqGUm+/m7dxBM98In12kOm3"; ++my $ed25519_key = ++ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAqmXRY8k+W9GtpWxYru6ELAXYHdXq" . ++ "jf33ziITGTiJUN"; ++my $other_key = $hostkey_algo eq "ssh-ed25519" ? $rsa_key : $ed25519_key; ++ ++my $salt = "curl-knownhosts-test"; ++my $salt64 = encode_base64($salt, ""); ++my $hash64 = encode_base64(hmac_sha1("unrelated.invalid", $salt), ""); ++my $target_hash64 = encode_base64(hmac_sha1($target, $salt), ""); ++ ++open(my $knownhosts, ">", $knownhosts_file) or errout "$!"; ++print $knownhosts "|1|$salt64|$hash64 $other_key\n"; ++print $knownhosts "|1|$salt64|$target_hash64 $hostkey_algo $hostkey_data\n"; ++close($knownhosts) or errout "$!"; ++ ++exit 0; diff --git a/meta/recipes-support/curl/curl_8.22.0.bb b/meta/recipes-support/curl/curl_8.22.0.bb index 95d5801ad55..979e416249c 100644 --- a/meta/recipes-support/curl/curl_8.22.0.bb +++ b/meta/recipes-support/curl/curl_8.22.0.bb @@ -17,6 +17,7 @@ SRC_URI = " \ file://CVE-2026-92388-1.patch \ file://CVE-2026-92388-2.patch \ file://CVE-2026-92389.patch \ + file://CVE-2026-87865.patch \ " SRC_URI:append:class-nativesdk = " \ From patchwork Tue Nov 24 22:51:20 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 105471 X-Patchwork-Delegate: yoann.congal@smile.fr Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.31021.1795560748791245793 for ; Tue, 24 Nov 2026 14:52:29 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=OcEV9Qqd; spf=pass (domain: smile.fr, ip: 209.85.221.47, mailfrom: yoann.congal@smile.fr) Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-48e47347279so3033626f8f.1 for ; Tue, 24 Nov 2026 14:52:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560747; x=1796165547; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=0M4jH7K/Ci1JBjAAsgFKXoHodUPGwrw5ETQyI/d9f6g=; b=OcEV9Qqd20qTtXvmHpur3cK957bFdVyKIaDVieLMdCTy4yZQ/tH76nY2f2YBM50Ok3 3CVLdEcdZScEWd6AdhqcgRiIWjk2NuNyVJmxAN9YO6vfvIERdcsOVetN9l5zZYWQfBDE PPwFfghRfnqIeCE6T7J+qDyCQkI4VScrVCPQhy8RzprM3WU4dzeJrVX2kFgX4UAIc8ki ji5D1bdBul5nqJ77lZ8ZgGrLvrpqlgQxlJ6pXIMfDG4Wkcl/Z7KaLlpijEVylP+Q+TpG mWTEMIAcHZCAanlD5zYrNsjaHhsd+RgK/mc21wPdg1qPzzN0kSMeayjNDxguTh1PV1Er rtLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560747; x=1796165547; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=0M4jH7K/Ci1JBjAAsgFKXoHodUPGwrw5ETQyI/d9f6g=; b=SSRVs5T6HQ+nbvzURz3RwTDdhRuBtfliygck0yo1nWMx6ogoi4wnLDYcfNFR7PqWez IHX+vkUcRL46Vp2Q+xvzNj45OJOJM6dGmYlw9qixyV5KJWYF9KcH8XS8i5I49Qdz73nQ pYJVKOlVcM2gnkNh7xfS16HL7nT5CTTlgSFb38Fa1aSrtkoBupEVNJjcosEz28KL8A2Y vGyBB0gZJENnfcN6ya/HQYidAkTZ/Cgwk86RzmPDp6P77Nr5vOh1bXa1L3463i2L8UX0 BTmbNrDUKNpUk+aGoQtjAGoKVZLgDg61JKNZhcgkGK/rpLSC0DnPyEJB4sHL3WPrKDAR zp6w== X-Gm-Message-State: APuU4Z/cLWWJbqJc3aUYuXPBQFPiX/k3c4Y3OgGtotfmKoANQD/Pr94o XXRYypjFbH7jvY63I1goKo3s6990ObpSGm1cAWUjW8Qpoyk6HpEZ2L9mNgYEVQ8LGkPWzecJJcY nw0iuMtw= X-Gm-Gg: AZFdTZfDkzVteqEMku4x/74w2KdB501S7INd/0Pgy8dG09Ca0jnNhTLZjz9hdqS6vq0 J2DvOc9GQVb0aBuaFNzh0JzOlIALg0gGD897Og8VM28UZGQVIC0vXwwB6T2O2iw++DGFkyXiIrY oCTz0QA7Z1scPfRdiFpUCrNKDagiwgnu5nacT2V3DjK2dHEV3/AYJxVVtdwgXoyiMIYpK6A1mLk 05ftTLr6E0sPazJQ3KZiXPgkprwGQiWtb0fHXNyhlWXzAmKO7Y/dCPCraMHzZLM9C1fDE7ao/s+ Ke2d9xHkHtALmEE9L6dqDjugD872tkoFxsGbw3Kii1FNlvJQS/ubI1DNyYzErAQtpWbzvT1jZ2L cJQ96Vr4QuFsM7YW3LrzPSaLdXSE82LqcP7AiD8oHQ6/N8jDUsjeOJl4zMbplwJ0WU3FAcyxi/S FbXqe9x6S0b+nKRtQnqbG8qvfy2oHlEAsciH7PoyStgkW8w49kYp+l4e1Nqax4u90ioS9JJWjGD I4iLOyK0Ww/9cvvi3HIa/NfyPmuc8wigGFEnslN1Lgr3kpjStMlChC5vz6U0EtHRBenH2rHKsVX p9/XGpDAGW3klKZ0l1BPWNZB0xVXtPXgSIcyIVgxFGgCdgvz3BO87w709wN5S/B5CmmAvY95KhN QN4hOnqHbLziYWZIbSb1GXfLxVjvi X-Received: by 2002:a05:6000:4312:b0:4a7:2673:ad2e with SMTP id ffacd0b85a97d-4abacfea57emr32501671f8f.1.1795560747058; Tue, 24 Nov 2026 14:52:27 -0800 (PST) Return-Path: Received: from FRSMI25-LASER.home (2a01cb001331aa00a2e4fb7b0d887544.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:a2e4:fb7b:d88:7544]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6bb989e3sm30462488f8f.52.2026.11.24.14.52.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:26 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][blacksail 13/21] popt: correct CVE-2026-18739.patch metadata Date: Tue, 24 Nov 2026 23:51:20 +0100 Message-ID: <0b0a22019344292933083161ca1c32a00c5509d6.1795560335.git.yoann.congal@smile.fr> X-Mailer: git-send-email 2.55.0 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 24 Nov 2026 22:52:38 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251093 From: Peter Marko There was a typo in CVE tag in this patch. Signed-off-by: Peter Marko Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie (cherry picked from commit 15c5b3e7ff3e62b1763dfffa127875145b74730b) Signed-off-by: Yoann Congal --- meta/recipes-support/popt/popt/CVE-2026-18739.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-support/popt/popt/CVE-2026-18739.patch b/meta/recipes-support/popt/popt/CVE-2026-18739.patch index 0a1e8f35907..94366f63437 100644 --- a/meta/recipes-support/popt/popt/CVE-2026-18739.patch +++ b/meta/recipes-support/popt/popt/CVE-2026-18739.patch @@ -14,7 +14,7 @@ Co-authored-by: Panu Matilainen Fixes: CVE-2026-18739 -CVE: CVE-2026-18743 +CVE: CVE-2026-18739 Upstream-Status: Backport [https://github.com/rpm-software-management/popt/commit/14c42b415ba0c11640f7d4ee80920452d0287058] Signed-off-by: Peter Marko --- From patchwork Tue Nov 24 22:51:21 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 105472 X-Patchwork-Delegate: yoann.congal@smile.fr Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.31022.1795560749735966475 for ; Tue, 24 Nov 2026 14:52:30 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=MgPXkz0S; spf=pass (domain: smile.fr, ip: 209.85.221.46, mailfrom: yoann.congal@smile.fr) Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-4a7b8abe209so3907714f8f.0 for ; Tue, 24 Nov 2026 14:52:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560748; x=1796165548; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=Na84idtJWZmvOwmyoWUCDoFB+cKWAxFvBPKFyRogw+k=; b=MgPXkz0SPtTO0O3oB1cl2pqVEOjqpxGyhXoCtUgmff63T17OBprphsFP+RdM/T5psW qF5DDpr1xNBhm822z7Q1ge8RA5E00XytE1As6KMOykadsQTIwXuiYHejyxUWb7cz7DgR tq8FxR6nOo1CygXvRqLuYq8eLEv+RFfFcusWMbS6Bw/P52uNf8hx692b6JW3NO4Mh1sA /tX3t99qaRqYK/SdgmoFAJKiekFU+ok9arq0PzBmuHnAxCX6sN7Wio75PZcmr7IKub5Z C1+H7GR7hrp62zr0AyskvCeLppVA89Ssn2IoO9k2jTLgPTijPqbnDNDCFZyQ4mi0Xf5q /z1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560748; x=1796165548; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=Na84idtJWZmvOwmyoWUCDoFB+cKWAxFvBPKFyRogw+k=; b=f3DparsiJ2Ny8UoEe2NZG7fwPaAfIEc7IVTQQopWs03CL9rsqflXF912RmVODZh0Tu +KOterrD67DhaRm94wjAnOcu+LunAlqZ3J3E9yp8pYh4j0yB/y38w4FSYq2Dd9II3Qkk sF26u/6OEKIgF5aaNzvpo6mxC8Ds7g0CgR3nzyCAyWAvuXrBROJ26WuSx0iP9/5CHpTU uceRprDOYSsg4H8US+Wp7ojAALCQ8KANYS93hU958Z5CPpuIY9fbF4r7dZrYdV0zMBSN yhNzjY4cOq0GigYyyvbhKh3FkkN4BYgSpOav8LDl0tBc5f8AQcc2bPrBcnWiRUElteJE Kh5g== X-Gm-Message-State: APuU4Z8WQfLvt67i/GT5mX8QMaRPiGLIUvXZand+5sYcofj0iVCzujDt dRtPmpNYBCay49mOvo6suf7EmHn22Ne+mTkxlxs151tqC39h037GJErU6iB5xXRETsTmjif9l6V Q+lK6gY0= X-Gm-Gg: AZFdTZfxXBw+jLCJP9RpDaacdacEVdws0f/hbASWx3uaYjGoAsn0Fl4USMOJc0w90RP +uUJeowEHVQhNaXoRKYNiVqpWD/5A/uo2ra6f7pvetydgfOjX5KJ59cChkg+/Cz3lNBvt7Hph2x K9FuiFSCdK+EaCeb+KXVTRh00BtK61uMPZuafO/Bg1KAexFupIbEDnwZ30k+RZoXCtGV9mnDpgZ oYuTf4aSQOMQmbL2lEphBuiFsLUDmm1Do3rNkppv9Ef64P7okagpFb8HkjHvLCwQyIkzPoBsSoX yX6NgbWlJXmg6hTO6fvN0DETrsZFrVaguhKn7St5elRTsYUZzZyoNW5gfJTNncI4LqSZpjr/VpF s+3E7gziWNvhA9B+vaOKsnzPrVpefLbdNWD8AfzKoibCOt+RQ97fanhv0YGNZYYp2/JfzPLrnwM 6NViTVF/DbE/iUfem3JXqIjAs9dJ5LrKxZ79u7bn9ufhT7E1dkbbRHBPO4A0JhPNBSZC2+lLzB3 G9BK7KRVm0wHxJcKpe9MOT8p+N4xu5x4j/ppALj32tCkfrXXX5FN8M8stJrCLKipCOkAYKHIppf iS7Sv50nvTi17p+w3G0vyZgKGiMe+TtjxkHkIuRsPTi1z2KbUaU2uqm0AbdlyYCLA3tJoleKFuv i40rQ0OCU9grATxVVUtfTyQyJtZqtm7lKlARQ6UAk2u3X2MPVJg== X-Received: by 2002:a05:6000:298e:20b0:488:7496:15b5 with SMTP id ffacd0b85a97d-4abb4c7ab74mr22118683f8f.47.1795560747752; Tue, 24 Nov 2026 14:52:27 -0800 (PST) Return-Path: Received: from FRSMI25-LASER.home (2a01cb001331aa00a2e4fb7b0d887544.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:a2e4:fb7b:d88:7544]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6bb989e3sm30462488f8f.52.2026.11.24.14.52.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:27 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][blacksail 14/21] popt: patch CVE-2026-18839 Date: Tue, 24 Nov 2026 23:51:21 +0100 Message-ID: X-Mailer: git-send-email 2.55.0 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 24 Nov 2026 22:52:38 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251094 From: Peter Marko Pick commits from PR [1] referencing this CVE. Modify the patch by converting cmake change to autotools. [1] https://github.com/rpm-software-management/popt/pull/142 Signed-off-by: Peter Marko Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie (cherry picked from commit a522f7f1d73e21745699243f6ca4fc89351fb91a) Signed-off-by: Yoann Congal --- .../popt/popt/CVE-2026-18839-01.patch | 89 ++++ .../popt/popt/CVE-2026-18839-02.patch | 419 ++++++++++++++++++ meta/recipes-support/popt/popt_1.19.bb | 4 +- 3 files changed, 511 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-support/popt/popt/CVE-2026-18839-01.patch create mode 100644 meta/recipes-support/popt/popt/CVE-2026-18839-02.patch diff --git a/meta/recipes-support/popt/popt/CVE-2026-18839-01.patch b/meta/recipes-support/popt/popt/CVE-2026-18839-01.patch new file mode 100644 index 00000000000..c3cb7e319c8 --- /dev/null +++ b/meta/recipes-support/popt/popt/CVE-2026-18839-01.patch @@ -0,0 +1,89 @@ +From 4f5a070cd98aade2767677de22661f4854d4a195 Mon Sep 17 00:00:00 2001 +From: Panu Matilainen +Date: Thu, 20 Aug 2026 13:46:32 +0300 +Subject: [PATCH] Bring in our own allocating printf() variants + +These are brought mostly as-is from rpm under a new POPT_ name, just +with a slight change return an error on memory alloc failure whereas +rpm exits on error. +As the author of rvasprintf() and rasprintf() there, I'm at liberty to +(re)license them under MIT as well. + +No functional changes here, just needed for sanity going forward. + +CVE: CVE-2026-18839 +Upstream-Status: Backport [https://github.com/rpm-software-management/popt/commit/4f5a070cd98aade2767677de22661f4854d4a195] +Signed-off-by: Peter Marko +--- + src/poptint.c | 38 ++++++++++++++++++++++++++++++++++++++ + src/poptint.h | 4 ++++ + 2 files changed, 42 insertions(+) + +diff --git a/src/poptint.c b/src/poptint.c +index b8dc90f..6b61ae3 100644 +--- a/src/poptint.c ++++ b/src/poptint.c +@@ -192,3 +192,41 @@ POPT_fprintf (FILE * stream, const char * format, ...) + } + + #endif /* !defined(POPT_fprintf) */ ++ ++int POPT_vasprintf(char **strp, const char *fmt, va_list ap) ++{ ++ char * p = NULL; ++ va_list aq; ++ ++ if (strp == NULL) ++ return -1; ++ ++ va_copy(aq, ap); ++ int n = vsnprintf(NULL, 0, fmt, aq); ++ va_end(aq); ++ ++ if (n >= 0) { ++ size_t nb = (size_t)n + 1; ++ if ((p = malloc(nb))) { ++ va_copy(aq, ap); ++ n = vsnprintf(p, nb, fmt, aq); ++ va_end(aq); ++ } else { ++ n = -1; ++ } ++ } ++ *strp = p; ++ ++ return n; ++} ++ ++int POPT_asprintf(char **strp, const char *fmt, ...) ++{ ++ va_list ap; ++ ++ va_start(ap, fmt); ++ int n = POPT_vasprintf(strp, fmt, ap); ++ va_end(ap); ++ ++ return n; ++} +diff --git a/src/poptint.h b/src/poptint.h +index 910d6f5..d4127b3 100644 +--- a/src/poptint.h ++++ b/src/poptint.h +@@ -10,6 +10,7 @@ + #define H_POPTINT + + #include ++#include + + /** + * Wrapper to free(3), hides const compilation noise, permit NULL, return NULL. +@@ -136,6 +137,9 @@ const char *POPT_next_char (const char *str); + + #endif + ++int POPT_vasprintf(char **strp, const char *fmt, va_list ap); ++int POPT_asprintf(char **strp, const char *fmt, ...); ++ + #if defined(ENABLE_NLS) && defined(HAVE_LIBINTL_H) + #include + #endif diff --git a/meta/recipes-support/popt/popt/CVE-2026-18839-02.patch b/meta/recipes-support/popt/popt/CVE-2026-18839-02.patch new file mode 100644 index 00000000000..702403c2b3a --- /dev/null +++ b/meta/recipes-support/popt/popt/CVE-2026-18839-02.patch @@ -0,0 +1,419 @@ +From af6f19e5968d48608a062d6d92d28b7fd248f8ea Mon Sep 17 00:00:00 2001 +From: Panu Matilainen +Date: Thu, 20 Aug 2026 14:28:11 +0300 +Subject: [PATCH] Fix a bucketful of buffer overflows in popt --help printing + +singleOptionDefaultValue() based the default value string output buffer +size on the available line length, without any sort of bounds checking +for most data. This was trivial to overflow with longer option names. + +There was also this baffling ellipsizing of long string arguments, done +done based on the rather arbitrary buffer size instead of screen limits. +Ellipsizing of long values might be totally reasonable but that belongs +to the display code that does all manner of formatting too. + +Just use our newly introduced allocating sprintf() to get it right for +good. Drop the line length argument entirely, it was only used for +a bad estimation of the needed buffer size. + +At the other end, make sure the indent length stays below available +columns to avoid the underflow from help printing. + +Annoyingly we need multiple different test programs for this because +the various crashes are quite sensitive to the max length of a single +option in the table. There are more broken cases than these, but we +can't test everything and these cover the CVE-2026-18839 case. +Update the ellipsis test a bit because it no longer makes sense. + +Note: this depends on the previous commit. + +Fixes: CVE-2026-18839 + +CVE: CVE-2026-18839 +Upstream-Status: Backport [https://github.com/rpm-software-management/popt/commit/af6f19e5968d48608a062d6d92d28b7fd248f8ea] +Convert cmake change to autotools. +Signed-off-by: Peter Marko +--- + src/popthelp.c | 55 ++++++++++++++++------------------------------- + tests/Makefile.am | 10 ++++++++- + tests/test1.c | 2 +- + tests/test4-1.c | 33 ++++++++++++++++++++++++++++ + tests/test4-2.c | 33 ++++++++++++++++++++++++++++ + tests/test4-3.c | 33 ++++++++++++++++++++++++++++ + tests/test4-4.c | 33 ++++++++++++++++++++++++++++ + tests/testit.sh | 36 +++++++++++++++++++++++++++++-- + 8 files changed, 195 insertions(+), 40 deletions(-) + create mode 100644 tests/test4-1.c + create mode 100644 tests/test4-2.c + create mode 100644 tests/test4-3.c + create mode 100644 tests/test4-4.c + +diff --git a/src/popthelp.c b/src/popthelp.c +index fa31901..3950975 100644 +--- a/src/popthelp.c ++++ b/src/popthelp.c +@@ -197,79 +197,60 @@ getArgDescrip(const struct poptOption * opt, + + /** + * Display default value for an option. +- * @param lineLength display positions remaining + * @param opt option(s) + * @param translation_domain translation domain + * @return + */ + static char * +-singleOptionDefaultValue(size_t lineLength, ++singleOptionDefaultValue( + const struct poptOption * opt, + /* FIX: i18n macros disabled with lclint */ + const char * translation_domain) + { + const char * defstr = D_(translation_domain, "default"); +- char * le = malloc(4*lineLength + 1); +- char * l = le; ++ char * l = NULL; + +- if (le == NULL) return NULL; /* XXX can't happen */ +- *le = '\0'; +- *le++ = '('; +- le = stpcpy(le, defstr); +- *le++ = ':'; +- *le++ = ' '; + if (opt->arg) { /* XXX programmer error */ + poptArg arg = { .ptr = opt->arg }; + switch (poptArgType(opt)) { + case POPT_ARG_VAL: + case POPT_ARG_INT: +- le += sprintf(le, "%d", arg.intp[0]); ++ POPT_asprintf(&l, "(%s: %d)", defstr, arg.intp[0]); + break; + case POPT_ARG_SHORT: +- le += sprintf(le, "%hd", arg.shortp[0]); ++ POPT_asprintf(&l, "(%s: %hd)", defstr, arg.shortp[0]); + break; + case POPT_ARG_LONG: +- le += sprintf(le, "%ld", arg.longp[0]); ++ POPT_asprintf(&l, "(%s: %ld)", defstr, arg.longp[0]); + break; + case POPT_ARG_LONGLONG: +- le += sprintf(le, "%lld", arg.longlongp[0]); ++ POPT_asprintf(&l, "(%s: %lld)", defstr, arg.longlongp[0]); + break; + case POPT_ARG_FLOAT: + { double aDouble = (double) arg.floatp[0]; +- le += sprintf(le, "%g", aDouble); ++ POPT_asprintf(&l, "(%s: %g)", defstr, aDouble); + } break; + case POPT_ARG_DOUBLE: +- le += sprintf(le, "%g", arg.doublep[0]); ++ POPT_asprintf(&l, "(%s: %g)", defstr, arg.doublep[0]); + break; + case POPT_ARG_MAINCALL: +- le += sprintf(le, "%p", opt->arg); ++ POPT_asprintf(&l, "(%s: %p)", defstr, opt->arg); + break; + case POPT_ARG_ARGV: +- le += sprintf(le, "%p", opt->arg); ++ POPT_asprintf(&l, "(%s: %p)", defstr, opt->arg); + break; + case POPT_ARG_STRING: +- { const char * s = arg.argv[0]; +- if (s == NULL) +- le = stpcpy(le, "null"); +- else { +- size_t limit = 4*lineLength - (le - l) - sizeof("\"\")"); +- size_t slen; +- *le++ = '"'; +- strncpy(le, s, limit); le[limit] = '\0'; le += (slen = strlen(le)); +- if (slen == limit && s[limit]) +- le[-1] = le[-2] = le[-3] = '.'; +- *le++ = '"'; +- } +- } break; ++ if (arg.argv[0]) ++ POPT_asprintf(&l, "(%s: \"%s\")", defstr, arg.argv[0]); ++ else ++ POPT_asprintf(&l, "(%s: %s)", defstr, "null"); ++ break; + case POPT_ARG_NONE: + default: +- l = _free(l); + return NULL; + break; + } + } +- *le++ = ')'; +- *le = '\0'; + + return l; + } +@@ -286,7 +267,9 @@ static void singleOptionHelp(FILE * fp, columns_t columns, + const char * translation_domain) + { + size_t maxLeftCol = columns->cur; +- size_t indentLength = maxLeftCol + 5; ++ size_t indentLength = maxLeftCol + 5 < columns->max ? ++ maxLeftCol + 5 : ++ columns->max - (maxLeftCol % columns->max) - 1; + size_t lineLength = columns->max - indentLength; + const char * help = D_(translation_domain, opt->descrip); + const char * argDescrip = getArgDescrip(opt, translation_domain); +@@ -347,7 +330,7 @@ static void singleOptionHelp(FILE * fp, columns_t columns, + + /* Choose type of output */ + if (F_ISSET(opt, SHOW_DEFAULT)) { +- defs = singleOptionDefaultValue(lineLength, opt, translation_domain); ++ defs = singleOptionDefaultValue(opt, translation_domain); + if (defs) { + char * t = malloc((help ? strlen(help) : 0) + + strlen(defs) + sizeof(" ")); +diff --git a/tests/Makefile.am b/tests/Makefile.am +index 99fbf64..dfc60e7 100644 +--- a/tests/Makefile.am ++++ b/tests/Makefile.am +@@ -11,7 +11,7 @@ EXTRA_DIST = testit.sh \ + + AM_CPPFLAGS = -I. -I$(top_srcdir)/src + +-noinst_PROGRAMS = test1 test2 tdict test3 tstuff ++noinst_PROGRAMS = test1 test2 tdict test3 tstuff test4-1 test4-2 test4-3 test4-4 + tstuff_SOURCES = tstuff.c + tstuff_LDFLAGS = + tstuff_LDADD = $(top_builddir)/src/libpopt.la +@@ -24,6 +24,14 @@ test2_LDADD = $(top_builddir)/src/libpopt.la + test3_SOURCES = test3.c + test3_LDFLAGS = + test3_LDADD = $(top_builddir)/src/libpopt.la ++test4_1_SOURCES = test4-1.c ++test4_1_LDADD = $(top_builddir)/src/libpopt.la ++test4_2_SOURCES = test4-2.c ++test4_2_LDADD = $(top_builddir)/src/libpopt.la ++test4_3_SOURCES = test4-3.c ++test4_3_LDADD = $(top_builddir)/src/libpopt.la ++test4_4_SOURCES = test4-4.c ++test4_4_LDADD = $(top_builddir)/src/libpopt.la + tdict_SOURCES = tdict.c + tdict_LDFLAGS = + tdict_LDADD = $(top_builddir)/src/libpopt.la +diff --git a/tests/test1.c b/tests/test1.c +index 7a3e663..3007f27 100644 +--- a/tests/test1.c ++++ b/tests/test1.c +@@ -49,7 +49,7 @@ static char * oStr = (char *) -1; + static int singleDash = 0; + + static const char * lStr = +-"This tests default strings and exceeds the ... limit. " ++"This tests default strings and exceeds the former ... limit. " + "123456789+123456789+123456789+123456789+123456789+ " + "123456789+123456789+123456789+123456789+123456789+ " + "123456789+123456789+123456789+123456789+123456789+ " +diff --git a/tests/test4-1.c b/tests/test4-1.c +new file mode 100644 +index 0000000..2a0f094 +--- /dev/null ++++ b/tests/test4-1.c +@@ -0,0 +1,33 @@ ++#include ++#include ++ ++static char *arg2 = "meh"; ++ ++static struct poptOption options[] = { ++ { "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaargh", ++ '\0', POPT_ARG_STRING | POPT_ARGFLAG_SHOW_DEFAULT, ++ &arg2, 0, "Second", NULL }, ++ ++ POPT_AUTOALIAS ++ POPT_AUTOHELP ++ POPT_TABLEEND ++}; ++ ++int main(int argc, const char *argv[]) ++{ ++ poptContext optCon = poptGetContext("test4", argc, argv, options, 0); ++ ++ poptReadDefaultConfig(optCon, 0); ++ ++ int rc = poptGetNextOpt(optCon); ++ ++ if (rc < -1) { ++ fprintf(stderr, "%s: bad argument %s: %s\n", ++ argv[0], poptBadOption(optCon, POPT_BADOPTION_NOALIAS), ++ poptStrerror(rc)); ++ goto exit; ++ } ++ ++exit: ++ poptFreeContext(optCon); ++} +diff --git a/tests/test4-2.c b/tests/test4-2.c +new file mode 100644 +index 0000000..f9cd13d +--- /dev/null ++++ b/tests/test4-2.c +@@ -0,0 +1,33 @@ ++#include ++#include ++ ++static char *arg3 = NULL; ++ ++static struct poptOption options[] = { ++ { "brrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrgh", ++ '\0', POPT_ARG_STRING | POPT_ARGFLAG_SHOW_DEFAULT, ++ &arg3, 0, "Third", NULL }, ++ ++ POPT_AUTOALIAS ++ POPT_AUTOHELP ++ POPT_TABLEEND ++}; ++ ++int main(int argc, const char *argv[]) ++{ ++ poptContext optCon = poptGetContext("test4", argc, argv, options, 0); ++ ++ poptReadDefaultConfig(optCon, 0); ++ ++ int rc = poptGetNextOpt(optCon); ++ ++ if (rc < -1) { ++ fprintf(stderr, "%s: bad argument %s: %s\n", ++ argv[0], poptBadOption(optCon, POPT_BADOPTION_NOALIAS), ++ poptStrerror(rc)); ++ goto exit; ++ } ++ ++exit: ++ poptFreeContext(optCon); ++} +diff --git a/tests/test4-3.c b/tests/test4-3.c +new file mode 100644 +index 0000000..a29f359 +--- /dev/null ++++ b/tests/test4-3.c +@@ -0,0 +1,33 @@ ++#include ++#include ++ ++static char *arg2 = NULL; ++ ++static struct poptOption options[] = { ++ { "aarrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrggggggh", ++ '\0', POPT_ARG_STRING, ++ &arg2, 0, "xxxxx", NULL }, ++ ++ POPT_AUTOALIAS ++ POPT_AUTOHELP ++ POPT_TABLEEND ++}; ++ ++int main(int argc, const char *argv[]) ++{ ++ poptContext optCon = poptGetContext("test4", argc, argv, options, 0); ++ ++ poptReadDefaultConfig(optCon, 0); ++ ++ int rc = poptGetNextOpt(optCon); ++ ++ if (rc < -1) { ++ fprintf(stderr, "%s: bad argument %s: %s\n", ++ argv[0], poptBadOption(optCon, POPT_BADOPTION_NOALIAS), ++ poptStrerror(rc)); ++ goto exit; ++ } ++ ++exit: ++ poptFreeContext(optCon); ++} +diff --git a/tests/test4-4.c b/tests/test4-4.c +new file mode 100644 +index 0000000..b1b1322 +--- /dev/null ++++ b/tests/test4-4.c +@@ -0,0 +1,33 @@ ++#include ++#include ++ ++static char *arg2 = NULL; ++ ++static struct poptOption options[] = { ++ { "aarrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrgggggghyyyyy", ++ '\0', POPT_ARG_STRING, ++ &arg2, 0, "xxxxx", NULL }, ++ ++ POPT_AUTOALIAS ++ POPT_AUTOHELP ++ POPT_TABLEEND ++}; ++ ++int main(int argc, const char *argv[]) ++{ ++ poptContext optCon = poptGetContext("test4", argc, argv, options, 0); ++ ++ poptReadDefaultConfig(optCon, 0); ++ ++ int rc = poptGetNextOpt(optCon); ++ ++ if (rc < -1) { ++ fprintf(stderr, "%s: bad argument %s: %s\n", ++ argv[0], poptBadOption(optCon, POPT_BADOPTION_NOALIAS), ++ poptStrerror(rc)); ++ goto exit; ++ } ++ ++exit: ++ poptFreeContext(optCon); ++} +diff --git a/tests/testit.sh b/tests/testit.sh +index d26be3a..b8357c8 100755 +--- a/tests/testit.sh ++++ b/tests/testit.sh +@@ -149,8 +149,8 @@ Usage: test1 [OPTION...] + --nstr=STRING POPT_ARG_STRING: (null) (default: null) + --lstr=STRING POPT_ARG_STRING: \"123456789...\" (default: + \"This tests default strings and exceeds the +- ... limit. +- 123456789+123456789+123456789+123456789+123456789+ 123456789+123456789+123456789+123456789+123456789+ 1234567...\") ++ former ... limit. ++ 123456789+123456789+123456789+123456789+123456789+ 123456789+123456789+123456789+123456789+123456789+ 123456789+123456789+123456789+123456789+123456789+ 123456789+123456789+123456789+123456789+123456789+ \") + + arg for cb2 + -c, --cb2=STRING Test argument callbacks +@@ -183,5 +183,37 @@ run_diff test3 "test3 - 2" test3-data/02.input test3-data/02.answer + run_diff test3 "test3 - 3" test3-data/03.input test3-data/03.answer + run_diff test3 "test3 - 5" test3-data/05.input test3-data/05.answer + ++run test4-1 "test 4-1 - 63" "\ ++Usage: test4-1 [OPTION...] ++ --aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaargh=STRING Second (default: \"meh\") ++ ++Help options: ++ -?, --help Show this help message ++ --usage Display brief usage message" --help ++ ++run test4-2 "test 4-2 - 64" "\ ++Usage: test4-2 [OPTION...] ++ --brrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrgh=STRING Third (default: null) ++ ++Help options: ++ -?, --help Show this help message ++ --usage Display brief usage message" --help ++ ++run test4-3 "test 4-3 - 65" "\ ++Usage: test4-3 [OPTION...] ++ --aarrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrggggggh=STRING xxxxx ++ ++Help options: ++ -?, --help Show this help message ++ --usage Display brief usage message" --help ++ ++run test4-4 "test 4-4 - 66" "\ ++Usage: test4-4 [OPTION...] ++ --aarrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrgggggghyyyyy=STRING xxxxx ++ ++Help options: ++ -?, --help Show this help message ++ --usage Display brief usage message" --help ++ + echo "" + echo "Passed." diff --git a/meta/recipes-support/popt/popt_1.19.bb b/meta/recipes-support/popt/popt_1.19.bb index 10c4b4b0af7..cd35ddcdc63 100644 --- a/meta/recipes-support/popt/popt_1.19.bb +++ b/meta/recipes-support/popt/popt_1.19.bb @@ -12,6 +12,8 @@ SRC_URI = "http://ftp.rpm.org/popt/releases/popt-1.x/${BP}.tar.gz \ file://run-ptest \ file://CVE-2026-18743.patch \ file://CVE-2026-18739.patch \ + file://CVE-2026-18839-01.patch \ + file://CVE-2026-18839-02.patch \ " SRC_URI[sha256sum] = "c25a4838fc8e4c1c8aacb8bd620edb3084a3d63bf8987fdad3ca2758c63240f9" @@ -24,7 +26,7 @@ do_compile_ptest() { } do_install_ptest() { - for f in test1 test2 tdict test3 tstuff testit.sh test-poptrc; do + for f in test1 test2 tdict test3 test4-1 test4-2 test4-3 test4-4 tstuff testit.sh test-poptrc; do ${B}/libtool --mode=install install ${B}/tests/$f ${D}/${PTEST_PATH} done } From patchwork Tue Nov 24 22:51:22 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 105473 X-Patchwork-Delegate: yoann.congal@smile.fr Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.30984.1795560749992653675 for ; Tue, 24 Nov 2026 14:52:30 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=Rwoay6Pc; spf=pass (domain: smile.fr, ip: 209.85.221.43, mailfrom: yoann.congal@smile.fr) Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-4a68190a2a7so4170078f8f.1 for ; Tue, 24 Nov 2026 14:52:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560748; x=1796165548; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=qgg7z0I1YVkn4AJEy6mb8UAW3EDGLirtKmAb2wIozUQ=; b=Rwoay6PcUpDhcv/Vb1HjmeOqb3T45KsaEsOlPMQYy7mdzXdUPG4JXyz1LQr0MBgThc FzlrEpedGnhblUkxaSaFaW72Jc9TVBe6SpF5TV5jkvGtz9nWwJ6RSmrqQNg4Vix9HRY0 /c6pcfU8Ok1P6Li7OUctqNANzA3w1M6E/KLMS9av++mxnfu0p9pt58ZVPeD4UjYiltpf sgcGwPwf8cByeeLn40/se4+F1KlMTqHQ2/+FiXiOFFyqOuMRf/YY1Ww6FTostGKh+22B RImZLcsKu694NwUaVg48Yagq+maGHE2ZNzE/JPeg92IYM8WuGTS0vdJY3FvSKGw/AD6h lWYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560748; x=1796165548; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=qgg7z0I1YVkn4AJEy6mb8UAW3EDGLirtKmAb2wIozUQ=; b=E1RbY/gHtRuPDiUIyvZQnNpG5/c+7KVjyfdST3iJ1WzcmPck+LpZmo+YqLpmEnLEzo ck9PoVZkidu2bOecdAbSqxGx+/Jqb5vAAQMIHNBVWl5BPOIxV5QxNlUmskH73agxmqh7 5QDHJSPnovS3GT09wt6KPGxqahBRxffWoa3N1CSyKLyuXSryMQyLqQrkwciLGqXWBKx6 jl7COCPXniPjYpTfAHsYQug43vaABUlPol2zm63Ysxlnysltrma7ohevdg6PTSJjSOCh xC7g5Q55WwHBNbpxBDOrbxv4uBCLtUtdL4oMby/EA7pA4pZ7D2n9dppxwPsC7aX7N6XT JNBw== X-Gm-Message-State: APuU4Z+yUDCAF5gXy9ZCuboM1DgTSAKdbj9vaFzeb9TL2AIUuPstAwgC Hpk+csJfkaTwVvMIunQ7f+Qjuh6S8YHarlx/64KNJN9zLiQdkUHK/QVtX37MnQxj1WcwXk8TQ3t Q4Rxq9S8= X-Gm-Gg: AZFdTZdPvl6XH8DV5mB3VqNxkX6ITjp4l10tvo7fYYJc6yMkqsimKuO5cqWvXOOJGUv QplxTjhuOQjjOp+NZks2Azx/PZpgS417q0LA02xDd3bMJgK+JRzjcvtt4rUAFrJzARWzbKvmud4 Y/Is7CqHHpbLRD5XPUOZkDMw7cCuRNyWDxBPIib9d5B4S0jxEsmmaU+tEwjfBj7VDmYmttOKYu2 NeGZeBs+dtB/UA/O2glNu1TLBdoO/qrPS4Mewc3z9GgLFZrCBdpPGWB14AkAFIY6rgZqPQs+mkI 5IM5H6bCxLCQibcqLI7cT7yXOIOrWXNhm4f0xXgyX0TVSN//pS5/laZ3Ru1cb1hrwL6VZZfgF11 YBx+p9gpotDh8vYf+XnqYF5WRJvOyERu+4d8IuS/5390y1B7IV3+O8LfIFWcAFr+uLEi9HMx11y SmNYja5s3cDBddjx6m9xfUn8X9L980w6zyP1wQU3TxQG42ELXzlB2A53JgG/LL4MTJSjGiYOuaz yV/41qaR+gd0f+KsynO3EqzwyzkjqsX7tOrC7fVV776pICKFoZuoPr4DD29cGC9HlQ9MkQ7jR4G E4Q3lcivUs/ZKCAL8WD1MDdX+U8yBNYPG4XwfvOqGHL2oZAOq0GpNGZYcOi/ixImaP9Vezo9ytZ cVCEbHCpmXft7RCnTXJnc5UyZkevh X-Received: by 2002:a05:6000:2903:b0:49d:7e8c:e8a2 with SMTP id ffacd0b85a97d-4abb244870cmr35507771f8f.33.1795560748204; Tue, 24 Nov 2026 14:52:28 -0800 (PST) Return-Path: Received: from FRSMI25-LASER.home (2a01cb001331aa00a2e4fb7b0d887544.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:a2e4:fb7b:d88:7544]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6bb989e3sm30462488f8f.52.2026.11.24.14.52.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:27 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][blacksail 15/21] aspell: upgrade 0.60.8.2 -> 0.60.8.3 Date: Tue, 24 Nov 2026 23:51:22 +0100 Message-ID: X-Mailer: git-send-email 2.55.0 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 24 Nov 2026 22:52:39 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251095 From: Ankur Tyagi - Fix CVE-2026-75818, CVE-2026-75819, CVE-2026-75820 and CVE-2026-103658. - Fix various other memory problems. - Fix various typos in documentation. - Remove unused MySpell example code. Signed-off-by: Ankur Tyagi Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie (From OE-Core rev: 05baab915b146a19776cd292962e2cf4edfc6f20) Signed-off-by: Peter Marko Signed-off-by: Yoann Congal --- .../aspell/{aspell_0.60.8.2.bb => aspell_0.60.8.3.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta/recipes-support/aspell/{aspell_0.60.8.2.bb => aspell_0.60.8.3.bb} (93%) diff --git a/meta/recipes-support/aspell/aspell_0.60.8.2.bb b/meta/recipes-support/aspell/aspell_0.60.8.3.bb similarity index 93% rename from meta/recipes-support/aspell/aspell_0.60.8.2.bb rename to meta/recipes-support/aspell/aspell_0.60.8.3.bb index 60d33766782..d97958d83b8 100644 --- a/meta/recipes-support/aspell/aspell_0.60.8.2.bb +++ b/meta/recipes-support/aspell/aspell_0.60.8.3.bb @@ -14,7 +14,7 @@ LICENSE = "LGPL-2.0-only OR LGPL-2.1-only" LIC_FILES_CHKSUM = "file://COPYING;md5=7fbc338309ac38fefcd64b04bb903e34" SRC_URI = "${GNU_MIRROR}/aspell/aspell-${PV}.tar.gz" -SRC_URI[sha256sum] = "57fe4863eae6048f72245a8575b44b718fb85ca14b9f8c0afc41b254dfd76919" +SRC_URI[sha256sum] = "0534eae11132405120d11e46bf595bd5dd189bc124ba77a5dd6aae861b48a162" PACKAGECONFIG ??= "" PACKAGECONFIG[curses] = "--enable-curses,--disable-curses,ncurses" From patchwork Tue Nov 24 22:51:23 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 105474 X-Patchwork-Delegate: yoann.congal@smile.fr Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.31023.1795560750720978611 for ; Tue, 24 Nov 2026 14:52:31 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=hhKFxVjw; spf=pass (domain: smile.fr, ip: 209.85.221.50, mailfrom: yoann.congal@smile.fr) Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-490c3ae81d3so3187393f8f.2 for ; Tue, 24 Nov 2026 14:52:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560749; x=1796165549; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=aYmOIRgzRedqmA0MroPKPDtqltb1pnM6zMyuwN348X4=; b=hhKFxVjwxHwVxVsF9GNatXWX4oSR7XnRm9YyYTpJwW4ontcCKd6dUWZm0iZ68le/hD WVhDc7BSSQ+X6A1bQATqBijwr0DViI5HQ6+fLJgIdMCQ+ho4Iw/dtNaQPvGGMj4n9jaZ FmNRkNZBBdQCHbV3SLYGyXz8utf5CIvCTvnFYlVpjXu06u6tdKXO78t+DAwSpfk8wxCW 8U6vL0DQOW81GyQDOsFgsblN06sgkXg7CLngNgvj3IAbMpFmxAn0/WuAe4wBqoZJ4ZRs CMX4QTqu+mC8Vdqlq2rwMgI0XOuOCMBZm/5qSl/AJGQpFpWsHTNx1sPz1PeYhh6kb6F/ VpCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560749; x=1796165549; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=aYmOIRgzRedqmA0MroPKPDtqltb1pnM6zMyuwN348X4=; b=0x30hToFbhUGBLBpSg90yY3rtfaIjWfrJbgFpBQnOnvnQtSbLHy5U3ZwUKo6syPmXM ikzncKbnSXXYza9/87Dp1w1o9HIHfNG2NVoC7nuiJgycBtqtsNDk2JlXi8DSAR1iYjFP Oth4hT1IhfH/d+ERt6T9ujHSaGIWQFPCH41OB2U44Rc3/rXddzXgTVBf2H/GfLW+e3rh OUNCOm2VVstcadXT1tbkX0PNnY6++yGwsGg5/Do78Vu5D/RZNIdcwwjIlBjViwLvY+Sl BY1eEDuAQargd4LwYMNVZnuOh913XUiU8K4FMQXLiHUQbgvHwtuZ+FOIlu6p+/xNiB6Z o7wg== X-Gm-Message-State: APuU4Z9Qm4tRPzua6dfrNRC39HhBGxJXWDKme3NW8KrhN4jFyPmfSAGP +gUDqFJsQGtTdbrBp+pHhApBIUNO36vE+zvCSejwLRTMBAH7/hE7WCbC+UlHMcP5KXK1uDR3d3P 14tpJ+sw= X-Gm-Gg: AZFdTZeRPYGXuU/yJ+BqxEnhrLMDQPm5fqKadTuT8RA9Etk7C3r2mPT52wYkvSZkEUb g5hZkHJmBbizAhqLNtu4jfWPja/vuubvQ5GTQLo0ad0oktCLgamJ9UH9q8UzkARqH+s2KyTnBKD rWF65ZbzuIiFlzppr3UDKW9AQptBvufjWVWJyo0GGaku0C02oEvvXlP3RGzNf+SMAnW3GIh8u3l HkWLPumFPYZXrvFXMllADg39RxrFkTOFGJkphNeT8SNPEb6I8fxY9nxth9tpl3maZX2XcOQAajo D/g8MjMIeNbKwC4JUjz8Qb21YFbWI9pjJnvWpSFjQesIyCmrNoVjfY92vqhW1dvS5HsyjDsJFjG O8LxlwV2JaGK7IkdXpfqNsBnEd7VxfXVKJln+2H85/8yRT+LNBGatsbdTqxY7yn3mcAGHiW2nFz uumxbWVS/VKhcBN7xMtiJJf6AziaGnUnb8szAo19MwJufPMiolZE9qflVZkM847fefXNmRBpZa/ MdRrTaVyHhlegchVqOW1uIoxBijlkfqH5PZguB3UQ2SjxGLcYl9OBxGDjjAsvkT5IN8b7JKY6ZI pPmPlAplt5qqgWX3XiYHc4RuQsIR9qVBYRzRyUYlaMadUFjG0K+BI/t+jK94mcW/6gnyMwU0zbg qABlru37M/91Jz09Vws1cJMpNtkRO X-Received: by 2002:a05:6000:481c:b0:4a5:ebcc:2260 with SMTP id ffacd0b85a97d-4abb2dda518mr31180246f8f.29.1795560748705; Tue, 24 Nov 2026 14:52:28 -0800 (PST) Return-Path: Received: from FRSMI25-LASER.home (2a01cb001331aa00a2e4fb7b0d887544.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:a2e4:fb7b:d88:7544]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6bb989e3sm30462488f8f.52.2026.11.24.14.52.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:28 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][blacksail 16/21] libsndfile1: patch CVE-2024-50613 Date: Tue, 24 Nov 2026 23:51:23 +0100 Message-ID: <5cb1b702f11432d309e9900306765d04444f5581.1795560335.git.yoann.congal@smile.fr> X-Mailer: git-send-email 2.55.0 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 24 Nov 2026 22:52:39 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251096 From: Peter Marko Pick patch from [1] which linked this CVE. [1] https://github.com/libsndfile/libsndfile/pull/1198 Signed-off-by: Peter Marko Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie (cherry picked from commit e56fdd1720050fbd2107ff48bb8d24e24dff72b9) Signed-off-by: Yoann Congal --- .../libsndfile1/CVE-2024-50613.patch | 348 ++++++++++++++++++ .../libsndfile/libsndfile1_1.2.2.bb | 1 + 2 files changed, 349 insertions(+) create mode 100644 meta/recipes-multimedia/libsndfile/libsndfile1/CVE-2024-50613.patch diff --git a/meta/recipes-multimedia/libsndfile/libsndfile1/CVE-2024-50613.patch b/meta/recipes-multimedia/libsndfile/libsndfile1/CVE-2024-50613.patch new file mode 100644 index 00000000000..9b7302b2316 --- /dev/null +++ b/meta/recipes-multimedia/libsndfile/libsndfile1/CVE-2024-50613.patch @@ -0,0 +1,348 @@ +From ecbccc2f23de6cefd2d97842fc0333bb742a0625 Mon Sep 17 00:00:00 2001 +From: Capsize Security +Date: Mon, 26 Oct 2026 17:28:12 -0600 +Subject: [PATCH] mpeg: sanitize float/double input to LAME ieee entry points + +Crafted files can deliver NaNs, infinities, or huge finite values through sf_writef_float / sf_writef_double into the MP3 encoder. Passing those straight to LAME trips assertions inside LAME (psymodel.c: calc_energy: `el >= 0') and aborts the host application. + +Clamp encoder input to the [-1, 1] range LAME's ieee_float / ieee_double entry points document ("data must be scaled to +/- 1 full scale", lame/lame.h); non-finite samples become silence. All four float/double x mono/stereo paths funnel through the sanitizing normalize_float / normalize_double helpers, including the non-normalized paths via a 1/0x8000 pre-scale (the stereo path already did this). The mono non-normalized path previously used lame_encode_buffer_float; routing it through the scaled ieee_float entry instead changes its gain by ~0.003% (1 part in 32768). + +Note: clamping to +/-1 intentionally changes output for valid slightly-over-full-scale input (e.g. a constant 2.0), which LAME's ieee entries never accepted in-contract; in-range audio passes through unchanged. + +CVE-2024-50613 Issue: https://github.com/libsndfile/libsndfile/issues/1034 + +Signed-off-by: Capsize Security + +CVE: CVE-2024-50613 +Upstream-Status: Backport [https://github.com/libsndfile/libsndfile/commit/ecbccc2f23de6cefd2d97842fc0333bb742a0625] +Signed-off-by: Peter Marko +--- + src/mpeg_l3_encode.c | 91 ++++++++++++++++++------- + tests/mpeg_test.c | 158 +++++++++++++++++++++++++++++++++++++++++++ + 2 files changed, 226 insertions(+), 23 deletions(-) + +diff --git a/src/mpeg_l3_encode.c b/src/mpeg_l3_encode.c +index aba22394..c712e6e7 100644 +--- a/src/mpeg_l3_encode.c ++++ b/src/mpeg_l3_encode.c +@@ -596,22 +596,77 @@ mpeg_l3_encode_write_int_stereo (SF_PRIVATE *psf, const int *ptr, sf_count_t len + } + + ++/* LAME's ieee_float / ieee_double entry points require input samples in the ++** range [-1.0, +1.0] ("data must be scaled to +/- 1 full scale", lame/lame.h). ++** Crafted input files can deliver NaNs, infinities, or huge finite values ++** through the public sf_writef_float / sf_writef_double API ; passing those ++** straight to LAME trips assertions inside LAME (psymodel.c : calc_energy : ++** `el >= 0') and aborts the host application (CVE-2024-50613, ++** https://github.com/libsndfile/libsndfile/issues/1034). Clamp here so the ++** encoder only ever sees in-contract input. Samples already in range pass ++** through unchanged. ++*/ ++ ++static inline float ++sanitize_float_sample (float x) ++{ if (!isfinite (x)) ++ return 0.0f ; ++ if (x > 1.0f) ++ return 1.0f ; ++ if (x < -1.0f) ++ return -1.0f ; ++ return x ; ++} /* sanitize_float_sample */ ++ ++static inline double ++sanitize_double_sample (double x) ++{ if (!isfinite (x)) ++ return 0.0 ; ++ if (x > 1.0) ++ return 1.0 ; ++ if (x < -1.0) ++ return -1.0 ; ++ return x ; ++} /* sanitize_double_sample */ ++ ++static inline void ++normalize_float (float *dest, const float *src, sf_count_t count, float norm_fact) ++{ while (--count >= 0) ++ dest [count] = sanitize_float_sample (src [count] * norm_fact) ; ++} /* normalize_float */ ++ ++static inline void ++normalize_double (double *dest, const double *src, sf_count_t count, double norm_fact) ++{ while (--count >= 0) ++ dest [count] = sanitize_double_sample (src [count] * norm_fact) ; ++} /* normalize_double */ ++ ++ + static sf_count_t + mpeg_l3_encode_write_float_mono (SF_PRIVATE *psf, const float *ptr, sf_count_t len) +-{ MPEG_L3_ENC_PRIVATE *pmpeg = (MPEG_L3_ENC_PRIVATE*) psf->codec_data ; ++{ BUF_UNION ubuf ; ++ MPEG_L3_ENC_PRIVATE *pmpeg = (MPEG_L3_ENC_PRIVATE*) psf->codec_data ; + sf_count_t total = 0 ; + int nbytes, writecount, writen ; + + if ((psf->error = mpeg_l3_encoder_construct (psf))) + return 0 ; + ++ const sf_count_t max_samples = SF_MIN (ARRAY_LEN (ubuf.fbuf), pmpeg->frame_samples) ; + while (len) +- { writecount = SF_MIN (len, (sf_count_t) pmpeg->frame_samples) ; ++ { writecount = SF_MIN (len, max_samples) ; + + if (psf->norm_float) +- nbytes = lame_encode_buffer_ieee_float (pmpeg->lamef, ptr + total, NULL, writecount, pmpeg->block, pmpeg->block_len) ; ++ { normalize_float (ubuf.fbuf, ptr + total, writecount, 1.0f) ; ++ nbytes = lame_encode_buffer_ieee_float (pmpeg->lamef, ubuf.fbuf, NULL, writecount, pmpeg->block, pmpeg->block_len) ; ++ } + else +- nbytes = lame_encode_buffer_float (pmpeg->lamef, ptr + total, NULL, writecount, pmpeg->block, pmpeg->block_len) ; ++ { /* Lame lacks a non-normalized mono float write, so scale to ++ ** ieee full scale here, mirroring the stereo path below. ++ */ ++ normalize_float (ubuf.fbuf, ptr + total, writecount, 1.0 / (float) 0x8000) ; ++ nbytes = lame_encode_buffer_ieee_float (pmpeg->lamef, ubuf.fbuf, NULL, writecount, pmpeg->block, pmpeg->block_len) ; ++ } + if (nbytes < 0) + { psf_log_printf (psf, "lame_encode_buffer returned %d\n", nbytes) ; + break ; +@@ -632,14 +687,6 @@ mpeg_l3_encode_write_float_mono (SF_PRIVATE *psf, const float *ptr, sf_count_t l + } + + +-static inline void +-normalize_float (float *dest, const float *src, sf_count_t count, float norm_fact) +-{ while (--count >= 0) +- { dest [count] = src [count] * norm_fact ; +- } ; +-} +- +- + static sf_count_t + mpeg_l3_encode_write_float_stereo (SF_PRIVATE *psf, const float *ptr, sf_count_t len) + { BUF_UNION ubuf ; +@@ -655,7 +702,9 @@ mpeg_l3_encode_write_float_stereo (SF_PRIVATE *psf, const float *ptr, sf_count_t + { writecount = SF_MIN (len, max_samples) ; + + if (psf->norm_float) +- nbytes = lame_encode_buffer_interleaved_ieee_float (pmpeg->lamef, ptr + total, writecount / 2, pmpeg->block, pmpeg->block_len) ; ++ { normalize_float (ubuf.fbuf, ptr + total, writecount, 1.0f) ; ++ nbytes = lame_encode_buffer_interleaved_ieee_float (pmpeg->lamef, ubuf.fbuf, writecount / 2, pmpeg->block, pmpeg->block_len) ; ++ } + else + { /* Lame lacks a non-normalized interleaved float write. Bummer. */ + normalize_float (ubuf.fbuf, ptr + total, writecount, 1.0 / (float) 0x8000) ; +@@ -682,14 +731,6 @@ mpeg_l3_encode_write_float_stereo (SF_PRIVATE *psf, const float *ptr, sf_count_t + } + + +-static inline void +-normalize_double (double *dest, const double *src, sf_count_t count, double norm_fact) +-{ while (--count >= 0) +- { dest [count] = src [count] * norm_fact ; +- } ; +-} +- +- + static sf_count_t + mpeg_l3_encode_write_double_mono (SF_PRIVATE *psf, const double *ptr, sf_count_t len) + { BUF_UNION ubuf ; +@@ -705,7 +746,9 @@ mpeg_l3_encode_write_double_mono (SF_PRIVATE *psf, const double *ptr, sf_count_t + { writecount = SF_MIN (len, max_samples) ; + + if (psf->norm_double) +- nbytes = lame_encode_buffer_ieee_double (pmpeg->lamef, ptr + total, NULL, writecount, pmpeg->block, pmpeg->block_len) ; ++ { normalize_double (ubuf.dbuf, ptr + total, writecount, 1.0) ; ++ nbytes = lame_encode_buffer_ieee_double (pmpeg->lamef, ubuf.dbuf, NULL, writecount, pmpeg->block, pmpeg->block_len) ; ++ } + else + { /* Lame lacks non-normalized double writing */ + normalize_double (ubuf.dbuf, ptr + total, writecount, 1.0 / (double) 0x8000) ; +@@ -747,7 +790,9 @@ mpeg_l3_encode_write_double_stereo (SF_PRIVATE *psf, const double *ptr, sf_count + { writecount = SF_MIN (len, max_samples) ; + + if (psf->norm_double) +- nbytes = lame_encode_buffer_interleaved_ieee_double (pmpeg->lamef, ptr + total, writecount / 2, pmpeg->block, pmpeg->block_len) ; ++ { normalize_double (ubuf.dbuf, ptr + total, writecount, 1.0) ; ++ nbytes = lame_encode_buffer_interleaved_ieee_double (pmpeg->lamef, ubuf.dbuf, writecount / 2, pmpeg->block, pmpeg->block_len) ; ++ } + else + { /* Lame lacks interleaved non-normalized double writing */ + normalize_double (ubuf.dbuf, ptr + total, writecount, 1.0 / (double) 0x8000) ; +diff --git a/tests/mpeg_test.c b/tests/mpeg_test.c +index fe7f53d1..87adf2ac 100644 +--- a/tests/mpeg_test.c ++++ b/tests/mpeg_test.c +@@ -258,6 +258,162 @@ mpeg_double_test (void) + unlink (filename) ; + } /* mpeg_double_test */ + ++/* Hostile input (CVE-2024-50613) : NaNs, infinities and huge finite values ++** must be sanitized before reaching LAME, not abort it. One helper covers ++** mono and stereo (channels == 2 exercises the interleaved_ieee paths), ++** with float normalization on or off. ++*/ ++static void ++mpeg_hostile_float_case (int channels, int normalize) ++{ char filename [64] ; ++ SNDFILE * file ; ++ SF_INFO sfinfo ; ++ unsigned k ; ++ size_t samples = ARRAY_LEN (data_out.f) ; ++ ++ snprintf (filename, sizeof (filename), "mpeg_hostile_float_%dch_%s.mp3", ++ channels, normalize ? "norm" : "nonorm") ; ++ ++ print_test_name ("mpeg_hostile_float_test", filename) ; ++ ++ if (channels == 1) ++ { gen_windowed_sine_float (data_out.f, samples, normalize ? 0.95 : 1.0 * 0x7F00) ; ++ } ++ else ++ { /* Interleave two mirrored channels. data_in.f is scratch here ; ++ ** it is overwritten by the read-back below. ++ */ ++ gen_windowed_sine_float (data_in.f, samples / 2, normalize ? 0.95 : 1.0 * 0x7F00) ; ++ for (k = 0 ; k < samples / 2 ; k++) ++ { data_out.f [2 * k] = data_in.f [k] ; ++ data_out.f [2 * k + 1] = data_in.f [samples / 2 - k - 1] ; ++ } ; ++ } ; ++ ++ data_out.f [0] = NAN ; ++ data_out.f [1] = INFINITY ; ++ data_out.f [2] = -INFINITY ; ++ data_out.f [3] = 1.0e30f ; ++ data_out.f [4] = -1.0e30f ; ++ ++ memset (&sfinfo, 0, sizeof (sfinfo)) ; ++ ++ /* Set up output file type. */ ++ sfinfo.format = SF_FORMAT_MPEG | SF_FORMAT_MPEG_LAYER_III ; ++ sfinfo.channels = channels ; ++ sfinfo.samplerate = SAMPLE_RATE ; ++ ++ /* Write the output file. */ ++ file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_FALSE, __LINE__) ; ++ if (! normalize) ++ sf_command (file, SFC_SET_NORM_FLOAT, NULL, SF_FALSE) ; ++ test_write_float_or_die (file, 0, data_out.f, samples, __LINE__) ; ++ sf_close (file) ; ++ ++ /* Read the file in again. */ ++ memset (&sfinfo, 0, sizeof (sfinfo)) ; ++ ++ file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_FALSE, __LINE__) ; ++ test_read_float_or_die (file, 0, data_in.f, samples, __LINE__) ; ++ sf_close (file) ; ++ ++ /* The decoded output must be finite and within a sane range. MP3 is ++ ** lossy so decoded peaks may overshoot the encoder's +/-1 clamp ++ ** slightly ; a generous bound catches scale errors without ++ ** false-failing on codec noise. Explicit checks (no assert.h ++ ** dependency) match the surrounding test style. ++ */ ++ for (k = 0 ; k < samples ; k++) ++ if (! isfinite (data_in.f [k]) || fabsf (data_in.f [k]) > 4.0f) ++ { printf ("\n\nLine %d : bad decoded sample at index %u : %f.\n\n", __LINE__, k, data_in.f [k]) ; ++ exit (1) ; ++ } ; ++ ++ puts ("ok") ; ++ ++ unlink (filename) ; ++} /* mpeg_hostile_float_case */ ++ ++static void ++mpeg_hostile_float_test (void) ++{ mpeg_hostile_float_case (1, SF_TRUE) ; ++ mpeg_hostile_float_case (1, SF_FALSE) ; ++ mpeg_hostile_float_case (2, SF_TRUE) ; ++ mpeg_hostile_float_case (2, SF_FALSE) ; ++} /* mpeg_hostile_float_test */ ++ ++/* Double-precision version of the helper above. */ ++static void ++mpeg_hostile_double_case (int channels, int normalize) ++{ char filename [64] ; ++ SNDFILE * file ; ++ SF_INFO sfinfo ; ++ unsigned k ; ++ size_t samples = ARRAY_LEN (data_out.d) ; ++ ++ snprintf (filename, sizeof (filename), "mpeg_hostile_double_%dch_%s.mp3", ++ channels, normalize ? "norm" : "nonorm") ; ++ ++ print_test_name ("mpeg_hostile_double_test", filename) ; ++ ++ if (channels == 1) ++ { gen_windowed_sine_double (data_out.d, samples, normalize ? 0.95 : 1.0 * 0x7F00) ; ++ } ++ else ++ { gen_windowed_sine_double (data_in.d, samples / 2, normalize ? 0.95 : 1.0 * 0x7F00) ; ++ for (k = 0 ; k < samples / 2 ; k++) ++ { data_out.d [2 * k] = data_in.d [k] ; ++ data_out.d [2 * k + 1] = data_in.d [samples / 2 - k - 1] ; ++ } ; ++ } ; ++ ++ data_out.d [0] = NAN ; ++ data_out.d [1] = INFINITY ; ++ data_out.d [2] = -INFINITY ; ++ data_out.d [3] = 1.0e300 ; ++ data_out.d [4] = -1.0e300 ; ++ ++ memset (&sfinfo, 0, sizeof (sfinfo)) ; ++ ++ /* Set up output file type. */ ++ sfinfo.format = SF_FORMAT_MPEG | SF_FORMAT_MPEG_LAYER_III ; ++ sfinfo.channels = channels ; ++ sfinfo.samplerate = SAMPLE_RATE ; ++ ++ /* Write the output file. */ ++ file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_FALSE, __LINE__) ; ++ if (! normalize) ++ sf_command (file, SFC_SET_NORM_DOUBLE, NULL, SF_FALSE) ; ++ test_write_double_or_die (file, 0, data_out.d, samples, __LINE__) ; ++ sf_close (file) ; ++ ++ /* Read the file in again. */ ++ memset (&sfinfo, 0, sizeof (sfinfo)) ; ++ ++ file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_FALSE, __LINE__) ; ++ test_read_double_or_die (file, 0, data_in.d, samples, __LINE__) ; ++ sf_close (file) ; ++ ++ /* Finite and sane, as above. */ ++ for (k = 0 ; k < samples ; k++) ++ if (! isfinite (data_in.d [k]) || fabs (data_in.d [k]) > 4.0) ++ { printf ("\n\nLine %d : bad decoded sample at index %u : %f.\n\n", __LINE__, k, data_in.d [k]) ; ++ exit (1) ; ++ } ; ++ ++ puts ("ok") ; ++ ++ unlink (filename) ; ++} /* mpeg_hostile_double_case */ ++ ++static void ++mpeg_hostile_double_test (void) ++{ mpeg_hostile_double_case (1, SF_TRUE) ; ++ mpeg_hostile_double_case (1, SF_FALSE) ; ++ mpeg_hostile_double_case (2, SF_TRUE) ; ++ mpeg_hostile_double_case (2, SF_FALSE) ; ++} /* mpeg_hostile_double_test */ ++ + + static void + mpeg_stereo_seek_test (const char * filename, int format) +@@ -338,6 +494,8 @@ main (void) + mpeg_int_test () ; + mpeg_float_test () ; + mpeg_double_test () ; ++ mpeg_hostile_float_test () ; ++ mpeg_hostile_double_test () ; + + mpeg_stereo_seek_test ("mpeg_seek.mp3", SF_FORMAT_MPEG | SF_FORMAT_MPEG_LAYER_III) ; + } diff --git a/meta/recipes-multimedia/libsndfile/libsndfile1_1.2.2.bb b/meta/recipes-multimedia/libsndfile/libsndfile1_1.2.2.bb index a26f57d7f42..fb466190ab4 100644 --- a/meta/recipes-multimedia/libsndfile/libsndfile1_1.2.2.bb +++ b/meta/recipes-multimedia/libsndfile/libsndfile1_1.2.2.bb @@ -15,6 +15,7 @@ SRC_URI = "${GITHUB_BASE_URI}/download/${PV}/libsndfile-${PV}.tar.xz \ file://CVE-2025-56226-01.patch \ file://CVE-2025-56226-02.patch \ file://CVE-2026-37555.patch \ + file://CVE-2024-50613.patch \ " GITHUB_BASE_URI = "https://github.com/libsndfile/libsndfile/releases/" From patchwork Tue Nov 24 22:51:24 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 105475 X-Patchwork-Delegate: yoann.congal@smile.fr Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.30985.1795560751106570487 for ; Tue, 24 Nov 2026 14:52:31 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=gcmwALMx; spf=pass (domain: smile.fr, ip: 209.85.221.52, mailfrom: yoann.congal@smile.fr) Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-491f34b4e0fso2351429f8f.2 for ; Tue, 24 Nov 2026 14:52:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560749; x=1796165549; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=2hg8zAs+sJ9efEATajGMf3Squ0pHNOSlXohTqJxrhRs=; b=gcmwALMx2y39ctwt07is5YKfxVuGxGy08jKqDDySzocn89I75zKluQJIUIzxrgMj/z DM56MDxqCetPvf4NspHoCM7m4PFwVnmW6Q630qMDw8jdr/qGBZMw5XYiWOzXdogG+SGj YmQrwqTpCmFh+8B/s8TZIjUGplAmGHST+Gi2ChKodo7iX54jyEz5XU3Uf2QtgzjQiYE9 bEbk2UmcSCkRib3tXR9Or0VCtEzLJ11X9xp1+FnYWZakhQTfO26x2lbCxRZQrfU04H3V CG+i8TT7AzpCQh95qOO8QtSI66H96CV3QEWIa4+h/zIHHwi/Ynv4nK2Njv8w3bc7RqgO V6ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560749; x=1796165549; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=2hg8zAs+sJ9efEATajGMf3Squ0pHNOSlXohTqJxrhRs=; b=o/39esQEshUoj0h/9bU2Ju0E1fM5ZMqFDX5LrD2ESu9gBO1ls+tNXvHU/SGJ/Zdvtw /89ld67Slv8yGBOFsrW6KgRYB5ZROeEVWwGx8TKTPUetMyvdej40jjb7wzP+b7Mk69b0 hwQuf8fweIFbRFNVVX8ctUrzT+ha7qW9VFpi9gTWbih2c5MTwwfdS+pAJGGX6p+TH7lK pLBvGyVuG347qKEBTSGt8VQvcHi0bGAzdJmgb7CZkT6pUhoMR7sORM4I119AZbZCKwey zCRCrJgBDoly/3+d+72XSbid6KoYB0VyX5SFdkcYmHYNzi8f/qay5UYBM8BbjLxksol/ snsg== X-Gm-Message-State: APuU4Z+2dicL8Qag557vgxwGQTacFM3XX2jjxvb0YyJCh217aB2acABM Ho7kGA1y1NM0bf6huK+N9nMjBMw5FDDn7NiincOdFRNYis6fksY76/EbX+PW7183FGLUdMocLVh /QOEJldg= X-Gm-Gg: AZFdTZdSJzKNvykvJAtvYiO6EiIS80ixBnzLegJ30D3BwAdgGy3jXjuDd6MeE92QRzn ffUpD+1j36AGNNPp89g9PQVuqhvcNi0Mk9cKKQ+UkxFOIz4J0KmwjL844irtOteJyccu4I3nFS3 R9KwonpNC3nKGfUUGppm7hZED3zIPGL0GstZ1gONYiCtXe+QqdMpHnkCaTHUYC6HaWSvLufjiC+ 3yOYMkSeKzmkDC1TY5tYahdBirA67IRNNLeLNU0kJI2ZKXOMV6uLaiq60ezfvmy/MAlCmHzVLtY tdGej05MucbL07dIlFkfQLLi/zl9OmNJO47TJiVY312/ea3jSUlHNIPstMW0MaSGi1ZxsbfGE6G 2/reClv+PHQYBRHd3IuZVneFB4/Iyyv4BK59nSdY2dM9YOlSJLjgFUGzHD8waqSaTcruPIuzZn9 KEaC0GcWC8vtXdw49ZGkH6bA2XwoIqvx2zYbujtkkRq8FUNBHgGP2SAlrAzs+wJxx2cqxdY9gd/ 7NYg5X+l1KBvwIRmFGjR14NHvTSe4O9O9G+b3+dBJXVebpbBYozysWAeBYrNlPoN7iRAHtExoXX nrxcwlkWgC9iV2blJnAohqW/jj5uhiokn/KbUzIQF0d0ugffx4SWn8BL3L8wsM1Fcp7fmX+ffTe zv6qsvn9+SvkOXI9YCulEnMrk2fLg X-Received: by 2002:a5d:5849:0:b0:4a4:4229:c3a2 with SMTP id ffacd0b85a97d-4abaf7401bbmr34638587f8f.11.1795560749357; Tue, 24 Nov 2026 14:52:29 -0800 (PST) Return-Path: Received: from FRSMI25-LASER.home (2a01cb001331aa00a2e4fb7b0d887544.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:a2e4:fb7b:d88:7544]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6bb989e3sm30462488f8f.52.2026.11.24.14.52.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:28 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][blacksail 17/21] libsndfile1: patch CVE-2025-52194 Date: Tue, 24 Nov 2026 23:51:24 +0100 Message-ID: <0f8101e27663fdbcc9ba2ba70a9ecb787f1fe18c.1795560335.git.yoann.congal@smile.fr> X-Mailer: git-send-email 2.55.0 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 24 Nov 2026 22:52:39 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251097 From: Peter Marko Pick patch references by [1] references in CVE report. [1] https://github.com/libsndfile/libsndfile/issues/1082#issuecomment-6442050313 Signed-off-by: Peter Marko Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie (cherry picked from commit cc20c00e9261011c175d4bb92c99f02b5773b419) Signed-off-by: Yoann Congal --- .../libsndfile1/CVE-2025-52194.patch | 27 +++++++++++++++++++ .../libsndfile/libsndfile1_1.2.2.bb | 1 + 2 files changed, 28 insertions(+) create mode 100644 meta/recipes-multimedia/libsndfile/libsndfile1/CVE-2025-52194.patch diff --git a/meta/recipes-multimedia/libsndfile/libsndfile1/CVE-2025-52194.patch b/meta/recipes-multimedia/libsndfile/libsndfile1/CVE-2025-52194.patch new file mode 100644 index 00000000000..ec5da0b731e --- /dev/null +++ b/meta/recipes-multimedia/libsndfile/libsndfile1/CVE-2025-52194.patch @@ -0,0 +1,27 @@ +From 7ff854d1e0bd9a751a9ff52ed980c62afced91fe Mon Sep 17 00:00:00 2001 +From: Saddam +Date: Tue, 21 Jul 2026 20:49:11 +0530 +Subject: [PATCH] ircam: use psf_lrintf when reading samplerate + +The IRCAM header sample rate is a float read straight from the file. (int) samplerate is undefined when the value is out of int range or non-finite; psf_lrintf matches mat4/mat5 which convert a file sample rate the same way. + +CVE: CVE-2025-52194 +Upstream-Status: Backport [https://github.com/libsndfile/libsndfile/commit/7ff854d1e0bd9a751a9ff52ed980c62afced91fe] +Signed-off-by: Peter Marko +--- + src/ircam.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/ircam.c b/src/ircam.c +index 3d73ba44..d0780d8a 100644 +--- a/src/ircam.c ++++ b/src/ircam.c +@@ -161,7 +161,7 @@ ircam_read_header (SF_PRIVATE *psf) + + psf_log_printf (psf, "marker: 0x%X\n", marker) ; + +- psf->sf.samplerate = (int) samplerate ; ++ psf->sf.samplerate = psf_lrintf (samplerate) ; + + psf_log_printf (psf, " Sample Rate : %d\n" + " Channels : %d\n" diff --git a/meta/recipes-multimedia/libsndfile/libsndfile1_1.2.2.bb b/meta/recipes-multimedia/libsndfile/libsndfile1_1.2.2.bb index fb466190ab4..2c3e28dc1c8 100644 --- a/meta/recipes-multimedia/libsndfile/libsndfile1_1.2.2.bb +++ b/meta/recipes-multimedia/libsndfile/libsndfile1_1.2.2.bb @@ -16,6 +16,7 @@ SRC_URI = "${GITHUB_BASE_URI}/download/${PV}/libsndfile-${PV}.tar.xz \ file://CVE-2025-56226-02.patch \ file://CVE-2026-37555.patch \ file://CVE-2024-50613.patch \ + file://CVE-2025-52194.patch \ " GITHUB_BASE_URI = "https://github.com/libsndfile/libsndfile/releases/" From patchwork Tue Nov 24 22:51:25 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 105469 X-Patchwork-Delegate: yoann.congal@smile.fr Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.30986.1795560751874853920 for ; Tue, 24 Nov 2026 14:52:32 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=ANYnqfHc; spf=pass (domain: smile.fr, ip: 209.85.221.42, mailfrom: yoann.congal@smile.fr) Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-4a358881793so2633158f8f.0 for ; Tue, 24 Nov 2026 14:52:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560750; x=1796165550; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=7xXJUfKr59/fjhFgS5EHW2pkCDuihLM+ahBn2WGVId8=; b=ANYnqfHcH0+7CnpPAoATUy/jgZFgwNwE470B+1SmamnJ03hC8j13XzLnAVUHAim7vX /LtFd3zuMr2vjX7p7kf8PISYIdnNRxHva9d9DDwSSdCESN3OWtYRWWI5pNVlfd2pWvYn YrSGsC4dHq5rVtP/u/N6aVL/4WHotUJ4mcEap2VQsgbGq6bYNbEI28T95YU2Mrm9SKeT 8bCvKWqNhES+sRl8ZuG+l8/7XDuyDqT2dKho3jXTSsOU1aPriwQehpgOeZeY8AM7yuvU W0ThieKSD4TKUGwbNnRr7SQIzUUwREfJv33E5A89iIAimQrS/l+L4Lpr7gp/BX+wQ2/F fFvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560750; x=1796165550; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=7xXJUfKr59/fjhFgS5EHW2pkCDuihLM+ahBn2WGVId8=; b=TJCB3OYP2zSBp0cqqEAKOijXjTSkAjVyiT5p+Uh9cTYpIwFWIh9ECYpvXzrnPmgybD iaxv8BuSErRor0c+2lBtr0ROYPnJkNYK5QAIYunNCW8e+qTIIUClOf9q1K/McljDipvO /a/WZTwZOmK8iWiqIkZXaGVPJlGFan+9XBDeJnYnrc/59GweW40FCn5QMKbSOunsIpKR +HFaX+trbUvBAZiivwraSsBwFjVSrWtz8UhWpxKigA+Cq7+L0j2iCP5Dnp8+0odRV43A Bn2gg3/syV4UWmWkRgzIui5RpNt3MH2Fk+i/wZZBpXaWN4ZSNs/SjA4D1ro59QYz+lB+ ez5g== X-Gm-Message-State: APuU4Z/AEOuKUUnoBkI5rqYlmSTnu5CSzaJJalXlxLCnw0BAOBjxuRyV PTHHUBUM9/E//AAcEP8ZrikMxKjKo+6gcUHIravcFzCfu92aLT6xIxj8FBwRiT4w9CQKJptVDNY XxHZCUlY= X-Gm-Gg: AZFdTZejtybDOGDMg7fk0tRDr2oYN++vvTh03SSO8OUetHXYaGRLoRBbfuqCSmrBYnP XcKl6p9VyPgsq/l1maP8hasKXlvFnopRkqKsIwwC41E8Ifaurzg/qdI3bXpdTW3Y8R0oc33nndh aBdhJlJn0oernd+o9+hTi0Itzk9qtK6bJIROWjiMr1a4HDFyQz2wLooqQsR0LIEi4OdWiwTu5Pu tYjD8YQ7bjYOaLOZ5Jp16LYv3S7u/WRemmuYapqlVPYsRit3MkVnFYQ8qyaAmKtK+gtuXCMeHOq B3mGNsklRcFZniIfzm5u57/Q9P2V3AwjqSO8u+10xoMS3e3A7fh4D0BRK1rIcWn3IRxsI+JziUN SEJk+EvRwdMZ9DZ8eW7Ho6vYmx8uqcqt2y1cpZUFov9l/fnsLb8IbEG/wo4gNtqseRae4hrZeiG mZtSclkraxB85/ddJdyyaYhHEduxKXZhvrA+WHJDdtNfJGSphdKr60njQXIdxrn6rlp7g2r830s 0JuqGTHLM7s6cblttRM6G4vWHRMobwaY4zJmXDNHO3uNDc/UMZxE3Wa0VcgDXQCHZ4isDW3O5x1 aCq35aNyGkK+uhfTCAqh8/iP+N5rWSErI0dHzWbcjSlqnI//4TPuvLdm76j8F37cbBvo6AvsCx7 S+reTJfCmN5Onmaok1JdD1EfH1JDd X-Received: by 2002:a05:6000:470c:b0:4a7:593a:f421 with SMTP id ffacd0b85a97d-4abb73b557amr29246512f8f.47.1795560749923; Tue, 24 Nov 2026 14:52:29 -0800 (PST) Return-Path: Received: from FRSMI25-LASER.home (2a01cb001331aa00a2e4fb7b0d887544.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:a2e4:fb7b:d88:7544]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6bb989e3sm30462488f8f.52.2026.11.24.14.52.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:29 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][blacksail 18/21] libsndfile1: patch CVE-2026-109828 Date: Tue, 24 Nov 2026 23:51:25 +0100 Message-ID: <74391007365b5f2b2258ac8de70d14be48a937eb.1795560335.git.yoann.congal@smile.fr> X-Mailer: git-send-email 2.55.0 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 24 Nov 2026 22:52:38 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251098 From: Peter Marko Pick patch from [1] which clsed [2] linked from [3]. Also pick a refactoring commit which is required for a clean cherry-pick. [1] https://github.com/libsndfile/libsndfile/pull/1170 [2] https://github.com/libsndfile/libsndfile/issues/1169 [3] https://nvd.nist.gov/vuln/detail/cve-2026-109828 Signed-off-by: Peter Marko Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie (cherry picked from commit 6c80a8917e6c815cea297d2aa6c7d715f07c57d9) Signed-off-by: Yoann Congal --- .../libsndfile1/CVE-2026-109828-01.patch | 234 ++++++++++++++++++ .../libsndfile1/CVE-2026-109828-02.patch | 26 ++ .../libsndfile/libsndfile1_1.2.2.bb | 2 + 3 files changed, 262 insertions(+) create mode 100644 meta/recipes-multimedia/libsndfile/libsndfile1/CVE-2026-109828-01.patch create mode 100644 meta/recipes-multimedia/libsndfile/libsndfile1/CVE-2026-109828-02.patch diff --git a/meta/recipes-multimedia/libsndfile/libsndfile1/CVE-2026-109828-01.patch b/meta/recipes-multimedia/libsndfile/libsndfile1/CVE-2026-109828-01.patch new file mode 100644 index 00000000000..61acc37c2dc --- /dev/null +++ b/meta/recipes-multimedia/libsndfile/libsndfile1/CVE-2026-109828-01.patch @@ -0,0 +1,234 @@ +From 59babedce8fa8eb1000ecb3c87a5dd4a1190ad9e Mon Sep 17 00:00:00 2001 +From: iceray-Li <108821718+iceray00@users.noreply.github.com> +Date: Tue, 22 Sep 2026 06:05:03 +0000 +Subject: [PATCH] aiff, wav, wavlike: index the cue array through a pointer + +The cue array of an SF_CUES struct is allocated with room for the actual cue +count (SF_CUES_VAR_SIZE()), but the public SF_CUES type declares it with a +fixed length of 100 (SF_CUES_VAR (100)). Compilers therefore assume that +cue_points [] holds 100 elements, and UBSan's array-bounds check flags every +access beyond that even though the allocation is larger: + + src/aiff.c:823:8: runtime error: index 100 out of bounds for type 'SF_CUE_POINT [100]' + src/aiff.c:943:38: runtime error: index 100 out of bounds for type 'SF_CUE_POINT [100]' + src/wav.c:524:8: runtime error: index 100 out of bounds for type 'SF_CUE_POINT [100]' + +The declared bound is also the reason the CVE-2022-33064 report (issue #832) +is still open. The accesses themselves are inside the allocation: the cue +count is capped at 2500 by wav.c and aiff.c, psf_cues_alloc() reserves +cue_count * sizeof (SF_CUE_POINT) bytes, and the same inputs are clean under +ASan, so no validation of the file can make the diagnostic disappear. + +Add psf_cues_points(), which hands out the first element of the array as an +ordinary pointer, and use it at every place that subscripts cue_points []. +The layout of the public SF_CUES struct, the API it exposes and the file +handling are unchanged. + +Tested with ossfuzz/sndfile_fuzzer and ossfuzz/sndfile_alt_fuzzer built with +-fsanitize=address,undefined: the crafted AIFF and WAV inputs abort in +src/aiff.c and src/wav.c before the change and are clean after it. + +CVE: CVE-2026-109828 +Upstream-Status: Backport [https://github.com/libsndfile/libsndfile/commit/59babedce8fa8eb1000ecb3c87a5dd4a1190ad9e] +Signed-off-by: Peter Marko +--- + src/aiff.c | 36 ++++++++++++++++++++---------------- + src/common.h | 10 ++++++++++ + src/wav.c | 23 +++++++++++++---------- + src/wavlike.c | 5 +++-- + 4 files changed, 46 insertions(+), 28 deletions(-) + +diff --git a/src/aiff.c b/src/aiff.c +index e36b21e0..39c3221d 100644 +--- a/src/aiff.c ++++ b/src/aiff.c +@@ -403,6 +403,7 @@ aiff_read_header (SF_PRIVATE *psf, COMM_CHUNK *comm_fmt) + int k, found_chunk = 0, done = 0, error = 0 ; + char *cptr ; + int instr_found = 0, mark_found = 0 ; ++ SF_CUE_POINT *cue_points = NULL ; + + if (psf->filelength > 0xFFFFFFFFLL) + psf_log_printf (psf, "Warning : filelength > 0xffffffff. This is bad!!!!\n") ; +@@ -813,6 +814,8 @@ aiff_read_header (SF_PRIVATE *psf, COMM_CHUNK *comm_fmt) + if ((psf->cues = psf_cues_alloc (mark_count)) == NULL) + return SFE_MALLOC_FAILED ; + ++ cue_points = psf_cues_points (psf->cues) ; ++ + for (n = 0 ; n < mark_count && bytesread < chunk_size ; n++) + { uint32_t pstr_len ; + uint8_t ch ; +@@ -820,12 +823,12 @@ aiff_read_header (SF_PRIVATE *psf, COMM_CHUNK *comm_fmt) + bytesread += psf_binheader_readf (psf, "E241", &mark_id, &position, &ch) ; + psf_log_printf (psf, " Mark ID : %u\n Position : %u\n", mark_id, position) ; + +- psf->cues->cue_points [n].indx = mark_id ; +- psf->cues->cue_points [n].position = 0 ; +- psf->cues->cue_points [n].fcc_chunk = MAKE_MARKER ('d', 'a', 't', 'a') ; /* always data */ +- psf->cues->cue_points [n].chunk_start = 0 ; +- psf->cues->cue_points [n].block_start = 0 ; +- psf->cues->cue_points [n].sample_offset = position ; ++ cue_points [n].indx = mark_id ; ++ cue_points [n].position = 0 ; ++ cue_points [n].fcc_chunk = MAKE_MARKER ('d', 'a', 't', 'a') ; /* always data */ ++ cue_points [n].chunk_start = 0 ; ++ cue_points [n].block_start = 0 ; ++ cue_points [n].sample_offset = position ; + + pstr_len = (ch & 1) ? ch : ch + 1 ; + +@@ -841,7 +844,7 @@ aiff_read_header (SF_PRIVATE *psf, COMM_CHUNK *comm_fmt) + + psf_log_printf (psf, " Name : %s\n", ubuf.scbuf) ; + +- psf_strlcpy (psf->cues->cue_points [n].name, sizeof (psf->cues->cue_points [n].name), ubuf.cbuf) ; ++ psf_strlcpy (cue_points [n].name, sizeof (cue_points [n].name), ubuf.cbuf) ; + + paiff->markstr [n].markerID = mark_id ; + paiff->markstr [n].position = position ; +@@ -940,14 +943,14 @@ aiff_read_header (SF_PRIVATE *psf, COMM_CHUNK *comm_fmt) + + for (j = 0 ; j < psf->cues->cue_count - (uint32_t) (psf->instrument->loop_count * 2) ; j ++) + { /* This simply copies the information in cues above loop positions and writes it at current count instead */ +- psf->cues->cue_points [j].indx = psf->cues->cue_points [j + psf->instrument->loop_count * 2].indx ; +- psf->cues->cue_points [j].position = psf->cues->cue_points [j + psf->instrument->loop_count * 2].position ; +- psf->cues->cue_points [j].fcc_chunk = psf->cues->cue_points [j + psf->instrument->loop_count * 2].fcc_chunk ; +- psf->cues->cue_points [j].chunk_start = psf->cues->cue_points [j + psf->instrument->loop_count * 2].chunk_start ; +- psf->cues->cue_points [j].block_start = psf->cues->cue_points [j + psf->instrument->loop_count * 2].block_start ; +- psf->cues->cue_points [j].sample_offset = psf->cues->cue_points [j + psf->instrument->loop_count * 2].sample_offset ; ++ cue_points [j].indx = cue_points [j + psf->instrument->loop_count * 2].indx ; ++ cue_points [j].position = cue_points [j + psf->instrument->loop_count * 2].position ; ++ cue_points [j].fcc_chunk = cue_points [j + psf->instrument->loop_count * 2].fcc_chunk ; ++ cue_points [j].chunk_start = cue_points [j + psf->instrument->loop_count * 2].chunk_start ; ++ cue_points [j].block_start = cue_points [j + psf->instrument->loop_count * 2].block_start ; ++ cue_points [j].sample_offset = cue_points [j + psf->instrument->loop_count * 2].sample_offset ; + for (str_index = 0 ; str_index < 256 ; str_index++) +- psf->cues->cue_points [j].name [str_index] = psf->cues->cue_points [j + psf->instrument->loop_count * 2].name [str_index] ; ++ cue_points [j].name [str_index] = cue_points [j + psf->instrument->loop_count * 2].name [str_index] ; + } ; + psf->cues->cue_count -= psf->instrument->loop_count * 2 ; + } else +@@ -1461,10 +1464,11 @@ aiff_write_header (SF_PRIVATE *psf, int calc_length) + { /* There are cues but no loops */ + uint32_t idx ; + int totalStringLength = 0, stringLength ; ++ SF_CUE_POINT *cue_points = psf_cues_points (psf->cues) ; + + /* Here we count how many bytes will the pascal strings need */ + for (idx = 0 ; idx < psf->cues->cue_count ; idx++) +- { stringLength = strlen (psf->cues->cue_points [idx].name) + 1 ; /* We'll count the first byte also of every pascal string */ ++ { stringLength = strlen (cue_points [idx].name) + 1 ; /* We'll count the first byte also of every pascal string */ + totalStringLength += stringLength + (stringLength % 2 == 0 ? 0 : 1) ; + } ; + +@@ -1472,7 +1476,7 @@ aiff_write_header (SF_PRIVATE *psf, int calc_length) + BHWm (MARK_MARKER), BHW4 (2 + psf->cues->cue_count * (2 + 4) + totalStringLength), BHW2 (psf->cues->cue_count)) ; + + for (idx = 0 ; idx < psf->cues->cue_count ; idx++) +- psf_binheader_writef (psf, "E24p", BHW2 (psf->cues->cue_points [idx].indx), BHW4 (psf->cues->cue_points [idx].sample_offset), BHWp (psf->cues->cue_points [idx].name)) ; ++ psf_binheader_writef (psf, "E24p", BHW2 (cue_points [idx].indx), BHW4 (cue_points [idx].sample_offset), BHWp (cue_points [idx].name)) ; + } ; + + if (psf->strings.flags & SF_STR_LOCATE_START) +diff --git a/src/common.h b/src/common.h +index 01f6ae09..ee6844b8 100644 +--- a/src/common.h ++++ b/src/common.h +@@ -989,6 +989,16 @@ SF_CUES * psf_cues_dup (const void * ptr, size_t datasize) ; + SF_CUES * psf_cues_alloc (uint32_t cue_count) ; + void psf_get_cues (SF_PRIVATE * psf, void * data, size_t datasize) ; + ++/* The cue array is allocated with room for the actual cue count (see ++** psf_cues_alloc()), but the public SF_CUES type declares it with a fixed ++** length of 100. Index it through a pointer so that compilers do not flag ++** accesses to the longer, correctly allocated array (issue #832). ++*/ ++static inline SF_CUE_POINT * ++psf_cues_points (SF_CUES *cues) ++{ return cues->cue_points ; ++} /* psf_cues_points */ ++ + SF_INSTRUMENT * psf_instrument_alloc (void) ; + + void psf_sanitize_string (char * cptr, int len) ; +diff --git a/src/wav.c b/src/wav.c +index 80dda4e1..f206bc34 100644 +--- a/src/wav.c ++++ b/src/wav.c +@@ -484,6 +484,7 @@ wav_read_header (SF_PRIVATE *psf, int *blockalign, int *framesperblock) + + { uint32_t thisread, bytesread, cue_count, position, offset ; + int id, chunk_id, chunk_start, block_start, cue_index ; ++ SF_CUE_POINT *cue_points ; + + bytesread = psf_binheader_readf (psf, "4", &cue_count) ; + psf_log_printf (psf, "%M : %u\n", marker, chunk_size) ; +@@ -504,6 +505,7 @@ wav_read_header (SF_PRIVATE *psf, int *blockalign, int *framesperblock) + if ((psf->cues = psf_cues_alloc (cue_count)) == NULL) + return SFE_MALLOC_FAILED ; + ++ cue_points = psf_cues_points (psf->cues) ; + cue_index = 0 ; + + while (cue_count) +@@ -521,13 +523,13 @@ wav_read_header (SF_PRIVATE *psf, int *blockalign, int *framesperblock) + else if (cue_index == 10) + psf_log_printf (psf, " (Skipping)\n") ; + +- psf->cues->cue_points [cue_index].indx = id ; +- psf->cues->cue_points [cue_index].position = position ; +- psf->cues->cue_points [cue_index].fcc_chunk = chunk_id ; +- psf->cues->cue_points [cue_index].chunk_start = chunk_start ; +- psf->cues->cue_points [cue_index].block_start = block_start ; +- psf->cues->cue_points [cue_index].sample_offset = offset ; +- psf->cues->cue_points [cue_index].name [0] = '\0' ; ++ cue_points [cue_index].indx = id ; ++ cue_points [cue_index].position = position ; ++ cue_points [cue_index].fcc_chunk = chunk_id ; ++ cue_points [cue_index].chunk_start = chunk_start ; ++ cue_points [cue_index].block_start = block_start ; ++ cue_points [cue_index].sample_offset = offset ; ++ cue_points [cue_index].name [0] = '\0' ; + cue_count -- ; + cue_index ++ ; + } ; +@@ -1210,13 +1212,14 @@ wav_write_header (SF_PRIVATE *psf, int calc_length) + + if (psf->cues != NULL) + { uint32_t k ; ++ SF_CUE_POINT *cue_points = psf_cues_points (psf->cues) ; + + psf_binheader_writef (psf, "em44", BHWm (cue_MARKER), BHW4 (4 + psf->cues->cue_count * 6 * 4), BHW4 (psf->cues->cue_count)) ; + + for (k = 0 ; k < psf->cues->cue_count ; k++) +- psf_binheader_writef (psf, "e44m444", BHW4 (psf->cues->cue_points [k].indx), BHW4 (psf->cues->cue_points [k].position), +- BHWm (psf->cues->cue_points [k].fcc_chunk), BHW4 (psf->cues->cue_points [k].chunk_start), +- BHW4 (psf->cues->cue_points [k].block_start), BHW4 (psf->cues->cue_points [k].sample_offset)) ; ++ psf_binheader_writef (psf, "e44m444", BHW4 (cue_points [k].indx), BHW4 (cue_points [k].position), ++ BHWm (cue_points [k].fcc_chunk), BHW4 (cue_points [k].chunk_start), ++ BHW4 (cue_points [k].block_start), BHW4 (cue_points [k].sample_offset)) ; + } ; + + if (psf->instrument != NULL) +diff --git a/src/wavlike.c b/src/wavlike.c +index 05691323..0c3577a8 100644 +--- a/src/wavlike.c ++++ b/src/wavlike.c +@@ -1060,13 +1060,14 @@ wavlike_subchunk_parse (SF_PRIVATE *psf, int chunk, uint32_t chunk_length) + + if (psf->cues) + { unsigned int i = 0 ; ++ SF_CUE_POINT *cue_points = psf_cues_points (psf->cues) ; + + /* find id to store label */ +- while (i < psf->cues->cue_count && psf->cues->cue_points [i].indx != mark_id) ++ while (i < psf->cues->cue_count && cue_points [i].indx != mark_id) + i++ ; + + if (i < psf->cues->cue_count) +- memcpy (psf->cues->cue_points [i].name, buffer, sizeof (psf->cues->cue_points [i].name)) ; ++ memcpy (cue_points [i].name, buffer, sizeof (cue_points [i].name)) ; + } ; + } ; + break ; diff --git a/meta/recipes-multimedia/libsndfile/libsndfile1/CVE-2026-109828-02.patch b/meta/recipes-multimedia/libsndfile/libsndfile1/CVE-2026-109828-02.patch new file mode 100644 index 00000000000..dab12f04ace --- /dev/null +++ b/meta/recipes-multimedia/libsndfile/libsndfile1/CVE-2026-109828-02.patch @@ -0,0 +1,26 @@ +From 1ccd2a18826722c3aa9ed54122ebff20e3b92b10 Mon Sep 17 00:00:00 2001 +From: Ilias Aberkane +Date: Fri, 25 Sep 2026 13:38:54 +0200 +Subject: [PATCH] wavlike: copy only the labl bytes actually read into cue + names + +CVE: CVE-2026-109828 +Upstream-Status: Backport [https://github.com/libsndfile/libsndfile/commit/1ccd2a18826722c3aa9ed54122ebff20e3b92b10] +Signed-off-by: Peter Marko +--- + src/wavlike.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/wavlike.c b/src/wavlike.c +index 0c3577a8..9d99b74a 100644 +--- a/src/wavlike.c ++++ b/src/wavlike.c +@@ -1067,7 +1067,7 @@ wavlike_subchunk_parse (SF_PRIVATE *psf, int chunk, uint32_t chunk_length) + i++ ; + + if (i < psf->cues->cue_count) +- memcpy (cue_points [i].name, buffer, sizeof (cue_points [i].name)) ; ++ psf_strlcpy (cue_points [i].name, sizeof (cue_points [i].name), buffer) ; + } ; + } ; + break ; diff --git a/meta/recipes-multimedia/libsndfile/libsndfile1_1.2.2.bb b/meta/recipes-multimedia/libsndfile/libsndfile1_1.2.2.bb index 2c3e28dc1c8..75242c34050 100644 --- a/meta/recipes-multimedia/libsndfile/libsndfile1_1.2.2.bb +++ b/meta/recipes-multimedia/libsndfile/libsndfile1_1.2.2.bb @@ -17,6 +17,8 @@ SRC_URI = "${GITHUB_BASE_URI}/download/${PV}/libsndfile-${PV}.tar.xz \ file://CVE-2026-37555.patch \ file://CVE-2024-50613.patch \ file://CVE-2025-52194.patch \ + file://CVE-2026-109828-01.patch \ + file://CVE-2026-109828-02.patch \ " GITHUB_BASE_URI = "https://github.com/libsndfile/libsndfile/releases/" From patchwork Tue Nov 24 22:51:26 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 105476 X-Patchwork-Delegate: yoann.congal@smile.fr Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.31024.1795560752084796728 for ; Tue, 24 Nov 2026 14:52:32 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=Xpg7B1BR; spf=pass (domain: smile.fr, ip: 209.85.221.43, mailfrom: yoann.congal@smile.fr) Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-4a358881793so2633160f8f.0 for ; Tue, 24 Nov 2026 14:52:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560750; x=1796165550; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=7uL/iAtsNgC5IZY9uWFp+3spG799kJlY5szTzxZDn9g=; b=Xpg7B1BRBmMrDq7A+G//nYCbvUJzH381SRFpclNOUNbJwYQQ1GuVmgtKNUOdptKJWY HCSxFkym5cCASd026cWl5Jd5Kf2NV3XUzR4hxcOzPCi60NZSDyVoZTWjj3sCHlgpRNqE 4DifnJfN8suUI9sgL8EbKVJ5kLBpHKt1WbeoARGPTDnH9nIxmZTuUI3hDV0iA76kLBgL Y+HpsbXO4qFgfsQBhWfH2YcUSWpNj5IqL6JG/BalrxQGg75i6wS9ujFMer4iFsXb9w8f cuaetJmuuAeOaWvEIsAuJB3zqOXKbCNoxtVD4gx4ymIbQqvmcKomtdRFehmndg5APKHe qlSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560750; x=1796165550; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=7uL/iAtsNgC5IZY9uWFp+3spG799kJlY5szTzxZDn9g=; b=R57k6COr5Xj3bmrh132yaxU+A2yIr17b1fnjUJuuaG9krOesntL5lEg0bC6YtviO/X EjLo2Y9iiQgpR2anKEbE96ihIQX7ze6Te1a7cXNPcjRYb8vWp8QLIDl/l/kzQOFkVZ+z 83cjVLmA/UxrAS5aKbIN0BvrLBNAIpg5AaVwoTf1YgRObBv2Q6SOn9HS5qFQ6pznPvgR ed3X9z6kiIRKpLVtHD8vOn4P9FPhMXKEIEEJEvsUliIIUBDFUFrOXjP10j9wt2WQKdZx pYFn2LlbfOmc3BQniWB2g/hvDglOEZMEKR4A1pCmAg2Tj+YMSvz+NFNYEbiaeMZDUwbf IEYQ== X-Gm-Message-State: APuU4Z89VbhjI5lLuglg+vMmP6hv3IOUHxUmNFgm3BmQhU8CuqWyu1sV 1cfnfEjTN0BtLR3Sjn6TdRzM3+2pWRjwQWNLF8MBn9oLrowEaTSKuiIFfCbr8bkl78iOzEUyk7v NllC2Gxs= X-Gm-Gg: AZFdTZctI+g/Q1+qEDr3joJJ5GqSdvApwCg6oeuX5DMf6e/qCS+PZx2EoGTf/3d4I6w BpP0DhtR1QZqzJLopBPyAgDUuh+1MwyrsjBsnfzqQwO/ZX3PUqtJJo4loxpuYKKTwouuBXF0jkv caHaU16oUeWxo5e537ti7Z1NisV35EbI/Sx8G9/2xRxCTK7gZSh6vPg39DYpQEoEv+bANU61Vza Xu2Cn6CQ+eAfb06iufRF09b8Wmuw70WGuHmNYTo8BUgr6Df3laVnX4n1arHxSfIj9JfPIMVpkZV 8cPnQiMHXQM/IHa74xb+1I9gJitLLuXc5CVm268WCH3r02bmeQtMwDneLIFeCiayLH+JU2SQM8H M9eMGveGepr+LSFXtdxeR/EEgC28CTKoBEnLFXfA77eV6WqUmM3zHhKxaZ/hAghMIATbz0+ofA6 jqOMrrIYMGLgAmaMqQaOuZm9ZLnd9YW2XI2FxNjmXLsKu/PlQPGuE5DS7ZyDEhpsrG0XCCClm4d xlWydMpwHpSYKnvLPtqLdetykybbcH1rE7k+oqyPahye54P/r/HNWXHFTK5p7uE4DgsEoYGYcRw Var0ir/lf8okRv14X9wkQn3NXfwPZl8kyUWIUVTp5wQSL7sLZjFiYefR4ZwKniJT7oo1EAi1P8E 3uplg8f8gQQ3nmQFo2Uh5qckeN7ai X-Received: by 2002:a5d:64ef:0:b0:4b3:e605:15d6 with SMTP id ffacd0b85a97d-4b3e60516a7mr14173957f8f.55.1795560750348; Tue, 24 Nov 2026 14:52:30 -0800 (PST) Return-Path: Received: from FRSMI25-LASER.home (2a01cb001331aa00a2e4fb7b0d887544.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:a2e4:fb7b:d88:7544]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6bb989e3sm30462488f8f.52.2026.11.24.14.52.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:30 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][blacksail 19/21] speex: patch CVE-2026-116741 Date: Tue, 24 Nov 2026 23:51:26 +0100 Message-ID: X-Mailer: git-send-email 2.55.0 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 24 Nov 2026 22:52:39 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251099 From: Peter Marko Pick patch from [1] linked from CVE report. [1] https://gitlab.xiph.org/xiph/speex/-/merge_requests/32 Signed-off-by: Peter Marko Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie (cherry picked from commit acdf6b0bfcf0a2c3b858ccf2f1b385afd5b13574) Signed-off-by: Yoann Congal --- .../speex/speex/CVE-2026-116741.patch | 29 +++++++++++++++++++ meta/recipes-multimedia/speex/speex_1.2.1.bb | 5 +++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-multimedia/speex/speex/CVE-2026-116741.patch diff --git a/meta/recipes-multimedia/speex/speex/CVE-2026-116741.patch b/meta/recipes-multimedia/speex/speex/CVE-2026-116741.patch new file mode 100644 index 00000000000..4d71f7fa82c --- /dev/null +++ b/meta/recipes-multimedia/speex/speex/CVE-2026-116741.patch @@ -0,0 +1,29 @@ +From 09b569d1b437e5edccf3406a38714ad795e46d38 Mon Sep 17 00:00:00 2001 +From: Tristan Matthews +Date: Thu, 22 Oct 2026 09:00:44 -0400 +Subject: [PATCH] bits: fix OOB write in read_whole_bytes for non-owned buffers + +Fixes https://github.com/xiph/speex/issues/42 + +Reported by HaiND (Nguyen Dinh Hai), Post and Telecommunication Institute of Technology, github.com/Haind03. + +CVE: CVE-2026-116741 +Upstream-Status: Backport [https://gitlab.xiph.org/xiph/speex/-/commit/09b569d1b437e5edccf3406a38714ad795e46d38] +Signed-off-by: Peter Marko +--- + libspeex/bits.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libspeex/bits.c b/libspeex/bits.c +index 4f457af..c5546e8 100644 +--- a/libspeex/bits.c ++++ b/libspeex/bits.c +@@ -174,7 +174,7 @@ EXPORT void speex_bits_read_whole_bytes(SpeexBits *bits, const char *chars, int + } + } else { + speex_warning("Do not own input buffer: truncating oversize input"); +- nchars=bits->buf_size; ++ nchars=bits->buf_size-(bits->nbBits>>LOG2_BITS_PER_CHAR)-1; + } + } + diff --git a/meta/recipes-multimedia/speex/speex_1.2.1.bb b/meta/recipes-multimedia/speex/speex_1.2.1.bb index c40198fa8f3..2a174db0aa4 100644 --- a/meta/recipes-multimedia/speex/speex_1.2.1.bb +++ b/meta/recipes-multimedia/speex/speex_1.2.1.bb @@ -8,7 +8,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=eff3f76350f52a99a3df5eec6b79c02a \ " DEPENDS = "libogg speexdsp" -SRC_URI = "http://downloads.xiph.org/releases/speex/speex-${PV}.tar.gz" +SRC_URI = " \ + http://downloads.xiph.org/releases/speex/speex-${PV}.tar.gz \ + file://CVE-2026-116741.patch \ +" UPSTREAM_CHECK_REGEX = "speex-(?P\d+(\.\d+)+)\.tar" SRC_URI[sha256sum] = "4b44d4f2b38a370a2d98a78329fefc56a0cf93d1c1be70029217baae6628feea" From patchwork Tue Nov 24 22:51:27 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 105467 X-Patchwork-Delegate: yoann.congal@smile.fr Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.31025.1795560752751131600 for ; Tue, 24 Nov 2026 14:52:33 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=nPbd7Mo/; spf=pass (domain: smile.fr, ip: 209.85.221.42, mailfrom: yoann.congal@smile.fr) Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-48e3b22e971so2673686f8f.0 for ; Tue, 24 Nov 2026 14:52:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560751; x=1796165551; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=MxrYKrt5umAdFPsLmC8B5eU4e+Ige+fMcsdWskpfl54=; b=nPbd7Mo/wfRwK7cQGJRwuvZe46jm5rSrnhlyF6m7U5I3u10b2kiciaC/01pinRKtRL n2501UBgNBDQmXieD8tkNrfTCEmr/utesYzSjXysShp7Orl//RfoFPqHXTUFvl+WNqll bjePf5bqKOugPerrVwyx28U6ljXvT+g801X6Wu718zDfVe1+r1F6fSaWRcH2HYv7SPLg Le9dllGmsrwVDviVi5usO4ymnSKkQ4KtMt2bgHfd+0WrXOqVzoj8qxGRBItGJuPuxE2Z Ruzagpt6bgKoiqpdKHyJDUiFybT/m6peb1Z3b9sn6pdNOKqBsLecWSk+ZIHzkZM7X0y0 HYZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560751; x=1796165551; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=MxrYKrt5umAdFPsLmC8B5eU4e+Ige+fMcsdWskpfl54=; b=LsmCki4vE6AwmJkXeTYlW5LUwlzhItdsDhREbw+aprBRU8jeBb+UGGobMuG/ZK8CYB BeVOAbEuoXsP8sAKKCJyWaVppps6w0PWu4LDnQsuB7LRKJVMpAoTPJTAGcqYOlUsEAbm MCfrYjNcpmQGLVa5twnCftY5qqEUG3h+qRGcrYX01ulb6IbrWylWTSpf/BCzKvmM5H5W MrNewr+GccpaB2SKJGVCvbWnMRR9BVNsDcpjWQc864vaXguZOAJodDskMj9WuFSWtZo2 ZSvz3VWGCKu5L2hLCBnnk2+yXt7LJ1zjPnhXP2OZmIjI5yDKzsKUbBGoAujbkdZGUoLN 9C/g== X-Gm-Message-State: APuU4Z+qdOUdG6lx7sihqGfQNQ6a8Zg2M4WTkp1QwPn2SV5+uhTftmmh x3RJ0QCrNEBgnW5d3e6dqrwCuJD/Y4zAnjzWdmIvtroIopDQkR7tE2j4y8JKtszjGYkScSi/XVU uNNaXJZ4= X-Gm-Gg: AZFdTZcU5tWrLM0O+IEimZX76HlOZyScVdVXAqQjxjFYKdb8nzSEX/A4BzF9ORTFdpL Qhg9nKxP595Na72qzTGVKPh6rXy/nUdqJytUNmfxW47mzQ/6BkOCQiQ8R//NBtjeG4tfiNccBMB VkgkjYTJGV+bzMXMJM+wekTvaOwRuiVkItKNzfzMOrsue/VhgGz6Ssr4J3drGrk4AM4d0BNztBd m4yxq791vbQNbXKU010+uuNg0OZe8Gua+ChJzwx3SC7IekgELr+QISpR97aSMGiZtyO5h/jFkvQ sJXjWiK/Ex8mT5OL+nh9XryrFiv8Uc8NbXmxjaDLYeOY92H8OxYCrmREYDM8U8SB3DnQ50+ct+n roymEvE+R15IA2vY+iIUGDTjWUO/2mTN33tMA2IYP4uwQkNp1QEdVaUGu5rVvRjK9R1WVBtjoEf 1wJJQPN1PwvksHL9DHDAjBWoWa09KCtG4ltfm8IS06xrXM3HJNoWg6GFsLRX4sjFvqZxdtVlUyO aZC6ccVMMCmAVPYYLDGQL3IzvtcfheJbdde706S569b+lwH1paHu9ZTa39sa19BLG3je5SYAXMQ fxKqoL1rNo0dDimsA1tttaO5IULzbexFcBg+8Mje/RaFsuvV2PylfwXUdAD2rJJEqLKm+48EVmV vddVD4koNhyGYN70IC7JJ6y7TZkwg X-Received: by 2002:a05:6000:1788:b0:492:3176:3d6f with SMTP id ffacd0b85a97d-4abb400aefcmr30038100f8f.47.1795560750999; Tue, 24 Nov 2026 14:52:30 -0800 (PST) Return-Path: Received: from FRSMI25-LASER.home (2a01cb001331aa00a2e4fb7b0d887544.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:a2e4:fb7b:d88:7544]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6bb989e3sm30462488f8f.52.2026.11.24.14.52.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:30 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][blacksail 20/21] tzdata/tzcode-native: upgrade 2026e -> 2026f Date: Tue, 24 Nov 2026 23:51:27 +0100 Message-ID: X-Mailer: git-send-email 2.55.0 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 24 Nov 2026 22:52:38 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251100 From: Ankur Tyagi Changelog: https://www.iana.org/time-zones/releases/2026f Signed-off-by: Ankur Tyagi Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie (cherry picked from commit a5c5781d51df60bbb3d9945c9b3ad89f4d9502f4) Signed-off-by: Ankur Tyagi Signed-off-by: Yoann Congal --- meta/recipes-extended/timezone/timezone.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meta/recipes-extended/timezone/timezone.inc b/meta/recipes-extended/timezone/timezone.inc index 44872c3637f..d8dd7a3bce4 100644 --- a/meta/recipes-extended/timezone/timezone.inc +++ b/meta/recipes-extended/timezone/timezone.inc @@ -6,7 +6,7 @@ SECTION = "base" LICENSE = "BSD-3-Clause AND LicenseRef-PD" LIC_FILES_CHKSUM = "file://LICENSE;md5=c679c9d6b02bc2757b3eaf8f53c43fba" -PV = "2026e" +PV = "2026f" SRC_URI = "http://www.iana.org/time-zones/repository/releases/tzcode${PV}.tar.gz;name=tzcode;subdir=tz \ http://www.iana.org/time-zones/repository/releases/tzdata${PV}.tar.gz;name=tzdata;subdir=tz \ @@ -14,5 +14,5 @@ SRC_URI = "http://www.iana.org/time-zones/repository/releases/tzcode${PV}.tar.gz S = "${UNPACKDIR}/tz" -SRC_URI[tzcode.sha256sum] = "cc3d27ca2a0d8399504551b920970d80af83bfb9c216e8082a15491921935d54" -SRC_URI[tzdata.sha256sum] = "b26882805f26aac59d5b222978e6580484b834ccdc98be89df2f05a6dc53a652" +SRC_URI[tzcode.sha256sum] = "5a18da01393679ef2559214dc687563f7f3d05691f6f58b7fbc0166f3e796cd6" +SRC_URI[tzdata.sha256sum] = "01b4a91cec5167ed48c11e8ab78f2048cead78ce94b0cafcad0ae8c5a3044d3d" From patchwork Tue Nov 24 22:51:28 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 105468 X-Patchwork-Delegate: yoann.congal@smile.fr Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.30987.1795560753322669229 for ; Tue, 24 Nov 2026 14:52:33 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=FPiPO+0c; spf=pass (domain: smile.fr, ip: 209.85.221.51, mailfrom: yoann.congal@smile.fr) Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-48dee593f18so4795443f8f.3 for ; Tue, 24 Nov 2026 14:52:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560751; x=1796165551; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=V4qhzU+pWMKCBuaQUbLuGT0oU0qHdQeGVm2dZmP33Ck=; b=FPiPO+0c4tz2oX+ZxESObXpWrYIfTRUqXK7v6C9u8I7XPBGh8RMXIEGglb/Igtc3bw 9DphLFVPVlIzcYHeSp8932/FLNxmguRJyuZl/TcoSe3EKzg/Hwi1Mfmwzxh+F+FnIaKt ZwhOgrLRbpknQY7w983y/4RvCgw2Qk+41TmgxpFLwNY8ykBUthIkSOb8QbdiPKUIHX2x IFskLl3gm4w6+DB0d5T0L7kI+7hnhDrHQfZs4hQ2Kx3XSDH0bUPfS5dSzhgV5cc8iiRM DMGCrHYhzN5c5BiUj9FxS+RikY20xi08/zfrHCCtwx8MEqKw/pcwFgXvEOxA9VD6B67Z FICw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560751; x=1796165551; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=V4qhzU+pWMKCBuaQUbLuGT0oU0qHdQeGVm2dZmP33Ck=; b=szMdt/9mi7/RBFwYLPP0ExWm18/82XDvjUHSU11aC2ktIV7pdnt+Se/xOfcHNaQokd ymnJq2RfbrZK0AfoWe64kJBnW8vUoGBl5KnrtcJGdGDfe60+SK/ioAaZ0adoX0qltOy5 9VD5MoigbYTaERs9j37M2vxrBcVfcmuPLmSYbxFlhGQg+3XJrFeayodI2vvCnNTM0bO+ LdiKmuSNuoGAgxF2ZDU4ZnDoSzw6cMjkWuPOTHUYO+weChDrKcONDixPZGWXFqH+mT2t tNW183pluNOoSTlNw04OTm+TTsj0wN18GzHfC2bw3YESiGZWL7b12VcqO0S+qe0kSA7M 1QDg== X-Gm-Message-State: APuU4Z9RPJ3pWsri/wZit5cbUjrboaJZwG0LK1GMGlNx0ZkJSZ/nBR/5 H4eEOl3Q4jjuTaRfmuWUCuv9bKPhfeAEwAZ0/ZclzEBnStDsqgOV2JUSNJ14yU7KWL0lDzNPOIY bOMA2e2o= X-Gm-Gg: AZFdTZcWLYeVuZrsKivCvFT+cFqd4Zp+fPkcTn8TF7NAyuRwiTzXwErbkoJpSpKgxaQ tiuohJOlc+Vdj93c6U7bqFv27Gn0KDE4GyguiZ1AvVdjhThgx9EdtnzNfeyuQ5CQBYKiZuPtH0l DtWyh6eEdDPYdb4c+2Ue9NAI3h9AKf+BbZmoEoRDo17XVQHMWB8brnqKpj5/+PVGgJZ0MKeCvLb Xn227aI183cfi+r4pMfrbYSD4hhLYL34B47YRiU50Nm0vVEEYjsFTjm//HIOM9HsKrRvgQ5ay5q XH016HC8X/B1ay6xfiVqsq5MuhMf60ajuLq/K9pgrNDxY3nvIQ3Cj42lzv1AEJfxObw/wXmMpib A2IqcTrBb+vhbbjzdikGeLJOPeISQ6STf6j3bT6UlW5CME0MewLNFp9GWm+4nqgjB1vvKqNtuU/ Nu+PjehiawmP45F6WmOBnxbefrC2OWucJT2uaF3aZd4G8UOLONrQksiyPu2hNBArtg5v8yakNuv a9xFw12PjgnMW19e5FSbBdWIQ/B3pcMg5PyjNKqF8ySax3FOISqFgsrYUFpHBFjnQqilih9QqS5 luIU/EnYGWnQwwu7UcFmLIv1/2y4dx5sNn3RdEK67Ey14IRjMJ/X6dLYJE0gNwQvNzwxtCM4dWD GACAuRx16RqJx0E3rVTVofESZ1XdL X-Received: by 2002:a05:6000:4617:b0:48b:9d2:1a6a with SMTP id ffacd0b85a97d-4abab5ea335mr32184708f8f.1.1795560751590; Tue, 24 Nov 2026 14:52:31 -0800 (PST) Return-Path: Received: from FRSMI25-LASER.home (2a01cb001331aa00a2e4fb7b0d887544.ipv6.abo.wanadoo.fr. [2a01:cb00:1331:aa00:a2e4:fb7b:d88:7544]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6bb989e3sm30462488f8f.52.2026.11.24.14.52.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:31 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][blacksail 21/21] python3-certifi: correct license to MPL-2.0 Date: Tue, 24 Nov 2026 23:51:28 +0100 Message-ID: <28fa337f9075c8f991441e713cbf5a56d66737af.1795560335.git.yoann.congal@smile.fr> X-Mailer: git-send-email 2.55.0 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 24 Nov 2026 22:52:38 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251101 From: Anders Heimer Correct the LICENSE variable to match upstreams MPL 2.0. The LICENSE file and checksum remain the same. License-Update: Change declared license from ISC to MPL 2.0 Reviewed-by: Henrik Nilsson Signed-off-by: Anders Heimer Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie (cherry picked from commit 6b270958cab94f1fa117b5eee36157cf5b14d3cf) Signed-off-by: Yoann Congal --- meta/recipes-devtools/python/python3-certifi_2026.10.19.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-devtools/python/python3-certifi_2026.10.19.bb b/meta/recipes-devtools/python/python3-certifi_2026.10.19.bb index 02cdbe9a08b..e65e5ede605 100644 --- a/meta/recipes-devtools/python/python3-certifi_2026.10.19.bb +++ b/meta/recipes-devtools/python/python3-certifi_2026.10.19.bb @@ -4,7 +4,7 @@ Python code. This is useful for verifying HTTP requests, for example. This is t which ships with the Requests codebase, and is derived from Mozilla Firefox's canonical set." HOMEPAGE = "http://certifi.io/" -LICENSE = "ISC" +LICENSE = "MPL-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=11618cb6a975948679286b1211bd573c" SRC_URI[sha256sum] = "035c1e85572b141bf1c3a3eff0e33a8eb74917522f2559075ff8d2fea780a1ae"