From patchwork Tue Nov 24 22:52:18 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 105478 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.msgproc02-g2.31030.1795560765234323903 for ; Tue, 24 Nov 2026 14:52:45 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=n0frj+NP; 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-49412eb1474so3286206f8f.3 for ; Tue, 24 Nov 2026 14:52:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560763; x=1796165563; 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=8+0TJagybpw9tY8LL4cKibyk1q2agjzPjuaj0dTZnd8=; b=n0frj+NPrO+dq3UUwS0dgx1NX0AM8rXphEEpArX36fqMXLNxMPfwQzrb/5K2f+YmHg zZSdG3H0n5BeCRWstxU/ptWfyez5zjOiN+4qWGJ957c5b4qW3sSCEWbXlge5qt0OTTTs +3nrA9KVLnYzqO0OYh0gtIOAQRRwG7PYVUPSS/Y7eWwKsMUkJcnfgRjYgTjJQyc0JPoB dS6vmsKtYp+3silsG+yU1ppAMzhalz5aEFSZO9oukJ4plDYzssK8+xjdlvgTtZ4wWc7X ByRiObfk7zvVJT1ddE3NYqvgY+/KGUaB+PgK2ZizLk5aTTFQgqHnF0XmESffDVQuIrap 4/Xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560763; x=1796165563; 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=8+0TJagybpw9tY8LL4cKibyk1q2agjzPjuaj0dTZnd8=; b=Rtp+rQ0FaK9wfpFqnjmkCHQ6I79wN38GtFeqI8OWZCmiYllYHcCU2mKu3f/E53zNl2 2euRjtzbHG2LtKqcABjJyZl4+YkSMdH9XL0QXTNo/dTYP4aw9ATC8JzSAqAqMg3cG/N9 hUqo21dS5MF4wl6fkssXVPlwwqpknMVKYahSqMCXTEHfKYNCFHv+JitZwn16hn667sb8 bXjdbnyD8iyv0+fEHdC2b+PXvFplUiK+pcPKqlwP+24cwf6pqolBfze4DouFXNG7trAV FccLKRTk9m0KQhykzQjQPZrTs6CELm36L9J78s8uvJKfAXBeLa+UgutHtJ3MG2o76DgE aJSQ== X-Gm-Message-State: APuU4Z/AVid2sAXlBi9NRzGGLQ1JF19vr+H1E6xL6zITOftjGQNAkT5o DwgdHyJ06fAUcbCkDku0G9l/afiextAVRfAncOUXxLVf2TCKoAalHiMdEvfAns/brqJq4TlCZGA eYkTZ2nk= X-Gm-Gg: AZFdTZcnsJ1FWdIhy0hXFfdliD3Wsl2HvTY0XBvg5QKh/Cx2rHmPVxfPHqsDJ3Dvilo khjez29uVZ6SQcgco8pYXwkEL6YgjbDmuhesGwfcCViktuF6Bm+0V79j1MritM38E/NKgahFWpo 06pfk3yGbj1dCPKgu/lQ0k+e0YqxzTJLvErEaM9+Y1IPZRRLTqlayPeFSkAUQQ38P2LFnWyoag7 3dyiece0xTovfeTN01V8XQTk2s06hnoIvZ79HBzj1jeLT3ZkiiaJh+qakIKLN424xv91dcLeGhy AYgmUaq7Z99UHFZJW8HOlJl+OS77wFahjEeC+zXgt0riDNyoU+d6YK4DyX8XEh1tD5lSp+AUTMd J8ZBvpioekgozjzGguXcBaWWqFogA8jFVieKW3G4kxfz+NQkQNvJ6TMcN37mthua1AmFpc6EAVK fd6ujMP6C+kUnOlTVhmwm5O6RuUDVfd6L4vouIzLSwqoeuZ3PrEL0hnv5DDx0LF7eEwUqcr4BuD 3VW9wazmkoh8rmW9J2etXL1GfBEor0g7r1Y1DIndQUwVg8Lz/Isf7E4PMJL9NJibTr5EybnBunO Nsmwp2SfhmPq3O9zScBC/Qi56e3qbjLIspL2DVtOZdLsD+xRXscZjxfVpIBb+NQhl8S+juIIXve HRH96es3EQXNeoNUciMNDlAzy4ze4 X-Received: by 2002:a05:6000:490f:b0:492:a72:9303 with SMTP id ffacd0b85a97d-4abb47b242fmr30876478f8f.22.1795560763269; Tue, 24 Nov 2026 14:52:43 -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-4ad644140b5sm27446707f8f.17.2026.11.24.14.52.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:43 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][wrynose 01/21] bison: Fix CVE-2026-56390 Date: Tue, 24 Nov 2026 23:52: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:49 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251103 From: Yogita Urade This patch applies the upstream fix as referenced in [2], using the commit shown in [1]. [1] https://cgit.git.savannah.gnu.org/cgit/bison.git/commit/?id=8d101c19d4d9aaedf83a448c925513742d4efcf0 [2] https://nvd.nist.gov/vuln/detail/CVE-2026-56390 Signed-off-by: Yogita Urade Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie (cherry picked from commit eefec9cde464081f5943f4ad5c3cb688a87eff1f) Signed-off-by: Yoann Congal --- .../bison/bison/CVE-2026-56390.patch | 233 ++++++++++++++++++ meta/recipes-devtools/bison/bison_3.8.2.bb | 1 + 2 files changed, 234 insertions(+) create mode 100644 meta/recipes-devtools/bison/bison/CVE-2026-56390.patch diff --git a/meta/recipes-devtools/bison/bison/CVE-2026-56390.patch b/meta/recipes-devtools/bison/bison/CVE-2026-56390.patch new file mode 100644 index 00000000000..f32aa8a98cb --- /dev/null +++ b/meta/recipes-devtools/bison/bison/CVE-2026-56390.patch @@ -0,0 +1,233 @@ +From 8d101c19d4d9aaedf83a448c925513742d4efcf0 Mon Sep 17 00:00:00 2001 +From: Paul Eggert +Date: Thu, 23 Apr 2026 12:41:25 -0700 +Subject: [PATCH] bison: tighten up output file names + +Problem reported by Michał Majchrowicz. +* src/parse-gram.y: Do not allow '/' in %header and %output directives. + +CVE: CVE-2026-56390 +Upstream-Status: Backport [https://cgit.git.savannah.gnu.org/cgit/bison.git/commit/?id=8d101c19d4d9aaedf83a448c925513742d4efcf0] + +Backport Changes: +- Adapted generated src/parse-gram.c to the Bison 3.8.2 source tree. +- omitted upstream generator-version/copyright metadata and + src/parse-gram.h-only metadata changes while retaining the + security-relevant parser changes. + +(cherry picked from commit 8d101c19d4d9aaedf83a448c925513742d4efcf0) +Signed-off-by: Yogita Urade +--- + THANKS | 1 + + doc/bison.texi | 2 ++ + src/parse-gram.c | 56 ++++++++++++++++++++++++++++++++---------------- + src/parse-gram.y | 31 ++++++++++++++++++++++----- + 4 files changed, 67 insertions(+), 23 deletions(-) + +diff --git a/THANKS b/THANKS +index be743a23..0e481561 100644 +--- a/THANKS ++++ b/THANKS +@@ -128,6 +128,7 @@ Michael Catanzaro mcatanzaro@gnome.org + Michael Felt mamfelt@gmail.com + Michael Hayes m.hayes@elec.canterbury.ac.nz + Michael Raskin 7c6f434c@mail.ru ++Michał Majchrowicz mmajchrowicz@afine.com + Michel d'Hooge michel.dhooge@gmail.com + Michiel De Wilde mdewilde.agilent@gmail.com + Mickael Labau labau_m@epita.fr +diff --git a/doc/bison.texi b/doc/bison.texi +index a559649c..44a4e159 100644 +--- a/doc/bison.texi ++++ b/doc/bison.texi +@@ -5973,6 +5973,7 @@ Introduced in Bison 3.8. + + @deffn {Directive} %header @var{header-file} + Same as above, but save in the file @file{@var{header-file}}. ++The @var{header-file} name should not contain slashes. + @end deffn + + @deffn {Directive} %language "@var{language}" +@@ -6026,6 +6027,7 @@ file, treating it as an independent source file in its own right. + + @deffn {Directive} %output "@var{file}" + Generate the parser implementation in @file{@var{file}}. ++The @var{file} name should not contain slashes. + @end deffn + + @deffn {Directive} %pure-parser +diff --git a/src/parse-gram.y b/src/parse-gram.y +index 15180cb5..114c5c44 100644 +--- a/src/parse-gram.y ++++ b/src/parse-gram.y +@@ -95,8 +95,11 @@ + string from the scanner (should be CODE). */ + static char const *translate_code_braceless (char *code, location loc); + ++ /* Is FILE a valid output file name? */ ++ static bool valid_output_file_name (char const *file); ++ + /* Handle a %header directive. */ +- static void handle_header (char const *value); ++ static void handle_header (location const *loc, char const *value); + + /* Handle a %error-verbose directive. */ + static void handle_error_verbose (location const *loc, char const *directive); +@@ -337,7 +340,7 @@ prologue_declaration: + muscle_percent_define_insert ($2, @$, $3.kind, $3.chars, + MUSCLE_PERCENT_DEFINE_GRAMMAR_FILE); + } +-| "%header" string.opt { handle_header ($2); } ++| "%header" string.opt { handle_header (&@2, $2); } + | "%error-verbose" { handle_error_verbose (&@$, $1); } + | "%expect" INT_LITERAL { expected_sr_conflicts = $2; } + | "%expect-rr" INT_LITERAL { expected_rr_conflicts = $2; } +@@ -356,7 +359,15 @@ prologue_declaration: + | "%name-prefix" STRING { handle_name_prefix (&@$, $1, $2); } + | "%no-lines" { no_lines_flag = true; } + | "%nondeterministic-parser" { nondeterministic_parser = true; } +-| "%output" STRING { spec_outfile = unquote ($2); gram_scanner_last_string_free (); } ++| "%output" STRING ++ { ++ char *file = unquote ($2); ++ if (valid_output_file_name (file)) ++ spec_outfile = file; ++ else ++ complain (&@2, complaint, _("invalid %%output file name ignored")); ++ gram_scanner_last_string_free (); ++ } + | "%param" { current_param = $1; } params { current_param = param_none; } + | "%pure-parser" { handle_pure_parser (&@$, $1); } + | "%require" STRING { handle_require (&@2, $2); } +@@ -952,14 +963,24 @@ add_param (param_type type, char *decl, location loc) + } + + ++static bool ++valid_output_file_name (char const *file) ++{ ++ return !strchr (file, '/'); ++} ++ ++ + static void +-handle_header (char const *value) ++handle_header (location const *loc, char const *value) + { + header_flag = true; + if (value) + { + char *file = unquote (value); +- spec_header_file = xstrdup (file); ++ if (valid_output_file_name (file)) ++ spec_header_file = xstrdup (file); ++ else ++ complain (loc, complaint, _("invalid %%header file name ignored")); + gram_scanner_last_string_free (); + unquote_free (file); + } +diff --git a/src/parse-gram.c b/src/parse-gram.c +index 3c1d8229..7f6deb33 100644 +--- a/src/parse-gram.c ++++ b/src/parse-gram.c +@@ -276,8 +276,11 @@ typedef enum yysymbol_kind_t yysymbol_kind_t; + string from the scanner (should be CODE). */ + static char const *translate_code_braceless (char *code, location loc); + ++ /* Is FILE a valid output file name? */ ++ static bool valid_output_file_name (char const *file); ++ + /* Handle a %header directive. */ +- static void handle_header (char const *value); ++ static void handle_header (location const *loc, char const *value); + + /* Handle a %error-verbose directive. */ + static void handle_error_verbose (location const *loc, char const *directive); +@@ -663,19 +666,19 @@ union yyalloc + /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ + static const yytype_int16 yyrline[] = + { +- 0, 310, 310, 319, 320, 324, 325, 331, 335, 340, +- 341, 342, 343, 344, 345, 350, 355, 356, 357, 358, +- 359, 360, 360, 361, 362, 363, 364, 365, 366, 367, +- 368, 372, 373, 382, 383, 387, 398, 402, 406, 414, +- 424, 425, 435, 436, 442, 455, 455, 460, 460, 465, +- 465, 470, 480, 481, 482, 483, 488, 489, 493, 494, +- 499, 500, 504, 505, 509, 510, 511, 524, 533, 537, +- 541, 549, 550, 554, 567, 568, 573, 574, 575, 593, +- 597, 601, 609, 611, 616, 623, 633, 637, 641, 649, +- 655, 668, 669, 675, 676, 677, 684, 684, 692, 693, +- 694, 699, 702, 704, 706, 708, 710, 712, 714, 716, +- 718, 723, 724, 733, 757, 758, 759, 760, 772, 774, +- 798, 803, 804, 809, 817, 818 ++ 0, 314, 314, 323, 324, 328, 329, 335, 339, 344, ++ 345, 346, 347, 348, 349, 354, 359, 360, 361, 362, ++ 363, 372, 372, 373, 374, 375, 376, 377, 378, 379, ++ 380, 384, 385, 394, 395, 399, 410, 414, 418, 426, ++ 436, 437, 447, 448, 454, 467, 467, 472, 472, 477, ++ 477, 482, 492, 493, 494, 495, 500, 501, 505, 506, ++ 511, 512, 516, 517, 521, 522, 523, 536, 545, 549, ++ 553, 561, 562, 566, 579, 580, 585, 586, 587, 605, ++ 609, 613, 621, 623, 628, 635, 645, 649, 653, 661, ++ 667, 680, 681, 687, 688, 689, 696, 696, 704, 705, ++ 706, 711, 714, 716, 718, 720, 722, 724, 726, 728, ++ 730, 735, 736, 745, 769, 770, 771, 772, 784, 786, ++ 810, 815, 816, 821, 829, 830 + }; + #endif + +@@ -2217,7 +2220,7 @@ yyreduce: + + case 9: /* prologue_declaration: "%header" string.opt */ + #line 340 "src/parse-gram.y" +- { handle_header ((yyvsp[0].yykind_75)); } ++ { handle_header (&(yylsp[0]), (yyvsp[0].yykind_75)); } + #line 2222 "src/parse-gram.c" + break; + +@@ -2289,7 +2292,14 @@ yyreduce: + + case 20: /* prologue_declaration: "%output" "string" */ + #line 359 "src/parse-gram.y" +- { spec_outfile = unquote ((yyvsp[0].STRING)); gram_scanner_last_string_free (); } ++ { ++ char *file = unquote ((yyvsp[0].STRING)); ++ if (valid_output_file_name (file)) ++ spec_outfile = file; ++ else ++ complain (&(yylsp[0]), complaint, _("invalid %%output file name ignored")); ++ gram_scanner_last_string_free (); ++ } + #line 2294 "src/parse-gram.c" + break; + +@@ -3290,14 +3300,24 @@ add_param (param_type type, char *decl, location loc) + } + + ++static bool ++valid_output_file_name (char const *file) ++{ ++ return !strchr (file, '/'); ++} ++ ++ + static void +-handle_header (char const *value) ++handle_header (location const *loc, char const *value) + { + header_flag = true; + if (value) + { + char *file = unquote (value); +- spec_header_file = xstrdup (file); ++ if (valid_output_file_name (file)) ++ spec_header_file = xstrdup (file); ++ else ++ complain (loc, complaint, _("invalid %%header file name ignored")); + gram_scanner_last_string_free (); + unquote_free (file); + } + +-- +2.44.4 diff --git a/meta/recipes-devtools/bison/bison_3.8.2.bb b/meta/recipes-devtools/bison/bison_3.8.2.bb index 03d3cffe2ae..339a9d13364 100644 --- a/meta/recipes-devtools/bison/bison_3.8.2.bb +++ b/meta/recipes-devtools/bison/bison_3.8.2.bb @@ -13,6 +13,7 @@ SRC_URI = "${GNU_MIRROR}/bison/bison-${PV}.tar.xz \ file://autoconf-2.73.patch \ file://add-with-bisonlocaledir.patch \ file://CVE-2026-56389.patch \ + file://CVE-2026-56390.patch \ " SRC_URI[sha256sum] = "9bba0214ccf7f1079c5d59210045227bcf619519840ebfa80cd3849cff5a5bf2" From patchwork Tue Nov 24 22:52:19 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 105480 X-Patchwork-Delegate: yoann.congal@smile.fr Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.30988.1795560765520283712 for ; Tue, 24 Nov 2026 14:52:45 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=eKWq2oSZ; spf=pass (domain: smile.fr, ip: 209.85.221.41, mailfrom: yoann.congal@smile.fr) Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-48dfc0421d9so4782629f8f.1 for ; Tue, 24 Nov 2026 14:52:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560764; x=1796165564; 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=aMcW3NJ4OMMIDk9Oj5zaSztK7ul1ano941wk5jrHVyk=; b=eKWq2oSZi69P4VqcY8mT6on9a7Nfg2gZzEV1bVxDHcPwSP/bn9RAzNkMjX3sO0nHGt 3EYCorl6+OJHOHzInSwv4zTrdpOyidwAsf8EZEaiIhJ/FpoaZ49TLhk9sOjO4ZK9b9yR wov1C3XkGENr6KNWeEL5Jv+lybpXoBKdzQ/44zE8+rL41zYvIIswz+AOVMBEMD+1Y7f8 NCjJsYkLdIGDh0qkAAKzqRtRVubsYuBOvUgAUMM3NiW9yjkfuVpmnE4AxlgyESc/5zJl 9CPifcTdAi9zAsccJYD0CkTKhrC2blF8CV9+dAQz8poGo8zux7SILPbVBuuMdcMj7/Pu g3Ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560764; x=1796165564; 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=aMcW3NJ4OMMIDk9Oj5zaSztK7ul1ano941wk5jrHVyk=; b=Hrdr0vvRZvrMmubrHefPhVbO4W4VKilFXXzNQMh5mWVqNwqXRmbiOHkmsJvOCWXF7d dy5vkDmCR8+PlBwgueaRA/BhcUek+YYrTUmQQiVBEzgrj4GGJgEwlZRMbefRsqcs/VT0 0jMbK9a79bzbWV/iI15or60Yj0bX96/6rVR/wydTmIhZLMQM+i7pMlQyXvoge7xcOhoP aYkzAQQBNQ/x3GLNUrBJusjGbvVDVrzWJiMRbWb5qdRziTzXeqEz8h1J1AiIFqJfaE2o f/hEE24Ri9bWOx90PaiJ38e7kTh8QOeLRjveLlmzmAazs7S9QnE3mJSck+TkVr5Zk0QD wYxg== X-Gm-Message-State: APuU4Z9oJtL38yQiuDwJrnLuR6R4f1E/JqLsMOaZgCCekB777ZsNPaGJ SbDG3RZ/U7nrrTBZ35ueWFytUNkW6guGPPNXIkG4BV7gKQCEYohCTQZOa2A9LAICnshi5ggYZPF bGQw/05Y= X-Gm-Gg: AZFdTZdEbitOrXV4YzgJFeOmQCn3aV9HbIAyZW5RtZ7dU/xdP8QphmX8vf00dMFcCDz k/sDzVQ2NwmE7sKIug87e6sB9byQKtwLLQwmeRu3ulzlQI3+sX7zPRFJl+l3yyjc9prGaow7z0Q bUUOTcBCfdao1K4Op5mQN/pW/svNvMiYJ+PhFqglG2vpmMcr/iYUMs1E2q0G9u6WlSF1Kypsx7I +PM6cJW3LhvUr5dZs94G9cGIhXh8GW9Jf6gUsjHK1uEK4msiwMeOQ8yHEiLH4Dbguc14ajtiW1i genwsVpIGi5coIrFZVXpL3vUHNeZ4zRxD2LacxpTYUFBBVCjhmrUMFVDeP/plX98lnsbf5JQJuQ srA/XwyzxnQMrO3NlELxYx/ZBYQjtFu2ZCpITPvBmyrfPJOVrPI0qL9eL655oi3XHstNiDH9K1e qeOeEpqcoF0yxtRH14NKCqgou2kBJNmHbNSb0jk6w065Dm2Iz6qaZjkSOfbvDJ2TAJaxsMImd81 2dNHQydCro0iRwLqMGIu+eFa47acSto/KCDteFpwens2sfFrzoNAr+GkRh92OxU5WwcR3I/Z4JU yrWN3nJJdjqdxxVPUhGP1u4fIzzJApLor8SNGqTYcW3RzETs/7nSGsHm1EOfL9pF+9StXrLMWK4 7FxziF2cQkoVfnXC41h9jOA61ieI5 X-Received: by 2002:a05:6000:4a14:b0:4a6:9f2f:414b with SMTP id ffacd0b85a97d-4abb71cbc15mr29711510f8f.32.1795560763726; Tue, 24 Nov 2026 14:52:43 -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-4ad644140b5sm27446707f8f.17.2026.11.24.14.52.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:43 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][wrynose 02/21] glibc: stable 2.43 branch updates to 124e9adcd4 Date: Tue, 24 Nov 2026 23:52:19 +0100 Message-ID: <079c5e3000f990bc6541d0e2dbfec8ea3655b1b5.1795560372.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:49 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251104 From: Hetvi Thakar Update SRCREV from 562cd7badd to 124e9adcd4 on release/2.43/master. This pulls eight stable maintenance commits, including fixes for: CVE-2026-84243: LANGUAGE directory traversal in gettext CVE-2026-100290: double free after regex allocation failures CVE-2026-115819: extra NUL byte in wide scanf conversions Record these CVEs as stable backports because the recipe version remains 2.43+git and version-based matching cannot identify the fixes. Upstream: https://sourceware.org/git/?p=glibc.git;a=commit;h=124e9adcd407737f0462aa4ba38a37678e8941ec Signed-off-by: Hetvi Thakar Signed-off-by: Yoann Congal --- meta/recipes-core/glibc/glibc-version.inc | 2 +- meta/recipes-core/glibc/glibc_2.43.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 e8e6bb665ae..ec079d9127a 100644 --- a/meta/recipes-core/glibc/glibc-version.inc +++ b/meta/recipes-core/glibc/glibc-version.inc @@ -1,6 +1,6 @@ SRCBRANCH ?= "release/2.43/master" PV = "2.43+git" -SRCREV_glibc ?= "562cd7badd3f9edd74b68316439f910f6f7c4c1f" +SRCREV_glibc ?= "124e9adcd407737f0462aa4ba38a37678e8941ec" SRCREV_localedef ?= "cba02c503d7c853a38ccfb83c57e343ca5ecd7e5" GLIBC_GIT_URI ?= "git://sourceware.org/git/glibc.git;protocol=https" diff --git a/meta/recipes-core/glibc/glibc_2.43.bb b/meta/recipes-core/glibc/glibc_2.43.bb index c962171cf3a..5d2344389ff 100644 --- a/meta/recipes-core/glibc/glibc_2.43.bb +++ b/meta/recipes-core/glibc/glibc_2.43.bb @@ -25,6 +25,7 @@ CVE_STATUS_STABLE_BACKPORTS = "CVE-2025-15281 CVE-2026-0861 CVE-2026-0915 CVE-20 CVE-2026-5435 CVE-2026-5450 CVE-2026-5928 CVE-2026-6238 CVE-2026-6791 \ CVE-2026-6368 CVE-2026-19499 CVE-2026-77117 CVE-2026-80489 CVE-2026-18374 CVE-2026-8674 \ CVE-2026-89092 CVE-2026-97399 CVE-2026-19542 CVE-2026-86805 CVE-2026-95818 \ + 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:52: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: 105481 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.msgproc02-g2.31031.1795560766072188423 for ; Tue, 24 Nov 2026 14:52:46 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=RVUIR3V6; 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-4a7b8abe209so3907847f8f.0 for ; Tue, 24 Nov 2026 14:52:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560764; x=1796165564; 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=FuaBGKxOv3Fg73XFVGSfXXc7VLQsaznGngTgVN6NsuM=; b=RVUIR3V6fsVrpBILj3VHsTYZmaS8T5ZwELKxkCRc5SJj/p22LImDSlVBEIQJ6k8wel TN8IinfeiVrGwdK54vSRKlAaB7FJ9UxT9ggOQpOy9OlE1PeizeJA3f883vrrVlXdaiJ1 hEL5rujSGWMIbsKFgeDZyffX9cSd0r3tRJ+DV3RbSCwUqeO9g+BugqbrVF+ikpjVytIR ZL8mu6dO0iwYRKsCqJRkP4HrWoDd1k51s9V/yyfuhTUHa+iOS4zj4S4j3/3ZhVbeVQFq EQVbASyG/oC0CeqfKxFmcyFX00MGt7V8FObB/FcrGmOxQ6pcqcIQ11bgiKH3fhn8MQkH u9lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560764; x=1796165564; 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=FuaBGKxOv3Fg73XFVGSfXXc7VLQsaznGngTgVN6NsuM=; b=obXqpyxU/dRJsCWjyMa++MHs4F33saJKasCOCddmDwCdTZ/o6nNa4cqt44eC2A/cO6 rFn9fIJKn8/AvYF4qLaGYclwHxAZbgNdsFgBL/FZXQONc3t7hzFBYTH8LywGAVyjdy6C HDDkq/uNr3oEpZamOIYMxCiXQPP5IOPdB3MhQHm/fFJg2KVgKdbfOHh+osNl/XywONBE ty542Gl05CHXLunKO34vSRydTV/01jOn6nrLMYoLU0rAIGPFfXf61jWe7ifGOplOlLU5 /hE0kKTcvyYgVoAOKR/ruAu3fyhDt+YaRY00a53thn0vDT4xa9kAAZCz3v7HqXKEKW8S 1qrg== X-Gm-Message-State: APuU4Z/C1q1s9RUhPhc2OLcjxnl7yOllf4/IecsML3/V9DhhHHAMGW/f Bx7NKMJqzg0ZAxySjJFLtdbwhoQ/aio3wl637ethP6LibNGvzVpRXz45Sv0VXgJAaVwE5H5fcyq JQTM+g7I= X-Gm-Gg: AZFdTZfGVkqK8uKqLu6WxbvBTEECjs+GcsvAWnDjytGnQiZXiDz4fY1ZWILf+gH4Adf vlkg5sMAFcvgJ6vxh3k4517Kauc4eRwFs8SlbBULjD+yLzgysntdF25Di2LO1aM/32LUFxwDo56 bUPgpn0neUzqBZaR5pH71yfMKTfb47R6ClWGKwrtl3eCpPUPoPHSy39RF5Xk08JGQ7t3K2iwqej i+YCGajyAAGdDgtC9AShtAQ9Os7+8jICE2ORqUNfoe2zuiKO9nU2LW1BZ1xIrHuuvmWmvQkHjga wy9O/qVpQRwIXDwUFAGTIPviPnFlzH0iXzu0Rol35fqaztYggaaWCnJ4KXXIt31LDx+FDTpqyny A1fqP5WDkFK6XPYLaRCs/zSbBE3538ugSOMwuJaYYifN7dqaFTU2u2o01VlRk7qh2masWOLsKa2 XemoZ7FbDEzjVkOKhqPrrtQVWbw13ibWdX9Bgz8a7jZJ67NzgPIsofPdZlfq0W0gZkf2G29f9n1 K82kf0RBUNUufGezX72/Cv2MADpg8YOmGjIh6hB+jXQ4NhbYH78GRatUmcMBwv3nV7XOvS0hhhb Q1MZ1ISs7+H2hadysdeOFI2cajim+82n4YxVjbJaotIL/qQOaZQu0Rbwq2uHMPuupfrjCG8b6Un Z7ku07YATq2VcOLkOpzDIgTL/kalo X-Received: by 2002:a5d:6f1b:0:b0:4b9:15d1:46c9 with SMTP id ffacd0b85a97d-4b915d146fbmr1661059f8f.5.1795560764153; Tue, 24 Nov 2026 14:52:44 -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-4ad644140b5sm27446707f8f.17.2026.11.24.14.52.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:43 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][wrynose 03/21] sqlite3: Fix CVE-2026-119377 Date: Tue, 24 Nov 2026 23:52:20 +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:50 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251105 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 | 59 +++++++++++++ .../sqlite/sqlite3/CVE-2026-119377_p1.patch | 52 +++++++++++ .../sqlite/sqlite3/CVE-2026-119377_p2.patch | 51 +++++++++++ meta/recipes-support/sqlite/sqlite3_3.51.3.bb | 4 + 5 files changed, 252 insertions(+) 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..7fdcc9b99d6 --- /dev/null +++ b/meta/recipes-support/sqlite/sqlite3/CVE-2026-119377-dependent_p1.patch @@ -0,0 +1,86 @@ +From fcb432b9952e9ced22fbfaa1ea0bbc7f54c78214 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 2f4b77429f..46dd437d82 100644 +--- a/sqlite3.c ++++ b/sqlite3.c +@@ -109962,9 +109962,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 +@@ -124299,8 +124297,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, +@@ -124314,7 +124318,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; + } + +@@ -124339,6 +124343,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..e2f83209634 --- /dev/null +++ b/meta/recipes-support/sqlite/sqlite3/CVE-2026-119377-dependent_p2.patch @@ -0,0 +1,59 @@ +From e6920a57640e0c3d55c74a3dd850516f6a65d838 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 | 15 ++++++++++++--- + 1 file changed, 12 insertions(+), 3 deletions(-) + +diff --git a/sqlite3.c b/sqlite3.c +index 46dd437d82..8370952d5a 100644 +--- a/sqlite3.c ++++ b/sqlite3.c +@@ -109880,7 +109880,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) ); +@@ -109962,8 +109962,17 @@ lookupname_end: + 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 +-- +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..1cecb494169 --- /dev/null +++ b/meta/recipes-support/sqlite/sqlite3/CVE-2026-119377_p1.patch @@ -0,0 +1,52 @@ +From aa67fa2ce1fa30fc1e13b169419569b487a4df22 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 8370952d5a..fc32ca3c8f 100644 +--- a/sqlite3.c ++++ b/sqlite3.c +@@ -109964,13 +109964,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..743e6ba8b18 --- /dev/null +++ b/meta/recipes-support/sqlite/sqlite3/CVE-2026-119377_p2.patch @@ -0,0 +1,51 @@ +From 23726411060f3440cdc3acae57d27e79d34bb116 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 fc32ca3c8f..bb908566d4 100644 +--- a/sqlite3.c ++++ b/sqlite3.c +@@ -109964,14 +109964,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.51.3.bb b/meta/recipes-support/sqlite/sqlite3_3.51.3.bb index 2b0a9c0e4d7..2f821769135 100644 --- a/meta/recipes-support/sqlite/sqlite3_3.51.3.bb +++ b/meta/recipes-support/sqlite/sqlite3_3.51.3.bb @@ -9,4 +9,8 @@ SRC_URI[sha256sum] = "81f5be397049b0cae1b167f2225af7646fc0f82e4a9b3c48c9ea3a533e SRC_URI += "\ file://0001-Add-option-to-disable-zlib.patch \ file://CVE-2026-11822_CVE-2026-11824.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 \ " From patchwork Tue Nov 24 22:52: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: 105482 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.31032.1795560766490323516 for ; Tue, 24 Nov 2026 14:52:46 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=LIe14ZHs; 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-49a92144733so2502808f8f.0 for ; Tue, 24 Nov 2026 14:52:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560765; x=1796165565; 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=86e3ZPwAfToFVSutqegtxi+Akwjm9Ga8SgZEn37MujA=; b=LIe14ZHs9ILoIyB/C4IOP94s99jP4xARA5floz3FJ8P8fsOyfIN1SXEFkSrGxRHdld 0OegCXyUQHD0MVo1LlnnQ36F8KvcESx1n7/HwUILii2yox7iiT3N6z1I8IrNTxVUoZzA piM+NG+wyipXJZr9F+Ws8X4FvmTIklVxfPFsIkCZ3Q8UnE4+iI8rk9DqdRDYQ3f0YO+d Wb7TZIq2flDr+DP6+ysIOSXW8g+F7XffQY9oq+tGRUBI7EeWov/8MtPrcTBkKjdBYzUq t0siQd7leXslSGJYrLZPLp+BH0/5x52GM4faUb1dOUlnxeAW7QEWtL5Jv9ZTMaIsH4FI KZ1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560765; x=1796165565; 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=86e3ZPwAfToFVSutqegtxi+Akwjm9Ga8SgZEn37MujA=; b=SwbRIm115BJprTC2qaZcx5TLlTu0mrekTOkt1fqLmtMFoEu7KxLISwLSiOuewtz+kl 9e9Ji+9aYVqMe9FzE2pkcIXBpeVkAmrHJ/JZ6VJwAlCfYzab3VjObRLisTBUy14Gh7zw cwetML7QuJBa4jjjElMTC1fC04+pUoTuoBJZOb/e73SShmG9M64JJRy/qSkRBeNV11Gp mOuY5j1fN0Wkx+8GJBI7Ioc8R9nn5hDotDxrVdUbF/7kzMC/vt3E6ZHWpatMPxKSSZtX +g9HRMHb7LIet5CQBlDJgmmzHRuWzeHu0ll1fV95rA6DolbK8IF2eOKwKrJx4pDCZfBR wq7Q== X-Gm-Message-State: APuU4Z+9h3eK17+krKlG+eSx+cWAN+ftP8OpsjzYQYS6CP6fmmZ2w3FO gws+8HvComveiuCN+X9c3kpdB+lD9lQZOu7Z5y1VmQrQNPJ5TYLAyWH/g/p1kbEGvqMxXGyaHxD M/cMg0fQ= X-Gm-Gg: AZFdTZe60TESf1x+PiFnqQSsfVdVrFo9b7vsMc8h/kjAdn38pJ/PfWt7hlmIp5NfNUi sNW7dRc0IisXusVL/9VPj6KZOkkbPHs/ICyMj6eQrBcdJSGPs6S1SBx3ZD5Wohh5dHYHisVA/vu lMh/fKx8wxORftVjkQPqC0O+piyUVCxnbd15167fFX+avS29UMXSi2954OMEZAOWgTcU+iVzFye SOtG5BK0q6k4EKAqMnJD3ymL6WpzFVlC1/1NEwUW9m4ZWnn4r14gQG/u3ygnA4/CetVA612eMfk K5rgc4osNt0WanTvfiygyiPidpSCZK55+3QIElzemX7jyWQAlHCO4qa4CGVkDBCvLwBYWqIbO9R 4t2SjWQ+/GobncAiiTtZrnV738dEaI4ya3yedGM9KN5Ewfsc8kGk+Vi/58ZdFlLdNObRiiF2nXI mCNZjYKjWlIEKpNmGDfC7/iKYGLHEkm1aHTIueSGoOJRcPV5oxoyltyzT0Wqpb0f84mHTGlkL3O hA8hIIf3frZNGuu24MFZXbR41uScSyDrTmfUxUF7Iq3MV7/Traz520Uos94NPmvQ5dkZHQO9mP9 LrbAN+ZiF12vzu3wuSB0/IsgO0PdthDwo3xSUU4/wPjYNbE7PxXdnKTht/iOUoA74b7UCKt7MvN vc6xtOwwz4saYgpqHdRzKDE3rkmi+ X-Received: by 2002:a05:6000:29c6:b0:4a9:b2f1:aac4 with SMTP id ffacd0b85a97d-4abb42ea141mr20914256f8f.22.1795560764623; Tue, 24 Nov 2026 14:52:44 -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-4ad644140b5sm27446707f8f.17.2026.11.24.14.52.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:44 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][wrynose 04/21] sqlite3: fix CVE-2026-119373 Date: Tue, 24 Nov 2026 23:52: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:50 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251106 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.51.3.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..6bf27f3a1f2 --- /dev/null +++ b/meta/recipes-support/sqlite/sqlite3/CVE-2026-119373.patch @@ -0,0 +1,56 @@ +From ddb597d563f2b17e9f42911f78ef0573cae047ed 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 bb908566d4..bfd285777d 100644 +--- a/sqlite3.c ++++ b/sqlite3.c +@@ -253340,7 +253340,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); +@@ -253348,12 +253348,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.51.3.bb b/meta/recipes-support/sqlite/sqlite3_3.51.3.bb index 2f821769135..52e7659a8ef 100644 --- a/meta/recipes-support/sqlite/sqlite3_3.51.3.bb +++ b/meta/recipes-support/sqlite/sqlite3_3.51.3.bb @@ -13,4 +13,5 @@ SRC_URI += "\ file://CVE-2026-119377-dependent_p2.patch \ file://CVE-2026-119377_p1.patch \ file://CVE-2026-119377_p2.patch \ + file://CVE-2026-119373.patch \ " From patchwork Tue Nov 24 22:52: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: 105483 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.31033.1795560766834164289 for ; Tue, 24 Nov 2026 14:52:47 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=ETpS5a7z; 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-4acb44dcd7bso4413661f8f.0 for ; Tue, 24 Nov 2026 14:52:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560765; x=1796165565; 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=jtd1jtKAM+JOxfX3VcsWoFkFDfdOQ5z3tQtFN8qKyA4=; b=ETpS5a7z9ThqdN673fsMcgNcmXLQnQ3eTvd3gRlOhIdse/SPa3AV8ZgssU+W9JniI4 g4SpTOYPwaUSL/O986pVFE/FgMD499RpCHRzZgE1CzmCsx79OHcRans/MwuflMAakh/i 6yObT/MsZmWNeyAopDgzSpeDmlZbVGu/SWlEolCCbcKTpRwc6msgwnrHi1wE3/fZEOG0 IOde5VWzeNnRDIcVAIYOc6AJZldZSr/WKeWWg0qi2RauQhPOCM8mF7uIBlH8Ci+EEoyp HKQIKKRqTbfgFjFDkJBugkkLUdZUiXFGFJIjQOXWthMBF3W7fVusxHk2dwcPP2G8kVr4 /zVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560765; x=1796165565; 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=jtd1jtKAM+JOxfX3VcsWoFkFDfdOQ5z3tQtFN8qKyA4=; b=HuuPIBjcKb3oaqHol0/I5rkmEstTErzU+YEliT6uG9sYbnwJJv7f8pZ7psMfxMJ0k5 kcXwzInFnlPaqdMEbtNFb6n+0+59u3ZgvJDNP6HQV32Zlv/NauQO+IVHzZLkKmPDG+iA /FSUWfnd/IZG7ydgAUxKL7TzCxHNGoCDr8I7yO2gMIiZvdeEgyJs76UMwu1vCSH8e3j3 Bvxal7amMGIZTgaVaaJbg7X4ZrcPHz0/FP6vT/79pGtv6AtkkxzKCwCHEF8tzTZwQ6hg X0rLo7Rk8t+gHp9O79Wy+WbL+Wt/P6h5lcPGBfN3EatfALXWoo4cSfy5lxQo4Khl35X/ nH6g== X-Gm-Message-State: APuU4Z9HDZA3B6JhP/uzyHJxvA+zjlIEniPiLBJwNkZ34BXtfzbWDz3T EROF7YYzNv5vhW4LXgrV/SQylt8VSDMlseAALIgjRSdu69OoKrU/baQC4Ep7CD/lMVNwmBJKmlE 7i8CMfeU= X-Gm-Gg: AZFdTZeEQko8INeJTkudKSCho00K5BxTxQxOVUsMBKe+Zq8p9xqLtS8GuXerCFvl3Gx q+WNlFlSLSyEt1C+WJPXR6UjqH4YLs7S5iyJyg+DQ48Tg3qRSS7tkvjSxGF1rL8BMimoN9WyN50 2NklMk6RKrVejxMSWib8p2t4Aze8fu4KZa18IA1wyRsFtlqeHz/tkX071b7cMyHGDZhc1iaQ3er LUTZGsGEJmAjjoRYN/GgwVUkTyF0+4OCkZk0ZAKMqFzkY1ntu1nxv3K9C9rRfE/vT0FZGTDi+9S sHIZkKLUFhAaE9yAurHxQf0/QF0igE69gPkpU6GqIUagMZ73qgfv7GqsYTMKoTVz2jATqVX3dI4 Q5zSBl7ZBTyonOSFUIZKm8RY7kbmXaBco6Y143bUzjchy7JT3mlsWq4twK2wPwKVel4e7UKreSR LJ1g8njfSgHNpVHH3qCylA7604k5FPp+SwBmj0d3NqRkF3ocCIFgtDkZkXP8F87IJsxa72vryMP GgyOqUe4NOfPin5kcXe7NcqVvDoi3DyuVXar9wVwInxAGFv70CsLrW9pGCVB6xULY/cvbqxN9rc 1vMbadg/fJ5uajYjhbRQWX2Lf4c0ltzBCOZDkMmuFjTWVT4wjF+D/Yj+RqgSzvs6dMRuYHYoYq2 EzH0VMQ3Tpmc2/PjVp0Nstl/w2s9bVKjA9Cp8JIWS0us7mHQV7Q== X-Received: by 2002:a05:600c:8210:b0:4bb:6a2d:b438 with SMTP id 5b1f17b1804b1-4bb88786c81mr324174285e9.0.1795560765103; Tue, 24 Nov 2026 14:52:45 -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-4ad644140b5sm27446707f8f.17.2026.11.24.14.52.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:44 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][wrynose 05/21] sqlite3: fix CVE-2026-119374 Date: Tue, 24 Nov 2026 23:52: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:50 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251107 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 | 76 +++++++++++++++++++ meta/recipes-support/sqlite/sqlite3_3.51.3.bb | 1 + 2 files changed, 77 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..e82f48951b8 --- /dev/null +++ b/meta/recipes-support/sqlite/sqlite3/CVE-2026-119374.patch @@ -0,0 +1,76 @@ +From 260a971baff8140195c181b94ce2264efbb042b9 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 bfd285777d..1889632086 100644 +--- a/sqlite3.c ++++ b/sqlite3.c +@@ -252752,32 +252752,36 @@ 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; + + 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.51.3.bb b/meta/recipes-support/sqlite/sqlite3_3.51.3.bb index 52e7659a8ef..f76ca8bd564 100644 --- a/meta/recipes-support/sqlite/sqlite3_3.51.3.bb +++ b/meta/recipes-support/sqlite/sqlite3_3.51.3.bb @@ -14,4 +14,5 @@ SRC_URI += "\ file://CVE-2026-119377_p1.patch \ file://CVE-2026-119377_p2.patch \ file://CVE-2026-119373.patch \ + file://CVE-2026-119374.patch \ " From patchwork Tue Nov 24 22:52: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: 105484 X-Patchwork-Delegate: yoann.congal@smile.fr Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.31035.1795560767425488546 for ; Tue, 24 Nov 2026 14:52:47 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=kAN/e5zZ; spf=pass (domain: smile.fr, ip: 209.85.128.47, mailfrom: yoann.congal@smile.fr) Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-4b79502c27aso50467155e9.1 for ; Tue, 24 Nov 2026 14:52:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560766; x=1796165566; 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=9Lk0vS4d/A+jKQ9uiUCozPbTRpHSg+L4eujFPLj9J8k=; b=kAN/e5zZcM6zDIpGLJxAg3capPsBV3NlHY9h0tEDtE9EPsHfkofkXDzYkF/z1F2wfx pQe/gjgelIC7UTzfkDUaWkHF3lTCuZVKqXf5mxXa2X/LOrU18HNH68w62OPhnAfXjBdV 1RV2gUSp8Zg+X+Rt8iM3/R61/llRTnFinllmYsd7um5Ts9MEQO6BlFLv7KH72z9AzE3B PtP4Ag6FeZsQocu3ri9RiK7RU8oFN9YHZwuKsHGdbcTIZTPzW+QRwAMN57ne+vtzIPvm GJAxsVQtAPENp+Wx4vhCMnqwLCHuoN5SwU4KC56fe9vqP+xbSGr3ZPv+oTIoTbBlmTB6 I8Pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560766; x=1796165566; 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=9Lk0vS4d/A+jKQ9uiUCozPbTRpHSg+L4eujFPLj9J8k=; b=Ga1dcO7zOAnpZaEDeq9De7QBZPKeQF1mQ/aL0MqkA/4xS3S/tIX4st5f61/YECDaJw ntcHnAfP6qVPtotLuGQhdjuqsYn1FjwLhOctSLUjrQOJxpz9cCYD2GHd2e5pBnMEhZ9t N2iElpBIoEt5S5SRv6eM+6y2N4yy5dIvBp5SM5P0cwSHwXTZ8AF79ZG2GCoQx9GVSPrQ qMKpWMpVZY9OaQU6lE+GlXcwv9ELYPG/6aOj5/4iQBZlpzac8gxPuISfuh1TFOzUKWe3 y4It3znv3ZUuYndsf27GE0nexOrvXyWfzGfgcVkiIduGS+qYocojZaNBA37G1Ko+kGSN f6Bg== X-Gm-Message-State: APuU4Z/Jy4E+KzQsy3p/bN6909096NFrrt6hLYaAnUnVaRnELhTFzUsb pLG7jxtlmKxzbOJMBcp06cdkaWGcpvNutrpnZvtlp0iUZ8qBtbJSmabewGRZd0AnwiOZkB71lDr HZ1RauEs= X-Gm-Gg: AZFdTZdRIyTiUw+KeMivraXYw5sGcIjWJOZfxzwTW3y2jWS23OsJF+jv7VuRlydzxeo tiTxoBjd6DfeoQox7vLZnAiAd1P/l9l7dCpz6FS5ZtJT8QIgPbb9CDKej1LMi1cqcLFfrZl1GRb RWGium8h3NQ0sKO6wDG/1dS7I57yrVC0EwzR9HE7Hn4/Kg98/BkxFTpSfsepWEzz5E1RfI33jbw 39hdrGv2jwVqySp26rV+wHweG2d7MFr87lAtk+AKuIkRzSMo4R//oxWLL+9C5sw8/DcBURHaHCZ YmDD4PwKyWeQyxz48kaaMHXjCRKYtihklHOBSExbNthWnVYonL66S8TJgRElXiuAIs8F6TEhqNA 32gGV9/s9ELAtnpWou6mYwmKg1vInWshhCtqzeeApkfMboP7TOjPx4Lo6RyJLugK+vEIJbbEO3q 7KPk1NSeilCuHeEyLLhJ+TxH7RGGGCYK407k+W+OgayA5gG5iDYkCPooxISJk/qdl9qGlunJUPq K7RABaIMePinDGo17WyxKsiR7bZCJrq34i/73QVGOZx7JLcHe0set8yVy8NMx7uz7qBrRwaoVAD f9/5YK11MJsxwyU0e24mkA6V7oua5ucTfHdmLMX2QpoQPwiMgy+V2DyKuKDLUIzerEcAphOF+vP GpJAiRd5Ax7pNX4bcOSm8QfrbcEMIQvZxl3PVI8wrr1RhMwpi15Q= X-Received: by 2002:a05:600c:4504:b0:4a1:9078:911 with SMTP id 5b1f17b1804b1-4bb888284d7mr340767925e9.31.1795560765598; Tue, 24 Nov 2026 14:52:45 -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-4ad644140b5sm27446707f8f.17.2026.11.24.14.52.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:45 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][wrynose 06/21] sqlite3: fix CVE-2026-119375 Date: Tue, 24 Nov 2026 23:52:23 +0100 Message-ID: <8afbe3bb846a6e1e0d73cb7e9b86428598ed2dee.1795560372.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:50 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251108 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.51.3.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..94bf2752a32 --- /dev/null +++ b/meta/recipes-support/sqlite/sqlite3/CVE-2026-119375.patch @@ -0,0 +1,47 @@ +From 01d00d78bc2c756021a2f8f01733d58af7dec1ef 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 1889632086..bcd317206b 100644 +--- a/sqlite3.c ++++ b/sqlite3.c +@@ -70412,11 +70412,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.51.3.bb b/meta/recipes-support/sqlite/sqlite3_3.51.3.bb index f76ca8bd564..79d12d4b039 100644 --- a/meta/recipes-support/sqlite/sqlite3_3.51.3.bb +++ b/meta/recipes-support/sqlite/sqlite3_3.51.3.bb @@ -15,4 +15,5 @@ SRC_URI += "\ file://CVE-2026-119377_p2.patch \ file://CVE-2026-119373.patch \ file://CVE-2026-119374.patch \ + file://CVE-2026-119375.patch \ " From patchwork Tue Nov 24 22:52: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: 105479 X-Patchwork-Delegate: yoann.congal@smile.fr Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.30990.1795560768255704297 for ; Tue, 24 Nov 2026 14:52:48 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=JYCmKL0V; spf=pass (domain: smile.fr, ip: 209.85.221.41, mailfrom: yoann.congal@smile.fr) Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-491971ac844so4621538f8f.2 for ; Tue, 24 Nov 2026 14:52:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560766; x=1796165566; 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=teu+i7eEEtyjJoPpM0oK7Eu/RwHSpwaGbx34dEMgiD8=; b=JYCmKL0VMXNTW8U4+fl/pA5DV/bAOiLzNAJ38IlAvEm6tgwh45sRDV4vi6s1h1k0Fu 1qDmP7ykEcfDbNzvOlwqO+DexQjAgrv4OgQEPJayOAjlH28lFoBfzV0WmJc4jZP8iO8T 80RPWoXTQ1DUFWu1H+5mx4J1aIZOobXkScxhcYS268QcrSDbhthpGC+QzcwUJfgBhkCk JOWsLcXSXLMwfrfO8nl4UonzWCQDPSVq8kOA3jCQNGALwvn0DqW3ZfeSvaBR6BgA5uAY LE/F/BR1V2/pohFEb0R4/iIQ3zDziTxt/J20Yf4mBn04C3kcR/zVExbxYlPJzwsKQsmz PQRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560766; x=1796165566; 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=teu+i7eEEtyjJoPpM0oK7Eu/RwHSpwaGbx34dEMgiD8=; b=Zc8jvlEEO6+yJQQuIrVjCcFHvLUldGL/3h3X8YcHTmgU0DjTM58YKGmSX4z7z6t3nO lDuEI/NRb3egYAGIwBJ/LgWUdh4xeVqPz2q5mPo39E4Bunlqvgsg8Zi/CcilIM102ovg Gv4e71199pYDO6KSd/Lt3IqevThIUmnZBaG3HVwGtH/661M/089/zcePRdnOnzqY7+a4 qTOH7eUTj/Z/wBkgkbPPUH3pd05SJ8QuOJRDV1vgM9u4n6XoTEkyxQHmdhCeOrAPD4iB /vEvIfVRa1PIdIwhXBxmiWej8P+VjMlLmdOOG1WCr5ZuHEIEMXvZ0vqQMnbpXKl/XkEm CpGA== X-Gm-Message-State: APuU4Z/PxtEn5tGppYvSO3QgP++lrNn7ntnk/Hg6OqA0JFn/qj67W8R1 YXJB3wvlC7ci6fm3dQ6zbjg8O0LzeLu02j+hh9kUfuv88pq1i3tqF5Ma6fut9Jh52d6T1W6ZSHK dbTBJ1SQ= X-Gm-Gg: AZFdTZcTowU5WYIsp9UnT2mHu+J3n8+x/dxApD1M1aNTfYZvWeIKFENgrRqHX3pNwOL rdcoGQVUNKn9umGz/22XCc6vRObT1vSRAoRWtJp6QpiVUfiPYDI9ZShsgT6BqYPlB/71e9/cyYR lss/nuPfcaYZxbwredGlGClY/2qgAhST6lVUrRN4muShcyPi4T8HxD7KiCKvKoj8UShvmwYt6px bzxVPOpD/y4ZyOWdCDwKACBLtwBU3OKch9zjghvhVNaktGEyVlZvVzKOG2Rm1YBJrddKFUoIXkh R4VHvYncrVIl5LClxKkddQYZexT9Ob7d035WdFlmBJ7NVDSKRh0lZrzN2/t+EezvYTBqoEJ2iyj Y3VVmna7R12ZKxBVygyWifzaPFy6IZX9hWYHvjdb0Cw9Mkg9S1NZWiQ/2/N2XOxAMasevcS4YuU Y5GecKhF1N0IvhCL5o50DTbxTwxKbxi29cQ06B1s7/3LLiu8yUGuMPewB/4fkDDnskfvWkMVUcJ 9G1NlpZcyFgEKJS0UbG3H1C5nBcrFqDgwpLp/FM1QNUtKx8FsrApZZd+qjfSYTKoFHzKomBr8tc 47sXFju8ZG3BwP9ARaZfJATo2cOoWbfd93j9//AEShPR5dodMKawTNpnUPx2kM5hvx+455OpBUO OrwIJlbzcKo/dWvSb5V80tN5aisN9 X-Received: by 2002:a5d:5d0a:0:b0:4a8:eed3:760 with SMTP id ffacd0b85a97d-4abb225faa7mr33898763f8f.31.1795560766465; Tue, 24 Nov 2026 14:52:46 -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-4ad644140b5sm27446707f8f.17.2026.11.24.14.52.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:45 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][wrynose 07/21] sqlite3: fix CVE-2026-119379 Date: Tue, 24 Nov 2026 23:52:24 +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:49 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251109 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.51.3.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..3a882bd0a9e --- /dev/null +++ b/meta/recipes-support/sqlite/sqlite3/CVE-2026-119379.patch @@ -0,0 +1,79 @@ +From f613058ee3c084c6ec1b49e5b9874197df6e7304 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 bcd317206b..83a018d3fc 100644 +--- a/sqlite3.c ++++ b/sqlite3.c +@@ -236199,10 +236199,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 ); + +@@ -236223,15 +236223,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 +@@ -236266,7 +236267,6 @@ static int sessionChangesetApply( + rc = SQLITE_NOMEM; + break; + } +- nTab = (int)strlen(zTab); + sApply.azCol = (const char **)zTab; + }else{ + int nMinCol = 0; +@@ -236319,7 +236319,6 @@ static int sessionChangesetApply( + sApply.bStat1 = 0; + } + } +- nTab = sqlite3Strlen30(zTab); + } + } + +-- +2.35.6 + diff --git a/meta/recipes-support/sqlite/sqlite3_3.51.3.bb b/meta/recipes-support/sqlite/sqlite3_3.51.3.bb index 79d12d4b039..9dd182b168a 100644 --- a/meta/recipes-support/sqlite/sqlite3_3.51.3.bb +++ b/meta/recipes-support/sqlite/sqlite3_3.51.3.bb @@ -16,4 +16,5 @@ SRC_URI += "\ file://CVE-2026-119373.patch \ file://CVE-2026-119374.patch \ file://CVE-2026-119375.patch \ + file://CVE-2026-119379.patch \ " From patchwork Tue Nov 24 22:52: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: 105485 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.31036.1795560768857385964 for ; Tue, 24 Nov 2026 14:52:49 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=lbpp0dXh; 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-48dfc0421d9so4782656f8f.1 for ; Tue, 24 Nov 2026 14:52:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560767; x=1796165567; 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=ywkrYbaCnUvikY2AoR38QdUzN16/AnTbcqe+cmINtNc=; b=lbpp0dXhGhxZSyuiC4tpcLG05RdcL3HHIezYtq4RBXG3ee/NcMX508TYlN/PdXod0O ZCHnMk/ZKucsXGMaGUEBdyTGOe7TmKcg4inx0iyl0YJ20HlBO4Z0zmCF1FIqeLuciOdh jLOdnM5W20dbnnbocqUipAhyUeYt/+J7+9f3QN8sSTuRdw8ViwAkudIlZNM3854VtMzx rxtPW3h54/HJILZpy309lxmeIiGNFJSqOwzJaDqh0slj+rGZNxC6hN+vlvg/ivyAme3c lXm3JjKVBb9oKNNLJG18AlelltYvvv1He7B921zH/ktB+nmhvqCtVQ10yhiSrVl9C9Ig rQAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560767; x=1796165567; 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=ywkrYbaCnUvikY2AoR38QdUzN16/AnTbcqe+cmINtNc=; b=r80+NdNwkq70MIV5QMjZalZ25ve2vKMl5Q2LXMjHPAru6ZFv5IwdwtYyST5jpmC9/Q j0aoAuvbtRB/oDpP8PzvYJ6xOX9PXEpKMsA+DGNMUt2WmnDmq9Z3SrZ02ntXQGSKVW/5 s5yvQfugmKSRzGaRcr0yXE1VMUQdblkT4Y0TT+J4Z1tJwEj0Knj5PNQMuPol4F6GQjE1 fSoibLSDDal7FT/0ZpkjJ0/OLIM1bUZH+FXklSeA5Q0HBCJxeaYnzn/OAUY+VtVIT/53 QhWjWICZ4AQBM6npiYlPer1axJMPic193k7tBG7Lrct7apfikl+bI28/vlyQIDyIVdN4 Xrvw== X-Gm-Message-State: APuU4Z9Agj1hcH4levutllRiTAQcfXFncHnecWEnNuK01g9JD7D3lkO9 5HnzMxDRLeHxMcy+ALwlRmLU5AeOOG0oisrtnMOdk5zbUFVZc2kfezM6HnwnAmaZD7lPBy86JTz qLu0e0hs= X-Gm-Gg: AZFdTZf3DomOSlFROdE4J0kK5LT9EQlJa3eYaYsTpeq7t/bq+AsPmaP61PP88Av4jwK JSxsyfrw7QAiQcgYgIKxAqRybIo5zrW9MJqlqu3fWQI8HfUJ/AIcrOUgVOMCzr0GzwPWZaNtEhx ny/bpj4O8EVswXKJovyQNVhGUS1JidDA602r03HUFwQwBF2g24MVBDsi9F+YN4i7fUm8L6wpm9T O+agR+KSEJpV8J3lqxV4wfoxTSFa8FPu9k36fxBRSzaCntN7NLsB17fJ143SyPH2fQc5Q6KthPQ FqmfYK6Uq5e1sJzZt7Pj+PAkNCeaR0nYRbzqHouMQlIJwYKqDITWYJco+1VbQ09hxrxDO2ZzQid Lwz1K2P7G+uOctT4xak2HPe0lUurx1/7ASB/d+6nIba3WfJpdwXn39tLQYMVHskVK2AaerY8Bi5 OwNMKLlhaFwhgaP7fKwhLZ/RlVpVYkA+cUmi44040z1IkdvaXhoaVrX90D5lexBDM7WzYnGFn9E p3YOGH9SiNLKV61GsK8Q+mhX8fbuoyaMYXduu82+hyaZurF9bSwFxZGx/Fmd8mVIyqeFsiZK/gT Hq5dZl3BvrNgCrg9beAlxp0eQy7x5WEV9atTlwdNt9VNfJ7M2tRQaYMlvqbcrH+NCbYTXg20cb+ A8+yjhl+yCX6NH0JAPjj+uwa9O2Fl X-Received: by 2002:a05:6000:2c0e:b0:48c:58d5:30fb with SMTP id ffacd0b85a97d-4abad5ac62emr32414248f8f.5.1795560767044; Tue, 24 Nov 2026 14:52:47 -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-4ad644140b5sm27446707f8f.17.2026.11.24.14.52.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:46 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][wrynose 08/21] sqlite3: fix CVE-2026-119372 Date: Tue, 24 Nov 2026 23:52:25 +0100 Message-ID: <03e32765bb74923208ca473061c2e51a51f03a0b.1795560372.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:50 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251110 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.51.3.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..c05000cb491 --- /dev/null +++ b/meta/recipes-support/sqlite/sqlite3/CVE-2026-119372.patch @@ -0,0 +1,56 @@ +From 52acd34ba6d51393d9f714b3e0c5ae7d805ddeae 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 83a018d3fc..cbad7b2ae5 100644 +--- a/sqlite3.c ++++ b/sqlite3.c +@@ -208133,6 +208133,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)); + +@@ -208161,9 +208162,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.51.3.bb b/meta/recipes-support/sqlite/sqlite3_3.51.3.bb index 9dd182b168a..c6a19525fa7 100644 --- a/meta/recipes-support/sqlite/sqlite3_3.51.3.bb +++ b/meta/recipes-support/sqlite/sqlite3_3.51.3.bb @@ -17,4 +17,5 @@ SRC_URI += "\ file://CVE-2026-119374.patch \ file://CVE-2026-119375.patch \ file://CVE-2026-119379.patch \ + file://CVE-2026-119372.patch \ " From patchwork Tue Nov 24 22:52: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: 105486 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.30991.1795560769476376653 for ; Tue, 24 Nov 2026 14:52:49 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=Y4FHQgni; 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-490d59c3edaso3462459f8f.1 for ; Tue, 24 Nov 2026 14:52:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560768; x=1796165568; 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=3it6SThJCd6D06Yvi2RtiQsYtaouxyDyVcMGQlR5Lg4=; b=Y4FHQgni++3wQZ6Afaz0PIU2YN6bCljCa2JZ6tkDCUueKvW7ogGB1kt3q2BKeSsayZ 3ntcu7OYs21U8kxPFjdpeLYrtnKSq/WFEew9k9f3Ff+NlYFPj17dkaZ/Ak+nayF5Y677 dY1H0JYnkVkOB3/ug+McfIn2qASYVwaRVwGl/OhK5kqHNfn7rbWlmZ+BQ9bhSp9HV/F9 wA1ROQjUt5lrX5u00xNGwTFe6KpT1Aor4BoTWRp/99EIVtWl/cRx7buOvHAubZmkiOin lg35WOsLnwTytJlWO93Md6ZGrGAF/+pMoQrOP978sHNiXm1VN49ekwYPJ0pWQZ6Sx7lG HLaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560768; x=1796165568; 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=3it6SThJCd6D06Yvi2RtiQsYtaouxyDyVcMGQlR5Lg4=; b=Ca/L4cHiFtf/jpHKifBrXirx8RvJW53qRdBj5GwpaCFyzJGVZ/9O/lDn7vBusnbzsS Iw6+nctkBTLSV2eW7kQ1HiC6Lk/POofl01KlKQeFOTS4SFITdCnRBBnKBnAdYsJz2u97 Lc+1GDTvnC+a8ZxlBEr49vsbX1Yj2uqPIGvWta3hzDv7BbXt45F5Eqbdj6BBTRpWhfna wvbCK3hJpYC9ReY90b52vv7ZxVWUClzEWLsWJo/nwxC0i1Ske1PHDOSk+T8AYTDboG4X HZUXem4x1KuxG08HrZLJ32kT7AbMtGKy9KbwZC2oid+eqyn1w8B2pF2Fb5nzPLV1ReS5 JgAw== X-Gm-Message-State: APuU4Z+hg907WyhadUtUe7afoB+JK7Jnex+QYW8R8fdBtp0DVXivE997 IQQjFMmvkvXe+xwcRCL2L4h5V7JCPMSW2jsNWh5vPUbZAri95yRr71EVXM62yuDsHSWc1dn7DAo gQxvVY1o= X-Gm-Gg: AZFdTZcmwEcXCJ8wzw270FutV8M7/fBOXSVNE6Y5WDvkOUSDVZBR0JWNVFNKkjm3/LH HdD1vRJpTNXYes33cINwhlEsWfyBIllD3kx5SF0S0wW82/3tWOiuKmrbKwCJfcHCp9RnNesfBiK Lk4t4iPyewf4OWd4hAv5MCiL0djtdH2AMyYaZ2yUYiIPyMH4D1mWHkuvHSZbTy0XOLKgtVxX9Rh wDT2sIWMCI9c7D9q+uAn4NP7y9O4MjM1vATHyESRTxkQ/V0J5hLgtBFBCOrsnuXF8eVasJx6EDw uQ5nfVXY/5wfr4ssH6fuyK7RfOuGhjeK+LbgbMQNJ4tojTj/kLGWIPWwu4DOtPuF/Td8Xt5x3dt 1gHDFeEMXMSN+/QF9MdyCyK4NqfsoS56XiTE+Q39mjx0mQLDfCGUgccd9YnFyVzd4rZ4KE0OX3u n2NvI2g+I+edkx/RBEoUukBoQ9+Grve/lNayBOdfjSqTnpz+uSHo8OWWltHX1W1WAlqkA9lafN2 CW9sv+IfWxA7gOvVhfC7Zs2cUY0W8h5FF5Q1NkcQGMGXH24xVfW3EcVNtB+x2bqHcIkOez5s24k iEJ4ZfBeY8np6SIH6o6B/AZsUHQIPmYn8p0TywmmRPm/0yuc6G2OPZONhfJ3ysUcwnGUAsfkeFI 7ZBbEU7lFlPq3Qk+okdALrgPJQ2io X-Received: by 2002:a05:6000:2903:b0:48e:d40:a87c with SMTP id ffacd0b85a97d-4aa579a8cabmr43192582f8f.16.1795560767683; Tue, 24 Nov 2026 14:52:47 -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-4ad644140b5sm27446707f8f.17.2026.11.24.14.52.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:47 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][wrynose 09/21] sqlite3: fix CVE-2026-119378 Date: Tue, 24 Nov 2026 23:52: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:50 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251111 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.51.3.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..5228e32cb65 --- /dev/null +++ b/meta/recipes-support/sqlite/sqlite3/CVE-2026-119378.patch @@ -0,0 +1,52 @@ +From e92efe57e1f9cc51f7d819bb7fb05bff182b708b 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 cbad7b2ae5..45ade42b16 100644 +--- a/sqlite3.c ++++ b/sqlite3.c +@@ -216677,7 +216677,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.51.3.bb b/meta/recipes-support/sqlite/sqlite3_3.51.3.bb index c6a19525fa7..7c8658a977c 100644 --- a/meta/recipes-support/sqlite/sqlite3_3.51.3.bb +++ b/meta/recipes-support/sqlite/sqlite3_3.51.3.bb @@ -18,4 +18,5 @@ SRC_URI += "\ file://CVE-2026-119375.patch \ file://CVE-2026-119379.patch \ file://CVE-2026-119372.patch \ + file://CVE-2026-119378.patch \ " From patchwork Tue Nov 24 22:52: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: 105487 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.31037.1795560770094150200 for ; Tue, 24 Nov 2026 14:52:50 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=Q6cUbR9+; 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-490c3ae81d3so3187502f8f.2 for ; Tue, 24 Nov 2026 14:52:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560768; x=1796165568; 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=/1K6coTy1QRbUa1Bb5uFCguTW2Q+c/zwibOOo/5i4UY=; b=Q6cUbR9+O1GRzIZ4C+/tSq/HzSBF4Q4CEROgEqCzgi0bqj5j30ZlPkYeVTNk55JOwr Xnv1B9rx78kW+w4wrgi3fOwSGYVtW01lYXvI6o1URP2tSTqkuPOifIvsVlv+moLEQCHY fvpHH04JV/Tro8y56YClIRjkQ9sDxgZhcgQkvq3dR6ziojaL8Lv7aLPsdKEyd2N1LDZT VRS5oCv2TOaHz3bgStg6xOsmRs6Ow5w/o1Yb4XFMm/ptuCusYHCOCe6dr6ekzEd37Jki X/cECEodtLRA8s9+TcO9UrOrnEk8bgDdS+YL+8XWu7GeLXdtRSfw4c95nfwt2zKbQoTc rtzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560768; x=1796165568; 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=/1K6coTy1QRbUa1Bb5uFCguTW2Q+c/zwibOOo/5i4UY=; b=n/M4ynrmqAfljZ3JVTQr0uG+9oOkQJimY3bblIZNL1MVeYN/mRhOM1rT7rXXvlpLyX R2CPx3TIdS5xinnyQqClzMVDovg9bdkkhS97oUQthKjpSL5UjXRNV/NLlWL3JHQ7YZlD VFd7qQpNkj9a/5mels5LIa6pRU+FlyYVdWO8EyKJ8jNyK/t3sa4DBi3Kvri0zSQAgiRe SSXIMKlVWLo/w5/xOwEOlldJJWoAvZmFYPhwMXlc90z2Lmfw8N2unf8baHCcMoXatGqv E+zgXYhMBkVmtWxg/kAeKmzYYMy8Vpv9XY8CcHC/5GfbSlr6VeF9yIHKFnGdPx4VKYzt 8hqw== X-Gm-Message-State: APuU4Z/Z/I+zrdLdP97LvIOeClbAU/1Qwfd8tuOtBb8WECxML+Eqsu9a q+AT0pdZTeSao45DjQnBc7sUARVzU7NC6Ibt+qkE7yAJhnsAAtQMYZwUC2qkLHiFuaSrNeJCsWW 3UyISfIs= X-Gm-Gg: AZFdTZelvcXDfQXE7s8rmSXiFr+PfRD4WB17vM8N1EwaK3kiPnIE7JuD1hPhuSt7Qmt y/TAcUyvyASp/L4LuydEK0c2CyLowkyNWi3q1f27niqkSl85pHDdlpABycIvTBnwNaMIQMYYFrV EUKXb+9KbkXqF3niVjPt5qgBBA1cGzHCehY82RJhpbPbVNeQgPlFaEPpPqSoXA700kqKgfWiLP+ 9i90mG3lkXyremfXsHfIwP+9b7rnc1x1p9QYDA2Df0LRsYULpETBE1a4bnNZKd96FyJk//KPj7F CO/0QvDLmof4PACXPc3z+hLQAzuwVQe1O6D93wXoEOEMw+pFKoa8C8XD9HGGJIkY1ViYLZj3a5U hHCV9u3uTxoY6AXkVunshXj69HybdspYtuvYxhmKzbaWuymb6qZinG9x2QV1XaB+Tz5jpbrUu66 BdxQpyoatv2pu2tKt1lQ3Q9er9aQ0cWp0Hs2GgE6sGchZB3/RxUpFqq4hW/GfUb9AScRyrdiwJx 5paOVq3yR6A3aN0cmAqGp4kAwsSSEvutpbG0dnYeCq7ijXFZXq2ycSnWtRtkmvfaRFsl+DzdxzZ f0iT/ac1fBW6kKhdjUl3TCy+9uGoiUYTPXpT5yvzv1vQh6keaUn//S46tF5mWpWVUP1f36tKZkO 6410xHfFv1emTzA62BE5Z3P71Gxnx X-Received: by 2002:a05:6000:288c:b0:4b4:2ce4:6dc1 with SMTP id ffacd0b85a97d-4b42ce46e7cmr13215356f8f.44.1795560768257; Tue, 24 Nov 2026 14:52:48 -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-4ad644140b5sm27446707f8f.17.2026.11.24.14.52.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:47 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][wrynose 10/21] sqlite3: fix CVE-2026-119376 Date: Tue, 24 Nov 2026 23:52: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:51 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251112 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.51.3.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..32060a54449 --- /dev/null +++ b/meta/recipes-support/sqlite/sqlite3/CVE-2026-119376.patch @@ -0,0 +1,75 @@ +From 0e3ec7377ba0ef29b02e258e9fbb395d0d6dd431 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 45ade42b16..603ca28a27 100644 +--- a/sqlite3.c ++++ b/sqlite3.c +@@ -21992,8 +21992,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 *); +@@ -111640,23 +111640,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.51.3.bb b/meta/recipes-support/sqlite/sqlite3_3.51.3.bb index 7c8658a977c..c16576354a7 100644 --- a/meta/recipes-support/sqlite/sqlite3_3.51.3.bb +++ b/meta/recipes-support/sqlite/sqlite3_3.51.3.bb @@ -19,4 +19,5 @@ SRC_URI += "\ file://CVE-2026-119379.patch \ file://CVE-2026-119372.patch \ file://CVE-2026-119378.patch \ + file://CVE-2026-119376.patch \ " From patchwork Tue Nov 24 22:52: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: 105488 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.30992.1795560770782912808 for ; Tue, 24 Nov 2026 14:52:51 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=ADSVuSwu; 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-490c3ae81d3so3187511f8f.2 for ; Tue, 24 Nov 2026 14:52:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560769; x=1796165569; 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=7f/7uNt3MofLvZFHN+Z+4tB/qSSvhYE3k2SLwE1tWwY=; b=ADSVuSwuO9BtOU5OUFld0erEbiMwAZ3zWyK7XcMD0jDnq0dIyspXWhdwV3sTmXBqzD EVM+oKUnJ4sGlhN1O1DttFILSOOpQBARlm+HobojECkNAN4PDegybJmfeDzMIaGu3IrR lTQwNx7WR61rZ8YCV58PtZdX/xEKWoPhCFCewfU6RDqYC52SgPSt+MBdEqRZZDKcMPve m282leXvA5Epw9I8MSV51dRI6Cn/wFIajyoHSnrwEr3+N4r66mTheJMekpd/SJIrjkKM g6F5aH1Gzw0yoTMWTwkjkpiw6wgWg61ce5hZp4CLTtzj8fcIP4pKbjv6jbvAlP/93F9k 0jaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560769; x=1796165569; 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=7f/7uNt3MofLvZFHN+Z+4tB/qSSvhYE3k2SLwE1tWwY=; b=wVFmglyJZqAZDg5mr49S/omYyXYigwdNqVE+2XFyqwjjjCgGKYItYcvlnXyxbyYRec 3aofb/7pSu/hM4v28/Oi3HQECnCzlNlRVbwsU1QAKbr6EfDFz6yQ5b+YIUkPR48UQngy EBIFk3oBJ9366ZyijPUFD+sP/2BCL622oyFTmL05iT1iHoMDGFIZvzoqXqUJ3uhP0d9d wDx4e0UIjHMoEqSVof4B/W0T+xjM99Q35UvFHPMhuot/uU42P7KGczFKZDKmzCeP3gzR NNOduh3PHj9NuVXgc/ZnnqRI//6mqlamM5dQ5qFszkSkdW696xmGguyIet3QpY2Srr3m q9/A== X-Gm-Message-State: APuU4Z9beTJg4oiBY5hsas1tbGyBIO7RmBb+IUtK8acJijMF8EeYg6+Y qW6qhwxXiRchzCBPfMH+l5926KV0Bv8OR2UrnRIOS64tCFdOsBD6xfbqb4uFmBqK248u5nTiGFW YQC3g2uw= X-Gm-Gg: AZFdTZf8+ZYSzgy20i9KyByDA7VpfV6JNFbIhGDoqS/SMCXfF6L79mU5G0Taa1UCRzU WLkaKvOmX7g665btxOT7iEIGqxlIk4NGYdeRiGky6alykxx0UpG+tV+A8wZ/h3Xy9ioWb/bXiTY 6j5HO+a5QJHNnqHawjZQ4479V+AOK26nCssh8d8sFb2jTLAkW9wquecssokh0fP9dzdKWozKpLf 2VAE6wYexqjI9J1Z4oGa2ObBsg/31sCqltoFZ6DH2vclfLkjnvvjKNLrGtjReQGwyU/RZqAHLy2 XYCbkYEpGqOmNjKqPQXW9zkNUbK2+ir31vOY8jl6VeEgFVsPgnlsh6aPBU49SQIT8OoEmGx6pRm DwbzeZcgtyle6keSM98VbYKYdG6zN8CYn/3wSDNj3v3DI5FBjyyR8kyMMz9MyEjyLAtsakPk3CW bhb2pV02ckyth+Ja6CyyFXF+xUsRLxA9KLrufn35uUsE+h/j6OOtLMZiCvNjG1YuBvrfyMt+Wj1 fwuG2EIPLSN/mUrYDdiGM8/DoMLEXkxQ9pmXdX8Suvf3M4gzPxFYVCZO1Gi5AWBrivEf92H/oPo VaJws3Ps4aa7y+wWANyRBOWYZpHTNMAiGBoALQDnSYV8Ax0Eke9JluHuhKP5CSFI2bRFcOcDB6J y61FHnnUppVDa61BgLt+UcIEMvLKY X-Received: by 2002:adf:e014:0:20b0:4a6:b87:d77f with SMTP id ffacd0b85a97d-4abb0f3b5a5mr23901031f8f.12.1795560768853; Tue, 24 Nov 2026 14:52:48 -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-4ad644140b5sm27446707f8f.17.2026.11.24.14.52.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:48 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][wrynose 11/21] sqlite3: fix CVE-2026-119371 Date: Tue, 24 Nov 2026 23:52:28 +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:53:01 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251113 From: Arpit Patel This patch series applies the upstream prerequisite [1] and CTE recursion fix [3]. Commit [1] adds VIEW and subquery nesting tracking; commit [3] uses that counter to limit recursive CTE depth. The GitHub commits [1] and [3] correspond to SQLite Fossil check-ins [2] and [4], respectively. [1] https://github.com/sqlite/sqlite/commit/9fb225190c3ac0e51f11a7fddab0d4cc960417ad [2] https://sqlite.org/src/info/3f3fb9b638f59ad9 [3] https://github.com/sqlite/sqlite/commit/e6ff280c839fdfc7418fd5add12e8f32702a17fb [4] 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 --- .../sqlite3/CVE-2026-119371-dependent.patch | 109 ++++++++++++++++++ .../sqlite/sqlite3/CVE-2026-119371.patch | 103 +++++++++++++++++ meta/recipes-support/sqlite/sqlite3_3.51.3.bb | 2 + 3 files changed, 214 insertions(+) create mode 100644 meta/recipes-support/sqlite/sqlite3/CVE-2026-119371-dependent.patch create mode 100644 meta/recipes-support/sqlite/sqlite3/CVE-2026-119371.patch diff --git a/meta/recipes-support/sqlite/sqlite3/CVE-2026-119371-dependent.patch b/meta/recipes-support/sqlite/sqlite3/CVE-2026-119371-dependent.patch new file mode 100644 index 00000000000..21fed4b6f8b --- /dev/null +++ b/meta/recipes-support/sqlite/sqlite3/CVE-2026-119371-dependent.patch @@ -0,0 +1,109 @@ +From 15fc374428c9fa554b25e8f51ebb9b3d38107a00 Mon Sep 17 00:00:00 2001 +From: drh <> +Date: Tue, 16 Jun 2026 13:43:08 +0000 +Subject: [PATCH] Limit VIEW recursion depth to SQLITE_LIMIT_EXPR_DEPTH to + prevent static overflow in malicious schemas with tens of thousands of levels + of recursive views. [bugs:/info/2026-06-16T04:21:51Z|Bug + 2026-06-16T04:21:51Z] + +FossilOrigin-Name: 3f3fb9b638f59ad982beafb7c117f24ddd3da612e62c862510805fa672ffae06 + +CVE: CVE-2026-119371 +Upstream-Status: Backport [https://github.com/sqlite/sqlite/commit/9fb225190c3ac0e51f11a7fddab0d4cc960417ad] + +Backport Changes: +- Ported src/select.c and src/sqliteInt.h code into the amalgamated + sqlite3.c source file. +- Updated limit documentation in sqlite3.c and sqlite3.h. +- Omitted test/view.test because the extracted source lacks the upstream + test tree. +- Omitted manifest and manifest.uuid because they are Fossil metadata. + +Signed-off-by: Arpit Patel +--- + sqlite3.c | 16 ++++++++++++++-- + sqlite3.h | 6 ++++-- + 2 files changed, 18 insertions(+), 4 deletions(-) + +diff --git a/sqlite3.c b/sqlite3.c +index 603ca28a27..87c568b41e 100644 +--- a/sqlite3.c ++++ b/sqlite3.c +@@ -4655,7 +4655,8 @@ SQLITE_API int sqlite3_limit(sqlite3*, int id, int newVal); + ** or in an ORDER BY or GROUP BY clause.)^ + ** + ** [[SQLITE_LIMIT_EXPR_DEPTH]] ^(
SQLITE_LIMIT_EXPR_DEPTH
+-**
The maximum depth of the parse tree on any expression.
)^ ++**
The maximum depth of the parse tree on any expression and ++** the maximum nesting depth for subqueries and VIEWs
)^ + ** + ** [[SQLITE_LIMIT_COMPOUND_SELECT]] ^(
SQLITE_LIMIT_COMPOUND_SELECT
+ **
The maximum number of terms in a compound SELECT statement.
)^ +@@ -4682,7 +4683,8 @@ SQLITE_API int sqlite3_limit(sqlite3*, int id, int newVal); + **
The maximum index number of any [parameter] in an SQL statement.)^ + ** + ** [[SQLITE_LIMIT_TRIGGER_DEPTH]] ^(
SQLITE_LIMIT_TRIGGER_DEPTH
+-**
The maximum depth of recursion for triggers.
)^ ++**
The maximum depth of recursion for triggers, and the maximum ++** nesting depth for separate triggers.
)^ + ** + ** [[SQLITE_LIMIT_WORKER_THREADS]] ^(
SQLITE_LIMIT_WORKER_THREADS
+ **
The maximum number of auxiliary worker threads that a single +@@ -20531,6 +20533,7 @@ struct Parse { + int szOpAlloc; /* Bytes of memory space allocated for Vdbe.aOp[] */ + int iSelfTab; /* Table associated with an index on expr, or negative + ** of the base register during check-constraint eval */ ++ int nNestSel; /* Number of nested SELECT statements and/or VIEWs */ + int nLabel; /* The *negative* of the number of labels used */ + int nLabelAlloc; /* Number of slots in aLabel */ + int *aLabel; /* Space to hold the labels */ +@@ -149283,6 +149286,13 @@ SQLITE_PRIVATE Table *sqlite3ResultSetOfSelect(Parse *pParse, Select *pSelect, c + sqlite3 *db = pParse->db; + 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 + savedFlags = db->flags; + db->flags &= ~(u64)SQLITE_FullColNames; + db->flags |= SQLITE_ShortColNames; +@@ -149304,6 +149314,8 @@ SQLITE_PRIVATE Table *sqlite3ResultSetOfSelect(Parse *pParse, Select *pSelect, c + sqlite3DeleteTable(db, pTab); + return 0; + } ++ pParse->nNestSel--; ++ assert( pParse->nNestSel>=0 ); + return pTab; + } + +diff --git a/sqlite3.h b/sqlite3.h +index 302f0f5b16..b34982a3e5 100644 +--- a/sqlite3.h ++++ b/sqlite3.h +@@ -4334,7 +4334,8 @@ SQLITE_API int sqlite3_limit(sqlite3*, int id, int newVal); + ** or in an ORDER BY or GROUP BY clause.
)^ + ** + ** [[SQLITE_LIMIT_EXPR_DEPTH]] ^(
SQLITE_LIMIT_EXPR_DEPTH
+-**
The maximum depth of the parse tree on any expression.
)^ ++**
The maximum depth of the parse tree on any expression and ++** the maximum nesting depth for subqueries and VIEWs
)^ + ** + ** [[SQLITE_LIMIT_COMPOUND_SELECT]] ^(
SQLITE_LIMIT_COMPOUND_SELECT
+ **
The maximum number of terms in a compound SELECT statement.
)^ +@@ -4361,7 +4362,8 @@ SQLITE_API int sqlite3_limit(sqlite3*, int id, int newVal); + **
The maximum index number of any [parameter] in an SQL statement.)^ + ** + ** [[SQLITE_LIMIT_TRIGGER_DEPTH]] ^(
SQLITE_LIMIT_TRIGGER_DEPTH
+-**
The maximum depth of recursion for triggers.
)^ ++**
The maximum depth of recursion for triggers, and the maximum ++** nesting depth for separate triggers.
)^ + ** + ** [[SQLITE_LIMIT_WORKER_THREADS]] ^(
SQLITE_LIMIT_WORKER_THREADS
+ **
The maximum number of auxiliary worker threads that a single +-- +2.35.6 + 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..d2d99cf8d84 --- /dev/null +++ b/meta/recipes-support/sqlite/sqlite3/CVE-2026-119371.patch @@ -0,0 +1,103 @@ +From f6040218564d03a040d991179d1b3491f4e9a566 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 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 87c568b41e..19ab450812 100644 +--- a/sqlite3.c ++++ b/sqlite3.c +@@ -149277,6 +149277,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. +@@ -149287,12 +149301,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; +@@ -152617,14 +152626,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. +@@ -152753,6 +152761,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; +@@ -152777,6 +152787,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.51.3.bb b/meta/recipes-support/sqlite/sqlite3_3.51.3.bb index c16576354a7..4073a48202b 100644 --- a/meta/recipes-support/sqlite/sqlite3_3.51.3.bb +++ b/meta/recipes-support/sqlite/sqlite3_3.51.3.bb @@ -20,4 +20,6 @@ SRC_URI += "\ file://CVE-2026-119372.patch \ file://CVE-2026-119378.patch \ file://CVE-2026-119376.patch \ + file://CVE-2026-119371-dependent.patch \ + file://CVE-2026-119371.patch \ " From patchwork Tue Nov 24 22:52:29 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 105492 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.30993.1795560770985614471 for ; Tue, 24 Nov 2026 14:52:51 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=YJWy7SBe; 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-4a2f4ca0dcfso2921894f8f.1 for ; Tue, 24 Nov 2026 14:52:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560769; x=1796165569; 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=sxy3LkzGBQ60uNa4m3/RzrP/sKHzgPxIpxBx8gQL7t4=; b=YJWy7SBe3vfKbqW6WheJA11O9V/YCMS2Mw6o5avOYPaF0F+jIxkzjmqzpGgwKergAO 31Kst6m2Rh5YCPkSQY3DgdejZtptycB7XGICWG+S7Xl0RdofF9Dt5Fn5A9poy+0aUnCP zXx/6IYWAkv5/7lFopNrrdIL34VAfKL/WWi7awrt00te1RUKh63RcXuop9ggzOxHPuEu 1wGyaqWLsUqu3vuldN/T33a2cF0+waj33sw7MG5HQP40MVhNX8YnuF+wb3q7qR6T7OWI VDGr42/2Q5/CMlRSa9KP0MsmnNF2ymr+ZyF7ZVgOJuz9FWIt7p9XFswbC5m72dEifMsh kY9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560769; x=1796165569; 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=sxy3LkzGBQ60uNa4m3/RzrP/sKHzgPxIpxBx8gQL7t4=; b=GBb77+Hx3Fv3Oq/YN4CO0lC9pFBzuSA1ZwDMxtHbxouc1IMlmt4cdTdych1KnQ2CEm FXUEjAWtm95WiOP18QKec6G6BxQ8lTLwjE15lsZfV5Id2Wxe7jfnbwLCCULIPYov69IV 5o5gu/upjh/wT3WqWgiQFGrvapEG5IFXPPj/Nm4kDPrgd7ddKmW9ojNOUs0JXZEC5BJY 8S8IH9zw0xL8wujDJk+kANo911MEiQk5UOTZiogq1S4YfZCraAUM+XMt9t/CNiqOCFxB uKGnbT/fW/BciqC+W/sWRQiFpTbT0xHipNb7jmPry3GCPy2sYWayW8APczy7+yQ6KUrm 1nwQ== X-Gm-Message-State: APuU4Z9lzZ62FXeYBhiEH8vKwu5BlGHabpcnWdt5hCMV0/9DeZgi9zY3 Z0klGFo2MjZRrAkBD+r54rwwow1fEKyrP6r/gcqq/xJo0ptpo74EGP1sJUDsYagcVp6GaHtcgyr 1RFgZoYU= X-Gm-Gg: AZFdTZeFrdLJ9Gy9GEiXPpWV++c9zgz2JUgINWZXnCjO5pCThSwtlrY75MHJtybYSyW 6pX0RCverEXZD5CvcX3M89sv1NVvge3UYOtvN+HTUQJpLLTRlJgTuGGXHwHjuErsFM9AXlJkAhB Mn08B58ZDkUOtBERPW5upJMcafb2OUDh+RPyQ7+KQSHRSqCPnUSkXDp1lKg1txbcI5VJCyyfSj5 4i4CM+N4IeTnLi7j3JcrP0eR2R1oD2kj0LgVKlHcJju4hZ72TqR2pX/beMvJ8gfLAwSvxkexDYI R0KBB7WhL3l757+RHUxv7QyUL5BrbJF+BD8eTLDc3jgOJxQlBNawPt9DUO87t/EbR2kUFbAE/OD +fYyVDn4AVSeUnVppzOvlthi3XY9pohgOBJBbyls5R624U9kwF/w/+Ejwk2H202SjAAzWQZr0Rm RxzxP5uHSyVoZK4U4f+MlJkHnEaTlnjHB6ndTAOgW2XajcZHjBllehNMhcyI9OAP/+3udlELRjL aDCEhPefxP8t5PWfO4r3LXRSwF0Ogz2Hi1zQl22vFV+NTTmlf8uoHFNfFwi4BZ4k/e/NZje/sQw ntVfVWUlPRGFIOcx1udrkPmDs6N9FCOgvqTEhisRNXrxR221fjrQ9Ma+8aIcR9V1XG52Cm6vySc +C7mbqrtsyvAasJwEubwbGhKNtNsU X-Received: by 2002:a05:6000:4812:b0:48d:b650:69aa with SMTP id ffacd0b85a97d-4abb55185e4mr30554767f8f.50.1795560769261; Tue, 24 Nov 2026 14:52:49 -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-4ad644140b5sm27446707f8f.17.2026.11.24.14.52.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:48 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][wrynose 12/21] sqlite3: fix CVE-2026-119591 Date: Tue, 24 Nov 2026 23:52:29 +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:53:01 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251114 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.51.3.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..3b616842fb4 --- /dev/null +++ b/meta/recipes-support/sqlite/sqlite3/CVE-2026-119591.patch @@ -0,0 +1,40 @@ +From 0894e1c6c54cde37d822bd1cb367fd1ed2765732 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 19ab450812..f3f10400c4 100644 +--- a/sqlite3.c ++++ b/sqlite3.c +@@ -154164,6 +154164,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.51.3.bb b/meta/recipes-support/sqlite/sqlite3_3.51.3.bb index 4073a48202b..6347fcd8d51 100644 --- a/meta/recipes-support/sqlite/sqlite3_3.51.3.bb +++ b/meta/recipes-support/sqlite/sqlite3_3.51.3.bb @@ -22,4 +22,5 @@ SRC_URI += "\ file://CVE-2026-119376.patch \ file://CVE-2026-119371-dependent.patch \ file://CVE-2026-119371.patch \ + file://CVE-2026-119591.patch \ " From patchwork Tue Nov 24 22:52:30 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 105493 X-Patchwork-Delegate: yoann.congal@smile.fr Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.30994.1795560771425593999 for ; Tue, 24 Nov 2026 14:52:51 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=j80u2Hfs; spf=pass (domain: smile.fr, ip: 209.85.221.44, mailfrom: yoann.congal@smile.fr) Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-4a7b8abe209so3907890f8f.0 for ; Tue, 24 Nov 2026 14:52:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560770; x=1796165570; 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=j80u2HfszA5RLAyKRfiUZwCCAt8ffj0HuHkoJTZQFBA5mX82vZy9T0Vte70zNM6m62 r/Xi/WGWLtVIRkpy9lVuEciGxLDubSOiJa7K/84y5PjRBkJOhC0p+kYj0WC0rWcd2Z0B jdc2sQ92mlx5R6mRYvz1RAK50gdTIGkzeXrGUWLoUTR6qZG1W5RahLRW6iTGM0xQrCM2 FPKkysvyVip6EZANRSGNPnXtRboiFCoIwUoNHbvXYczotlhBCGVKM8KtRQ7aVXuWRep9 /Zjc9cL/18qTr7uUk3TS+wdFIWP5yDwUv4shh6Z226dJAVsf78vNAlL2s+lro61a4m7n hnhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560770; x=1796165570; 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=DvWtdmaltHvY8+wQlnWSWsfPr+mLQG+XX++DP3DhraOCt6hY40mO1NbBgMomdJSubM 5nRkxD7Y+5qCOKky/haNmf0EOYdcyQbyjLlomyDx88a92YYo2o+l14JxJL/NRPSfKQrO KzC9nyLAGBlLRBppIZVBKX/f8PqWs/2leE2ja1+gsVAFWuB/dm5TMDY2T1jPsPqaGkny Y4roPfv7XRZ+yHBhQ2zMio4kV3fsfBPJKzc8RBhg++pl2UlbCZSuG1FDeszqjLjQhKvK FXIrZiOqdYQA8SqrGi7YV/375E+qbZG65oxWsWAR699G2ePB17qHB6IIoXJJJpBzwavG CnaA== X-Gm-Message-State: APuU4Z8R/m0S01AfaoTu6KRww3jqRz3cydRBv3B7G7QlZnq6uPJaSG7W NTeZ32y1XRp9mBw2szUre5WfcbigCkZMNVsGzPFfgieHO9X7PCDrlrzfXom4wbTcBygq8YKSR5U fDqmILrE= X-Gm-Gg: AZFdTZfGzV9TjORTh04Ga3Plrr2Np6C/nXLuXQ0G1HWTT9pQeDRcW80eIlPmJ1ZAOgA zLKcYLikFLqn/LRUTZkhuji83idbm3jY0jqrBE8OjGgsBL7TdJyJGDGsilxqCKjzwCKXejx4EYN RGfZ76ZiXsQu/NCMhzU+TQuQUv3/8DNwWi+9rVAyU4RsXrwjSIiCvxJOLjA29bJ9UPLmd7xJd8e 2KFg+SxYdr2WY21lAlO/E1flW3CEhNumkubtf7n+kba9mRsmW0gM+so7/9b3aepo3Qtec7DAujI 3iiE5RtO9AyY9PueSRNCslKwpcNTOUnv/Uo4jW3EWi5apB4sImHFxiu0SIfZPun9+OkBQxMEzu1 4vF4UmLJdXEtxm/pB3BdiqW/7ujR2onDJR+iJJ/tvzpD81aPNKwSvN9dQ5uf+QkDX8EePEKfgHJ ZPtE3RmJ5OZwRQZit8htn+pn8wPAl3D9awXYWEfgOeswde0w643hODtPyzeTFH7B1wi7+m83GTe 2zWNFiKXpNZDnX8Ig7PNjCTLEQHghcaTHA/TF4/w/uKtIINzDWPog8Au0NxnItLTTybUt5XB/nf 6Q+jRquuYa2qSiC9Q2MsfSyh2E0qeV+Q7+RXH60ytJbe20CUWN3xyQHn0Zr9mqvH8pn7dgk6YlZ Ps0CfgCYf9IAnqCMAq+mCKlLJaTCa X-Received: by 2002:a05:6000:2c04:b0:4ad:2699:74ec with SMTP id ffacd0b85a97d-4ad269975e8mr33024652f8f.39.1795560769713; Tue, 24 Nov 2026 14:52:49 -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-4ad644140b5sm27446707f8f.17.2026.11.24.14.52.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:49 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][wrynose 13/21] popt: correct CVE-2026-18739.patch metadata Date: Tue, 24 Nov 2026 23:52:30 +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:53:01 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251115 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:52:31 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 105494 X-Patchwork-Delegate: yoann.congal@smile.fr Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.31038.1795560772334562335 for ; Tue, 24 Nov 2026 14:52:52 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=GyqUOG6x; spf=pass (domain: smile.fr, ip: 209.85.128.52, mailfrom: yoann.congal@smile.fr) Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-4a35ac4475dso37933385e9.2 for ; Tue, 24 Nov 2026 14:52:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560770; x=1796165570; 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=GyqUOG6xuBXQaWYthJnbDTwXTDzPB31IQxBeWis8lXLWJewV6zdtucCEQ5jahnls1L MJpD2RYh9UjJCVrDhntumlDjXYw+VPViXU9tewpkbMBR+xDv/x19SUb0Gu7S2AVvTkIn D2fsdO0DR9YZT/eEC3z3srfuVK3DpDUNdjCH3NYODDo2a4FSO1br8NUDNie8eiSyUO8H rh0hDrn/NvO6tlSzSf58fTtX3pJXWfMUm5uzGFLdM8EC3dBJCfZsDSGTescjLh2cT7u/ MySYAW3PqkEkHkKmT366pHd90QZTjHhQ6aeV5B1VYBLGfbe97bRwwzdI1M/e0GuWtpqx 7OVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560770; x=1796165570; 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=AOeFFgHFA9Y6elOqN/yZjN3Y3mSSjmDZQs+b9CMj2R4hIoEkh7UkmTlS2E3oB9N2tp x3fqST+SVcvMNZkeUI9QqS10KeCw+nuepc0KxsJc9hRgo6Yvl0At/qdJACTXv5iBvjXc Ce7t8k6iuAt36YmO6jzba5xFeTOKk2Diad0aUnTxrBQWJHHZFz/lgeP6+h/DRbixo2q0 YBmI+QWwu1VKfhFixxx+wd6vr43rF0oAbQqU18mdSbu9fmyVvS6JYWLns3n0VF/Jo66S gLonKMLTh90hi8CnW6AcBRxmTA79XHuqPRnF+4eMF4paKUjKt3X7jNXUJDwM61a6CNvc BpgQ== X-Gm-Message-State: APuU4Z9Qdm/hjffbxN0zZRSoFKTZPSyj1IBDuvZmLDzx3nZVhV7Abn8c 76kTMOo/+RL2CvtnV8EhubQ4f3oigCRgzmXkIQScBJphiwMRBD2FZljCa3iiXUsjvOw+qAPdZSk icJ4nbS4= X-Gm-Gg: AZFdTZd5dN7rtf3c99X3JVEAJuAiSqHkcV/qD1bn1CWjQrIDh+ZFAApQ16cb1ISd2oA WPgguD6znkOydB4F84MpJK8jwKlDKUbeHtB1t8NnZcQFlk7UoKDMDB+reRBV56lKspc5WrvDTb/ OMKfb49poM0c6kNvOhlQxzGlXzhj0zaAJHuSquzL6CYAasniBjhpnoXPSMF9FpvgteS6iSNBDRL id4lMvPZUjkYFmFq7jn7SECG4GhiDUWHueMz6t/gqcpQV1R1W7tWElXupEix+m9IzdejT78CSgh h2imj8rCo+wsj9oakuaeE9jriCeG9lQaHAfqBkIKgNEY5kxaqkr3VuwHKiEHHFOfzi2SFZy01TP CHQDgrSPDxYNADx79DTylRPXbDhmv17PvAEYuJEwV8UDN9Db8/w5D9chdlb0NI6uI+gfbIjMPXN rZfoOMbNyLAL5j4mox0mGo97KwGFh2s1N9xoDXvYmYSn9UaHxjJdQRATc6nsfMAjiZTORmoJ7ji GnWqLr1LoqpFLdwMJMbkgZZO6nE/YVqjV650Y1Xui8J18ULo9mwt5Mm7WFl5G7dTy4B/nnLOKrf XCMqF0JOPEMsecprNGToTwXj4eFlyxV0HanJF1JcC5y/Raxi8mEtDCXGYJ29/CBWtSS7lPmcbNW Pj1bFqpPsEjRGUiOZAPcK6ma/UCmh X-Received: by 2002:a05:600c:6218:b0:4a0:1b14:e283 with SMTP id 5b1f17b1804b1-4bb887c341dmr348521965e9.1.1795560770343; Tue, 24 Nov 2026 14:52:50 -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-4ad644140b5sm27446707f8f.17.2026.11.24.14.52.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:49 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][wrynose 14/21] popt: patch CVE-2026-18839 Date: Tue, 24 Nov 2026 23:52:31 +0100 Message-ID: <6e463d4ce08a635cf6f797fbcb9303615526208e.1795560372.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:53:02 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251116 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:52:32 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 105495 X-Patchwork-Delegate: yoann.congal@smile.fr Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.30995.1795560772654116771 for ; Tue, 24 Nov 2026 14:52:52 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=odwDWqXG; spf=pass (domain: smile.fr, ip: 209.85.221.41, mailfrom: yoann.congal@smile.fr) Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-48e47347279so3033858f8f.1 for ; Tue, 24 Nov 2026 14:52:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560771; x=1796165571; 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=TquP3LS4C9Y+uC3J8C+p63AmpZstWe8gvcKOq5CzlPI=; b=odwDWqXGwRGDbodDbKtyTuHnfFDpfuZdQgpWYQiC/aMvgnm8iXt/Izvr0qmoTu7UTh eLwafk28IA4cOuUvaMK7f5vfYC77StvWzdcTxil/POR6pxnVotHvAPo703oKr/jx1zWm 6Nk3GJzImObJZ/aZnnBkpzZPxmk9RrbI9iTfVC3cDTk3KeUGfXQ13QyDFTqP+Uw0+PHK mO5yopBHpiD8AmwgGatQn5HybN9bFD7EDvG+V60iMwosGAHIJRzkUvfcmQcwFxsNl/tw 1c6r2Oeifzp8CXsZzOaon2IAWAtpCB+cwpuVpIYYQNK4GApr/WKeAqgIOHp4iJhNDLUb m7nQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560771; x=1796165571; 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=TquP3LS4C9Y+uC3J8C+p63AmpZstWe8gvcKOq5CzlPI=; b=okiu8/C+dDQGLX/Mau9jaw2BdUb1VGnRbbXUTgNF7egbC+/zFcwILclBJk0v0wbdNo e2JvyVA0V9bs5S5TbWWRwcMjheNk37dGZjJlLmaFTZ6UMDh/5JnHJRkBxV/alo0fpljy URq0AX25h6u3mHB3fAU/IQTUNXWJBxHtP5g9aWsnUIsFWHbhL6OkZ/nrS1JCPHFJ9G8m zHopHR45BjumVm+RAeYweHIoJhs7fMfsh2f7ABH2bC2/vN5vnz8dg7lYrAJsShtB/+2x Oy3a7IBMzqibnBud8gm7mfCeqc/dBF3kYojx/uzhyMIGmGqy4X04x1qPxsUaWosSSwgl qvUg== X-Gm-Message-State: APuU4Z/Jadtaqe2FfJI0aUORsganOHNHKOmrf8UYN8Lq/kHN/r3SwUTf DSGVeKyrvze0gKtUs6LiqfGpAF0d+fauF7GrxltH7xheXS6Ure7KMZN9iS+Y/ZmUTKZxMiale95 ubwFgDuc= X-Gm-Gg: AZFdTZe1iqm2/3cqsrN8ZgCEezbn/ojb4dveJYK/A+WFU0XUi8LjS0i9AbYWijn6kFR xop6aHljBCjQGVOpj17uEdmXojY4riwpTwfgLZdOAnH0iGd9HoXpfYRgAkmHuQxiYLNuqD92JN9 k0bxGSzAl1WmR/wVD86d9rtjA/XavN8fgtJZ0ka37hQxQgQdxqX5XMwyD9oPdN+andIFsGQo/PE xaNaiILxnAcQolBv3gKg3jUCyQQ+wlLN4Omz0OgSO4tb0AuM5bwxL8jhRK6Xft5p7h1yh3IMFsT JbnGIYHhYcr+JDJ+dV4Qg4H+ID7gOhOHGINq/VdOKdqM6n1h4s6aCTrxX8tsE9DB+Xm/skR4ENO rvMK/cmPBjkO/mtxObJrw4FbrAXhbt+2LJkJG6WJ60lRGkbHEgj4SJtTelZb+IT/XfogWo8cc5v rkTqP0Do3YN4MHj9jlKvT7ieIeBCVLNadX4Ma8uQe0pc+HzIW8qCOsqZP/4jhtIQ9P3NgTyQ4a1 iQ4mPmk0gC/ZoaaVzYagwJ0Z7R0PYF2OrboU2EPPPsiVV1zfAvdblhZCaWp2n+wTVgaFK/UFVq2 FHej1SBQOEgXur97tIIFJt4DyV8q2Et7bo+1m53z8iYvg5sJO4y3IBnAwd1cTXnLvUk7v8Taw5v thYv1n+1rBc3LNx+nrigAoqhut6nF X-Received: by 2002:adf:e197:0:b0:4a4:14db:233b with SMTP id ffacd0b85a97d-4abb3678774mr27463519f8f.12.1795560770962; Tue, 24 Nov 2026 14:52:50 -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-4ad644140b5sm27446707f8f.17.2026.11.24.14.52.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:50 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][wrynose 15/21] aspell: upgrade 0.60.8.2 -> 0.60.8.3 Date: Tue, 24 Nov 2026 23:52:32 +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:53:02 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251117 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 5b4fab7c354..6ac547887b0 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 | 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:52:33 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 105496 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.msgproc01-g2.30996.1795560773310447876 for ; Tue, 24 Nov 2026 14:52:53 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=DHAL7QOl; 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-4a9be758734so3196989f8f.1 for ; Tue, 24 Nov 2026 14:52:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560771; x=1796165571; 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=DHAL7QOlK4ypZoGkfheJVOTudhZSQNu80zhSc6+3k/u/f3gievxT4SUrchDvGtBRuD /8+GXQplJGRlrzr0j0Q6NcsYiR4ASFfDoUckf1iBZCKhLu38cI3ocdKXxcvto9s6zY/R xl4wk/my/AOzNtEeXPe/Jxvq172LNb7GADYBKJZZ5rzcA4o1J1AZ3JjXzeRRDOo73l8n EHVVUebxhZPGNo9K4iX95bvKju3GrQeAnZub6R2QenF/Y+vZKIXPwF1/qKR1hfFmZmtT 2E6VogAKvhuNbl6zL+AvXA8M4dVA+s/CHNGC9PMWYP5FD8rRHgJm5kPCM2FBWEebUd+u Q7JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560771; x=1796165571; 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=KxDu6s422klJbZt5u3jUVTyEwlbGms+el2OMLaASV8pIf6iqDLZbhOpi+xJ/U8IaB3 MbvelP2mIp5WKuS3dXjty4h5Bzvl+sAP49pILeBI0hwTX5WocqbSd532bp95hDeWU1j5 JThKKTz/6rgBDV6LMsPtxDCvf5ROAJaDzzOyMSXEiUTMCNKffqsdR7aXaJKL8HPNSYfj /PXAZKPI2x4Sf20omvW2yuwezJ0mJY8MXQ2BRbU0giYOaEpsaMs8oboSQodV0H7k91re NFJ4SnKcrJAtl2kfKS4aaaOd0CjSFh0riOQ6+jsGy8n70y29dZ4aBhkN8L2JUoZRgny2 p2Rw== X-Gm-Message-State: APuU4Z/6YlWHZKkAtMCcNijbGuBHKlyIEt7WcvfZK4rsRRMZGD9ndWdD 37X2oDEFP6VFMqPMKOtQm4wlDReNhe8OYjBbCgXuc85t3fqY2qgjTDnbl4BuJp80/KpiUImWdKZ 0tg7SAro= X-Gm-Gg: AZFdTZew39k6shInVuhF1DecSS3l1YfHhemzUlhh4J3z1J4ADRbA2t0kCE1lT1fP+Yz 09zhllZ5V6A1hoe/QaSdliE984dDSRU3TXG1fN54M3cMAgt6q85RYo/K1jaL0OgP7bjrezijWow TPBOOSUL1Z4MmfA0Iw5wok6dEWygkHEIIm+k7dlbxD2x7T90o5wHysdDXR04JOzZ8JUNm/Y2CA0 CAAf7KPgjnEoInvar1DhbZfpyXkHD2BDdFlyTW4xuK8o5iLZ0N6hZGGNa3oUVZfzq98ZLQriBfF qQl8VSE0szSSI4zbKZaIv72/E5jQNHNzNOQ8d9IKS4/A6HnsHEA+VGJ16082vfA/WqeA1mzMDlG b/W+qOxk2LXX23ImOxY03zhU/UMfG5usxZE4NjLgQuatPNpfByZztMJQuPMg+02tpmG3G9WIlNp xkfbhji9E+1waezzezvs2cCHhsg/XRbFR5txRKXKJZP6d3eVjhYHN1L1mJcezGuYuDtzzKZegSL gNwsycIH/RfbPZ5EmH3qYO6hfDHmJ9+t/AJ963xXvRSFdjdKWGya/IfHeImbhn8AkKMhL7G5d1v cwBVo/NODU1PrrWdik6G7rdUqnm9OEVRlH6S0QHiZmJ/6IGyEkXFuSR/5JJVrv81x752XcJWqag p6esTmtPBHHh+LoOJvUW14+LrqyiUpNuJlRujal1sHzk1lb+qSQ== X-Received: by 2002:a05:6000:1788:b0:492:3176:3d6f with SMTP id ffacd0b85a97d-4abb400aefcmr30038925f8f.47.1795560771396; Tue, 24 Nov 2026 14:52:51 -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-4ad644140b5sm27446707f8f.17.2026.11.24.14.52.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:51 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][wrynose 16/21] libsndfile1: patch CVE-2024-50613 Date: Tue, 24 Nov 2026 23:52:33 +0100 Message-ID: <6af14e8624947439a10e1c8c1dc83c0903f30d1b.1795560372.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:53:02 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251118 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:52:34 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 105497 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.30997.1795560773988894217 for ; Tue, 24 Nov 2026 14:52:54 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=o6zX0AV5; 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-490c3ae81d3so3187525f8f.2 for ; Tue, 24 Nov 2026 14:52:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560772; x=1796165572; 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=o6zX0AV543tMhJdsf39avq42L2RMRXOrvilo3uKU2LdAqVsB0p5yc2VdXE6mERL8Qm 33VujDupCK7c6mQ5+e/33kZKeG72K9gXwby2oPveMrQF8YQdnWhCyTyK0EOeRn7ypeTw Y+cSXNPqRWUUYryhhldYGWuJHqg44lQXugib/kPnD/RhWmLUpFLpK26OylBOHUmJ6Hpj Ko7gOkRrCqYA75W2YuVHVqUUneT9s8AtgrjuEp5/K+lO1CYuzqQJPLaqg29DSqjV9rt1 PBzKRr9Ccm7SrXxigZWHMfip4NKBj65oqiYuJgvoSw9yO53S3KPtlMEo2R/IDFoYeRxw D5lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560772; x=1796165572; 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=XXDfhDLhYGU2686u2X5N2iV3mhyTT1LgMgW5Mm4R+xM6nFcjHUU7+eQUMy1JOEU0v5 j51uXGrBXJcxyKM0F2EaT5bppajre+X2RLvvmjn10BSZg7ZA5kZDsUlXhU1UK7iCDuOt 9ShnOvqPH7MqsjIthj9UxC6ljqkZR6dKDoPKAdodvlj2rQCcgfl+LOVNrlAuLTXNa6g5 1N2S8QXpUgrf+8gKhrOd9+MwVnaZ/sGGrSvdombDXKudiNpN0u6Kxln2trZyPgLSLgaC A0EDdJm9rDmW+ckl2hdCbAU6E6fHl3pW7NwMcR4UHqSzvaI4qi4mQscKbGv5UN7dVkfR OyRA== X-Gm-Message-State: APuU4Z9MLKRFeMoYWpy/hzZ3N6qaf63hxE4u8ysgyO31mCI+wQ16D+bP bABxCZvsH9L4NgLcvIsEYp0RwlRxBLkiCUCcwWtuEHkmvckFmhnV1K4DVghFc3IBYin9cP71WQs t81rxCgA= X-Gm-Gg: AZFdTZcPxQXyBYOV2gc/H5u3QIx3acjNcBjPDV+eH5FwCd1tzxUDm94FsKx/Kgdlj/y 4CdzEGiyQkjTh2NaKIh/faeqlmcwsNaTxueRboF84lsDML0r/CYG9rwsbwaXtMdmyYrK2L6ijm7 8F5zOgi6bxUWbmhcUglZooV8kb2MySquqhEJZzWMjhoU12yxrypo1g8kyQKYa8kNaeqRurrR747 Bnxd8ZhYvsp4HVOMsnnV+res3fyePqlL4ygA0sRTcisVewfh0ym28MVtw354u2xTdRhEOmIgmvr M94zzaKryaPVFhSdOLG36nrRjvIGlKjsqIfnRDLF8BH3Wng/3gf4RMZ71L27I1tDeW4Rd2kPd+i 0bBSFJWrXQSr/LK5waCHMe801TnwaCG2MqQQKfZ1i6l3M61s4MtaJN1NRhKcqPE904COKheyZr2 FmPHi9qpdz2oQOiHSzRysJkpZ10uvPSv4VxMxwi0IRBtluP64JNldha7+Pz2uXk36IVvmWQecmi tlYg6u4wwQIGA5iOzPvAa1Q098+c2yz9VDHCqrQWDkPhTSksChQpZRg2hKL4iZoaR1jSgGr6jfF Hmh2M54ELm+0Rh37a1HAnLaXY0Ge8suuDSRjB4MnMF0JMJxQsOtZO19M3qLJlfWY2L2fe8j2Vd/ YgOssS+yqqUsNFMy/QewsOK+DEu4j X-Received: by 2002:a05:600c:4e0b:b0:4bb:6f45:2a79 with SMTP id 5b1f17b1804b1-4bb88817920mr350465375e9.22.1795560772238; Tue, 24 Nov 2026 14:52:52 -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-4ad644140b5sm27446707f8f.17.2026.11.24.14.52.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:51 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][wrynose 17/21] libsndfile1: patch CVE-2025-52194 Date: Tue, 24 Nov 2026 23:52:34 +0100 Message-ID: <8ff1072d37e89936c5dbf0c80054e0f4a0480a7b.1795560372.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:53:02 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251119 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:52:35 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 105491 X-Patchwork-Delegate: yoann.congal@smile.fr Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.31040.1795560774743648005 for ; Tue, 24 Nov 2026 14:52:55 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=paIr7PDy; spf=pass (domain: smile.fr, ip: 209.85.128.49, mailfrom: yoann.congal@smile.fr) Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-4bb72b44a97so44187475e9.0 for ; Tue, 24 Nov 2026 14:52:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560773; x=1796165573; 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=paIr7PDyc8cge038ovPMMB4hL6o4TvwLXVMyYyOJZXAE+rMZajWxNnRfjX6wZkxqlC C56dmdsGtxsOkYQ9SoQJcfAC9Sk31qR3zgLn1q1Ja2iI6aTxnspVUO53VRpy8u4F9olf nLH5fBPLxnlFpHnGmpWJFLeaXRIrdJRD6GfZgYNWcAbGVfFWHFCfg6rH7OHFHf2+hkks pfnC+M2FwsijitlxtPd0t8vh1F4V1+0EcUDMmE5VYl8KQwCA1ztxIBzwxnsLUxaCTjvW Kf0UNSnmnH6ewTp8AGVErkGZRFQwp3g0SARq+H4N+Zh3ScSPUY0H8O1+tlxX5yO9BvCe Td5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560773; x=1796165573; 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=mB1ivdHpIheekM5UjcJGbkkDJm29JMGeZYjA2mxjtn+r6gkEExv0u8zHh7aQBaEPy1 2ObEwxOcdcBcWPw3rCJ9OWRWL3vj2htfhopFNZh33TYx22inXG7wZqeNZjXR5vRarcLC PRPD7RKoauiviG34Xk5/noFn7DAeC4MCEY5yVshz3PpH3lBRZ5/BAsKbpEWcVRNz5YCz fLIfUeyckjswqgPqsQmxeez7Bg9f+4XpVVb4S0hy0FbYKnuXJDIfLe6qcnu30TN5h4VV W37ercFybqu4jf6WSri9LpkdK7gAPSVkc5VipwodOdTn9ZYcIIN+JtCEzV86ZYfzXnAr Zpnw== X-Gm-Message-State: APuU4Z8b0n8+HyW1VUeLjW1JjzdmILVP9suK5RiI/qNcf2aSPZ8lCjdV iWjBcXsqmn+kqfPKgb62KMdTMbrb209eqQk+smwIkG+99l9/maLXIBDZUJ4F8QLMuzEh99vZHuo bZjjrr1E= X-Gm-Gg: AZFdTZe9285cymMMEk+kr2URStqFehYfZa5YuHPOl3MNnpirBVQ4ZrZShmP3q3Tw/7f RRTKrXDP+Z0W6MwK9NOCId89LoY9e/Jy540LxTD7cQ15PginNyguGfRMP7vHZNfO+84ignNGo/d ysOeNDf542iSOgF/93TeVN7M3MKMwhiqf2nJFh/mk46WLVXlZEI29sRqQVwRrxxlp1auAg/nIrN Hf53NK3EPCvmgjhH22cyg8KiN02+U80ShvYy8RnbLE1QHS2tlOxV5I78AhiqYqyCqlR20SVJsP7 kgDaqMeJpm8sMyheBobDLdo2dpYKuTw0jYGlOs8ZYFDUdDQ9giF7ZLw8Fgsg80+oiO/2V0Bkslx UY+sUzmdALSljL3aI2C3NQtLIaoUFPBbVXt13x639+9yD5V7b7MYSnma+NtJXLo7iWhTlwomdWn WxkGwf1RLLEqozC1u+fq9SsAX+NPJ4hsIYceTA3hmz+KjUoowlp/BRDAi7T0C/8PEckxhDHIhF+ aCXwD8YyeEr+mLLEAdx/kyB6tq04yo0VYYyiBIkiFCz0SUWBGktNec1lAympMzB7z+bDB0bGYLy RyaW46p0J2oy+thTE3kTV+JLpxYOPYlZH7rgUhxuz5VnX24wPhhwWBPoVoNqWRaGn06lE/n9LEH sO00Su6d8+C4rz7tDLBHFovWLXM5M X-Received: by 2002:a05:600c:a11:b0:4a2:e0c:2b0a with SMTP id 5b1f17b1804b1-4bb888120famr332712245e9.16.1795560772765; Tue, 24 Nov 2026 14:52:52 -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-4ad644140b5sm27446707f8f.17.2026.11.24.14.52.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:52 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][wrynose 18/21] libsndfile1: patch CVE-2026-109828 Date: Tue, 24 Nov 2026 23:52:35 +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:53:01 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251120 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:52:36 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 105498 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.31041.1795560775322591217 for ; Tue, 24 Nov 2026 14:52:55 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=BdqGdn3j; 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-4aa5833c263so4898437f8f.2 for ; Tue, 24 Nov 2026 14:52:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560773; x=1796165573; 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=BdqGdn3jzE7HLWF7HL8EVVSCLEmYAKDMMMnyEOkeQJqzk2iEm+loHQLqzo4UBdb6q6 9qSQHA8iyTM+ix4WvXL2S7Uf79uKpme+TeEC6WC6gJ0d3Ey407JRViKxmd69mJ3wfTn8 /E+w8nnKHn4UCwkOvis3JYLwghi1coDwsmjdWF8iHGOfhG26mzcaQPBs0p/sTBk6qZgH UkmvJy0/3u350FZ6D4eFy0mtbqQws/Pr4Wyp1oGU+oJYSoFR3shrkFppOYIH738CFr4b 8Jbq1gKrwvBU/tWHlo5sJrFej9MXAoisFTNcLdtWFcdecSZ5iIPrOpSom0CzCcLKC1Cx DzZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560773; x=1796165573; 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=Y+qjvEmQhj+ShHGlUW9d74JTDtYSuCcWiJxRt2INX8a9PkOfIRQTCjhmTS6AWw/wXU Dh3iGCbIwQBhj6YErVysLcJF/BXRRtJltSqxrTMhRplzZ8o2oqsLSJ5Yf3Hd/+hHur3v 556ap7xmzBZmzXyXC+q7u94pxp7U3x6MHP0c0bd+wMg9X+vSz5XQUfYqLtKGnEFFcmCT 6E4wMtpTAB/lbGiO99RwwYucr+P+IAENV1nNccj43QOYi/JLq3sB2YCN8seYIffjSuJs pSChU1sPwCjtM/Gjn8FQSi5nAJqa3PbuB2mMjpOx4+JsssT4Yrexi2IrROck/oImkPB1 6eVA== X-Gm-Message-State: APuU4Z8Wf0sTGK1vJzFQxLQ78O+AO7QesdhR0gDJuWlzfdHZp/iaTmW1 EXxycTTBzLQHwSrMsLR8pmodTGUZQXu/A5sicwQX2bSCHFpRzernk5cxvdPt4MvOU8rq/uRaF08 lIUQUhgE= X-Gm-Gg: AZFdTZekN6KoMW2lFRnimfotTDsvYzqCdzgou+6zXGqLiaaFfh3RYI3gAy7N11F0WkH 61OK7FXWpP2PBy9rpiSwyHti4teiXbwn+BKSnunXnQWmJX49Hj0R6jFFJ36AyDvC3rT6A3H8/8l gYMH5KC5NuqRPOrbz/CnEb+VDoINf1SXKFfNrtDq77ZMWjgzdked7N3jbUYMPNlEtAS6dqMwPc8 cbZcyZYXzvwmwz1QVrRp6yXOuDleL2srZgjkfysRYUlwf7oJWUkcdU40mUxSLCvJWAAsIgIYYIb jcnnti2M7c/Qiuz9iKoi1cXSCtbPD5PiLOHF0tnwWhoL23S25C48blQNd8ouNl5lVbBQj98y1Br Vhx0ZUkyQlifXDZEn4lV/EmhR0pihKOhbkDoeJwBeRecT+U21jmnHHNQTmAlBmxEPWd3Og836ZD D+LAqPKvZyRU3h4vn+DjryBiOxPHbhh1SbirROHPBAyPsrB8xf8vSN1ZiJEU7mr4wN9D/pWWnY4 7zEXBYvWKT4zpcpHMNJfsEIeBHBW9FmzXk12Czb9YqkEnIOVX6q1Dk1YdfnixPll7F0dhJu6yPV NBKKFM9E76GQdbJry1VbKLPM7Vnrd8sWopEWz4DcgcXEVoMW/qyOe9lFt3GyTFY9/cHyqyB3CAW NsKf+SZwPASOE3YDtoI/n6t2eF906 X-Received: by 2002:a05:600c:45d4:b0:4bb:6994:abf0 with SMTP id 5b1f17b1804b1-4bb88817d91mr346551885e9.23.1795560773530; Tue, 24 Nov 2026 14:52:53 -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-4ad644140b5sm27446707f8f.17.2026.11.24.14.52.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:52 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][wrynose 19/21] speex: patch CVE-2026-116741 Date: Tue, 24 Nov 2026 23:52:36 +0100 Message-ID: <5ba43f49922f56e37067b8bd9850b93926fdbde5.1795560372.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:53:02 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251121 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:52:37 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 105489 X-Patchwork-Delegate: yoann.congal@smile.fr Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.30998.1795560775921376695 for ; Tue, 24 Nov 2026 14:52:56 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=VwCHjyEY; spf=pass (domain: smile.fr, ip: 209.85.128.45, mailfrom: yoann.congal@smile.fr) Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-4bb606491faso27816635e9.3 for ; Tue, 24 Nov 2026 14:52:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560774; x=1796165574; 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=RgGoxuCmiTeGiu3qW5aB2fKNU7VicF7cYF1wHPw+uhU=; b=VwCHjyEYxxyr7fcpd2o1WgMGAk/DukAcPQj0r7ZvsZpvP+uHgSmA3uJDXA+pJcdBPd cnizdfM1zhrCwfDQi8EaOfBO5vNBNjulAqffOIhXiyP+Dq7pqcsrtbiGJxcwm1IXAS+X LbPsdhBAmfSmJncRyePEc5lYZQvgBI54UTvrc/foKYDGADtP55NNmcVKdDy1KJNHy1gN zCnYfdcFiSqkqREzENtb40Win1yLKrBHNbauBau4hFsYP6kQYYwD4gFL6i+8193b8/sE DUKE04zrKyFHZT349oNF1KG7ib0S/PIGbKawl5164hLwHtGdIGj1/EGRwql8VyyS1fZP /pIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560774; x=1796165574; 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=RgGoxuCmiTeGiu3qW5aB2fKNU7VicF7cYF1wHPw+uhU=; b=y2Tkpxhp/x/s7xHTX3SU+jH2p1gAIqNp+JrKG0ZIXuo0nqj4+xhSSzsmDnXe+Ter3C QojTWziJcVq3dlXpv0Xt40tR7jDNlr8ReoUpZ+j7DoeCOufBcKlZaAO4bmXW0j3epBJ1 3bdy/q9XGKG4t+aNU05KfqmOJotDaNnMHQ69TfBTSkEKUJh9c1QNfW1oHwPbAyLQ3/pW 8uAlS8qQyn+3t7+72JpClDCrlBAxENba56jzBALr24HSdhqSqOgjzheIkHvyryvRmykC MA5HGXsClrfupYzmfyG2iKV/2LnZwGzGOqzByc6dvaY6nDv7BNKUhcq2u98RqluTeI2A shww== X-Gm-Message-State: APuU4Z8Afzg6lPsue3PJlSvyXB/BJWsEEqqIf1ZiWYaNhBj2+HvKnGWA wqNm8bHrFUGcDucctZLNgYcqUl5xqsuIpoxPbhiGyimkxwU07/NY8syZhL/Q0kFCxB+5dDnbruM IkDYVxR4= X-Gm-Gg: AZFdTZdMQfIo9PaYolKa+BFPgLVXbEjI0srLEfxb7Gw10Uk5ARZ9BYmMxnrv6ili/tS ZxpYUT4lcd5KiEgUInhmDCDkrpFucnYqGA+QOmyyhWBFEuSjp4eLTFG5Xk5oOCliS0dOxHzK6ww JKwtyGehlCb/GJpLU6/lC3YexSU0UY4ZhfGsYVxkZiE2ryAdJ70/37zB4ZqRLJS51DFnY3ZxtV1 HA9K3wqw73f5u0y3SCHV1MRFdM43W56jj3h3P9ly+nySpwyHMy7tLtQr0yb/zunguG1F+iSzzuW adI+3dvP01sqmdJ5kDPeQE+RJo2RZaxNmO6Gfx20l/MvkxjMBq5tPS/h7cVn3D4q+SmYFT7VZe/ KyTiDmgAcSqUci4tRG36I2WO201Psl4JIm9e8wb8VKpfiysLKZLxkgKnMsc+VHDIlWS9akqL3K8 h7B/k1ughzMdHxVVa/jRBQLi4rn/laYLfKObVkVkLJZIHqqDs3/pDCPJuIPfw5ACCyFxZgz1f7H AmTaG9HeY4jLy/kmC8HiNzTtu8Ip/Kqj9VGhdsuKzI2bon2YDWGfTAwJ+C7WVRqnKA6ir59KBmr IsMZ7z4qiGDQKn4EF41OUHKRJVpyASkuI3+jw6dcEGyE4gUrl4jUpnCGiDFUCS/uw/MQbuAsV8z Bjv4N2ME94dcb4BKNjHKQ0dCcgH4C X-Received: by 2002:a05:600c:840d:b0:4bb:6814:738c with SMTP id 5b1f17b1804b1-4bb88820cedmr331623895e9.22.1795560774201; Tue, 24 Nov 2026 14:52:54 -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-4ad644140b5sm27446707f8f.17.2026.11.24.14.52.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:53 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][wrynose 20/21] tzdata/tzcode-native: upgrade 2026e -> 2026f Date: Tue, 24 Nov 2026 23:52:37 +0100 Message-ID: <49fb90798d707358ee9fe1308c37f4f3af58bb26.1795560372.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:53:01 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251122 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: Vijay Anusuri 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 eb439701997..59cc50dedc6 100644 --- a/meta/recipes-extended/timezone/timezone.inc +++ b/meta/recipes-extended/timezone/timezone.inc @@ -6,7 +6,7 @@ SECTION = "base" LICENSE = "PD & BSD-3-Clause" 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:52:38 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoann Congal X-Patchwork-Id: 105490 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.msgproc02-g2.31042.1795560776557309517 for ; Tue, 24 Nov 2026 14:52:56 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@smile.fr header.s=google2 header.b=mwqc3MEo; 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-49a92144733so2502864f8f.0 for ; Tue, 24 Nov 2026 14:52:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile.fr; s=google2; t=1795560775; x=1796165575; 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=W9xBG8vivGwOxHo8gxUhCuqg88dlwjlKchblVdgt/Vg=; b=mwqc3MEokYp8b+Xuq1MtvSpqSIpf92T5Inkyf8Lg9MYewwiAMEUlGgRE/lPeruFCQw BinXIzBEy7kNCQGtmfjRjGuaz4tgHETUQ0C8ROZBvzuSooUzW2knd52dIB04KinIDxlz pjsm5NzDt2ECuE3mbyLE6tB3Yyne/tOels6JKssb9fLvgtGq0BdEJNBTXfR9cpIKykxd WB1X1HjS0sypvR2YBUkWDHQd35QrvGW7RCckY4y8AyGdkHdstydVG8yhW0ldxZEFMjRV WwCBT5D0IM31HUB5ZkmL4rJ4CJYqUnZyNQdrWYrd/Si/Ej0AqN94WI1OsRdJEx4Bkntt RwRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795560775; x=1796165575; 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=W9xBG8vivGwOxHo8gxUhCuqg88dlwjlKchblVdgt/Vg=; b=dT97ff2eHpCEz+SzE5geSKQj67M75e5pSpcAxd9zMrCkzjICZc1oPv5p21x9MFOIdg gVzpQjsHhN90AHbpOTHWHNgpCk1iJy5zACtBUcxoUp/Y9Byleqfdg8ZBT6pBkQ/r71CD T54tXy3vyRIi1hZO/seTpxiQ6VPxvGRngYTb4e7mrs4Ytsgxox/8Uq7PVBOmR2LLRF/E pMoRab2n+8hyke0mwF7GpM4B9n5CggdxmwfiPuAvv9fBlsmtlKQdZNYyzidwGYzFi48N Tuij6g6YBVP86ISJHEoYV6KHmBeBcD9YpvTiNjkHOMR53OJ6UMBhUrJ2fOAdp8c3aNCm 3N0A== X-Gm-Message-State: APuU4Z+EwGEGOj9Y2PwXFaMHZi07ZWYGo6EFLQPaH9/PfzWQ3nYPBrrv oiuramkYiWbjLxGX3VFZlCf4DeR2wNRswvb7qm8RSvOjXiUxba6eO8jtBSmiMKiI+51IYSoCKt2 YP1bcZKQ= X-Gm-Gg: AZFdTZcu1w/oyHsRET4bbh9pQjaRYfObDLHcUaiPFUrKEU/9rT/7lN4cMIrbrgX4hrJ G4L+OEcKgiHMmIR58c567O3LkxPLRi3KbucYHAl0JOmdU8STXUgMnR0EisXim2GnYEfH7LdS2fA ec5IE+me/nEPMSe/9w0aBeYG0df3kUi3glzashpjkMJJHIr+rIgVfKUalweupVv6KDrVgWnBNi1 gdG9uAXc06a32oFde/5s4GT8wxa0RdpcRrzhm25mFR50yhNceg2xP73UO8MzEruzNut20zepoPb Ri6fTs4P5bKVHvP/R8B6cO71If7wMW05fT3BYo7zyX21BUN48GISV5k2wiOTx+gAp7UI3bR27ZP MZQNgN0UgTkijVnYHgEMKOZ7Eb9xa5JqsRvbj3t+is0zuWXTj8QGeVFI85J2g82vvoc1fVfeTkO JqfxvxyJp5EUxBbOoxKdJCmqnxX/zX2e7v24k+zB0D1wlTvgOryQHFV8cz0Ro6VC1cd/bulYNnu EOwSIvsAz1qg9S2JEUmxm+UQGPYicz2w7lVLkEgvLUaGs5QRHNmEqEyv+/0H0h4zGWSTSN5MOfx R3HxIwBMbQbWMsPNAQKlhnZ7sbs4dwRBuBVrXircR7Rl58Bwrrx/Lq9occPus0+CXkIp1cA4YS0 vW+5dC1G4Wluxi78JSp0YTXi3oeW0 X-Received: by 2002:a05:6000:1865:b0:4b8:75e5:301d with SMTP id ffacd0b85a97d-4b875e5306amr4350953f8f.0.1795560774809; Tue, 24 Nov 2026 14:52:54 -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-4ad644140b5sm27446707f8f.17.2026.11.24.14.52.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 14:52:54 -0800 (PST) From: Yoann Congal To: openembedded-core@lists.openembedded.org Subject: [OE-core][wrynose 21/21] python3-certifi: correct license to MPL-2.0 Date: Tue, 24 Nov 2026 23:52:38 +0100 Message-ID: <1dc4b90903b014a610c753ce0cc65b343a17796b.1795560372.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:53:01 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251123 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 0a3ad7dac51..e71d34d5310 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"