From patchwork Sat Dec 5 22:21:04 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Marko X-Patchwork-Id: 107518 Received: from mta-65-227.siemens.flowmailer.net (mta-65-227.siemens.flowmailer.net [185.136.65.227]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.4631.1796509271544218245 for ; Sat, 05 Dec 2026 14:21:12 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=peter.marko@siemens.com header.s=fm1 header.b=Yv/+M/qx; spf=pass (domain: rts-flowmailer.siemens.com, ip: 185.136.65.227, mailfrom: fm-256628-20261205222109700f5e74b2000207ba-mmshfd@rts-flowmailer.siemens.com) Received: by mta-65-227.siemens.flowmailer.net with ESMTPSA id 20261205222109700f5e74b2000207ba for ; Sat, 05 Dec 2026 23:21:09 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=peter.marko@siemens.com; h=from:from:sender:to:to:cc:cc:subject:subject:content-type:content-transfer-encoding:content-transfer-encoding:Date:Message-ID:MIME-Version; bh=vHApxcaHLGySxxUEVxFyK2TYqFMeQY7q3LdIDReaV+0=; b=Yv/+M/qxN1/MbHKwLG8s1uxdOak5r2POLzqVm7lT0+HhGiMe37L0HYr02OIbshKUZz/vOH 5A87Skgy8VDM7F3K15UgJomeS1MTT49ICTwN/Uh7fKOKS25i/QWXerz5h19Fp+18IwPkSuBy NUfKSXTb/lNa4D/qn/dvYVfR2q+QIhCLK9YVZdhvUghY7r4QFuqBqE28viz9m9MyYQ3yafcA QGE4Eedh8PpVvwhIPoCYRWhDkePNAgZ/7Gkb1iiqYqHaq4JT15CYXxVJpA9WzDJkTsbqEYMG vcv73vClBPgUeI3aLrfbAm6nP6revuVT9BpJignVEjavNXUDiD2CnpSQ==; From: Peter Marko To: openembedded-core@lists.openembedded.org Cc: Peter Marko Subject: [scarthgap][PATCH v2 1/2] glibc: patch CVE-2026-100290 Date: Sat, 5 Dec 2026 23:21:04 +0100 Message-ID: <20261205222105.1894548-1-peter.marko@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-256628:519-21489:flowmailer 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 ; Sat, 05 Dec 2026 22:21:21 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/252120 From: Peter Marko Pick patch referencing this CVE from 2.41 branch (oldest release still receiving security updates). Signed-off-by: Peter Marko --- .../glibc/glibc/0051-CVE-2026-100290.patch | 472 ++++++++++++++++++ meta/recipes-core/glibc/glibc_2.39.bb | 1 + 2 files changed, 473 insertions(+) create mode 100644 meta/recipes-core/glibc/glibc/0051-CVE-2026-100290.patch diff --git a/meta/recipes-core/glibc/glibc/0051-CVE-2026-100290.patch b/meta/recipes-core/glibc/glibc/0051-CVE-2026-100290.patch new file mode 100644 index 00000000000..6eaa34071b0 --- /dev/null +++ b/meta/recipes-core/glibc/glibc/0051-CVE-2026-100290.patch @@ -0,0 +1,472 @@ +From 92b93a3bc26c9f56e8347bc47ec047f9639fc6da Mon Sep 17 00:00:00 2001 +From: Adhemerval Zanella +Date: Wed, 11 Nov 2026 10:57:38 -0300 +Subject: [PATCH] posix: Fix double free after allocation failure in regcomp + and regexec (BZ 34991, CVE-2026-100290) + +The re_dfa_add_node and build_range_exp grow paired arrays with consecutive +reallocs and store the results only after all of them succeed. If a +later realloc fails, the structure keeps pointers to freed blocks, and +the cleanup frees them again (BZ 31935). Store each result as soon as +its realloc succeeds, as gnulib commit 9db7e04d15 did for +re_dfa_add_node. + +Also, the match_ctx_add_entry frees bkref_ents when growing it fails but +keeps thepointer, so match_ctx_free frees it again. Keep the old array +instead. + +The tst-regcomp-bracket-free now also covers the re_dfa_add_node and +build_range_exp paths. + +Checked on x86_64-linux-gnu and i686-linux-gnu. + +(cherry picked from commit 2a605083deb2c26e93b3be9943f5139e932c9f96) + +CVE: CVE-2026-100290 +Upstream-Status: Backport [https://sourceware.org/git/?p=glibc.git;a=commit;h=92b93a3bc26c9f56e8347bc47ec047f9639fc6da] +Signed-off-by: Peter Marko +--- + posix/Makefile | 1 + + posix/regcomp.c | 18 +-- + posix/regex_internal.c | 22 ++- + posix/regexec.c | 5 +- + posix/tst-regcomp-bracket-free.c | 223 ++++++++++++++++++++++++++----- + 5 files changed, 212 insertions(+), 57 deletions(-) + +diff --git a/posix/Makefile b/posix/Makefile +index 5358a3f8c1..7238bee174 100644 +--- a/posix/Makefile ++++ b/posix/Makefile +@@ -543,6 +543,7 @@ $(objpfx)tst-regexloc.out: $(gen-locales) + $(objpfx)tst-rxspencer.out: $(gen-locales) + $(objpfx)tst-rxspencer-no-utf8.out: $(gen-locales) + $(objpfx)tst-regcomp-truncated.out: $(gen-locales) ++$(objpfx)tst-regcomp-bracket-free.out: $(gen-locales) + endif + + # If we will use the generic uname implementation, we must figure out what +diff --git a/posix/regcomp.c b/posix/regcomp.c +index 5c486cee56..76c26e5889 100644 +--- a/posix/regcomp.c ++++ b/posix/regcomp.c +@@ -2758,19 +2758,17 @@ build_range_exp (const reg_syntax_t syntax, + are NULL if *range_alloc == 0. */ + new_array_start = re_realloc (mbcset->range_starts, wchar_t, + new_nranges); ++ if (new_array_start != NULL) ++ mbcset->range_starts = new_array_start; + new_array_end = re_realloc (mbcset->range_ends, wchar_t, + new_nranges); ++ if (new_array_end != NULL) ++ mbcset->range_ends = new_array_end; + + if (__glibc_unlikely (new_array_start == NULL + || new_array_end == NULL)) +- { +- re_free (new_array_start); +- re_free (new_array_end); +- return REG_ESPACE; +- } ++ return REG_ESPACE; + +- mbcset->range_starts = new_array_start; +- mbcset->range_ends = new_array_end; + *range_alloc = new_nranges; + } + +@@ -2990,15 +2988,17 @@ build_range_exp (bitset_t sbcset, re_charset_t *mbcset, Idx *range_alloc, + new_nranges = 2 * mbcset->nranges + 1; + new_array_start = re_realloc (mbcset->range_starts, uint32_t, + new_nranges); ++ if (new_array_start != NULL) ++ mbcset->range_starts = new_array_start; + new_array_end = re_realloc (mbcset->range_ends, uint32_t, + new_nranges); ++ if (new_array_end != NULL) ++ mbcset->range_ends = new_array_end; + + if (__glibc_unlikely (new_array_start == NULL + || new_array_end == NULL)) + return REG_ESPACE; + +- mbcset->range_starts = new_array_start; +- mbcset->range_ends = new_array_end; + *range_alloc = new_nranges; + } + +diff --git a/posix/regex_internal.c b/posix/regex_internal.c +index b3b2b7d58a..6463a676af 100644 +--- a/posix/regex_internal.c ++++ b/posix/regex_internal.c +@@ -1430,24 +1430,22 @@ re_dfa_add_node (re_dfa_t *dfa, re_token_t token) + if (__glibc_unlikely (new_nodes == NULL)) + return -1; + dfa->nodes = new_nodes; ++ dfa->nodes_alloc = new_nodes_alloc; + new_nexts = re_realloc (dfa->nexts, Idx, new_nodes_alloc); ++ if (new_nexts != NULL) ++ dfa->nexts = new_nexts; + new_indices = re_realloc (dfa->org_indices, Idx, new_nodes_alloc); ++ if (new_indices != NULL) ++ dfa->org_indices = new_indices; + new_edests = re_realloc (dfa->edests, re_node_set, new_nodes_alloc); ++ if (new_edests != NULL) ++ dfa->edests = new_edests; + new_eclosures = re_realloc (dfa->eclosures, re_node_set, new_nodes_alloc); ++ if (new_eclosures != NULL) ++ dfa->eclosures = new_eclosures; + if (__glibc_unlikely (new_nexts == NULL || new_indices == NULL + || new_edests == NULL || new_eclosures == NULL)) +- { +- re_free (new_nexts); +- re_free (new_indices); +- re_free (new_edests); +- re_free (new_eclosures); +- return -1; +- } +- dfa->nexts = new_nexts; +- dfa->org_indices = new_indices; +- dfa->edests = new_edests; +- dfa->eclosures = new_eclosures; +- dfa->nodes_alloc = new_nodes_alloc; ++ return -1; + } + dfa->nodes[dfa->nodes_len] = token; + dfa->nodes[dfa->nodes_len].constraint = 0; +diff --git a/posix/regexec.c b/posix/regexec.c +index fc1310025f..ecff734788 100644 +--- a/posix/regexec.c ++++ b/posix/regexec.c +@@ -4142,10 +4142,7 @@ match_ctx_add_entry (re_match_context_t *mctx, Idx node, Idx str_idx, Idx from, + new_entry = re_realloc (mctx->bkref_ents, struct re_backref_cache_entry, + mctx->abkref_ents * 2); + if (__glibc_unlikely (new_entry == NULL)) +- { +- re_free (mctx->bkref_ents); +- return REG_ESPACE; +- } ++ return REG_ESPACE; + mctx->bkref_ents = new_entry; + memset (mctx->bkref_ents + mctx->nbkref_ents, '\0', + sizeof (struct re_backref_cache_entry) * mctx->abkref_ents); +diff --git a/posix/tst-regcomp-bracket-free.c b/posix/tst-regcomp-bracket-free.c +index 3c091d8c44..1feb6cb3b9 100644 +--- a/posix/tst-regcomp-bracket-free.c ++++ b/posix/tst-regcomp-bracket-free.c +@@ -1,4 +1,4 @@ +-/* Test regcomp bracket parsing with injected allocation failures (bug 33185). ++/* Test regcomp parsing with injected allocation failures (bug 33185). + Copyright (C) 2025 Free Software Foundation, Inc. + This file is part of the GNU C Library. + +@@ -19,15 +19,25 @@ + /* This test invokes regcomp multiple times, failing one memory + allocation in each call. The function call should fail with + REG_ESPACE (or succeed if it can recover from the allocation +- failure). Previously, there was double-free bug. */ ++ failure). Previously, there were double-free bugs on the partial ++ allocation-failure paths of parse_bracket_exp (bug 33185), ++ re_dfa_add_node and build_range_exp (bugs 31935 and 34991). ++ ++ To detect these deterministically, the allocator is interposed and ++ every pointer it hands out is tracked while a regcomp call is in ++ progress. */ + + #include ++#include + #include ++#include ++#include + #include + #include + #include + #include + #include ++#include + + /* Data structure allocated via MAP_SHARED, so that writes from the + subprocess are visible. */ +@@ -39,8 +49,12 @@ struct shared_data + /* If this number is reached, one allocation fails. */ + volatile unsigned int failing_allocation; + +- /* The subprocess stores the expected name here. */ +- char name[100]; ++ /* Incremented by the free interposer when a double free or a free of ++ a stale pointer is detected during a tracked call. */ ++ volatile unsigned int corruption; ++ ++ /* Set nonzero if the tracking registry overflows. */ ++ volatile unsigned int overflow; + }; + + /* Allocation count in shared mapping. */ +@@ -60,7 +74,81 @@ fail_this_allocation (void) + return false; + } + +-/* Failure-injecting wrappers for allocation functions used by glibc. */ ++/* While TRACKING is set, every pointer returned by the allocator is recorded, ++ and free is validated against the recorded set. The registry itself never ++ allocates. */ ++enum { HEAP_MAX = 8192 }; ++static void *heap_ptr[HEAP_MAX]; ++static bool heap_live[HEAP_MAX]; ++static size_t heap_count; ++static bool tracking; ++ ++static void *(*real_malloc) (size_t); ++static void *(*real_calloc) (size_t, size_t); ++static void *(*real_realloc) (void *, size_t); ++static void (*real_free) (void *); ++ ++static void __attribute__ ((constructor)) ++resolve_allocator (void) ++{ ++ real_malloc = xdlsym (RTLD_NEXT, "malloc"); ++ real_calloc = xdlsym (RTLD_NEXT, "calloc"); ++ real_realloc = xdlsym (RTLD_NEXT, "realloc"); ++ real_free = xdlsym (RTLD_NEXT, "free"); ++} ++ ++static void ++heap_track_reset (void) ++{ ++ heap_count = 0; ++} ++ ++static void ++heap_record_alloc (void *p) ++{ ++ if (p == NULL) ++ return; ++ for (size_t i = 0; i < heap_count; ++i) ++ if (heap_ptr[i] == p) ++ { ++ heap_live[i] = true; ++ return; ++ } ++ if (heap_count < HEAP_MAX) ++ { ++ heap_ptr[heap_count] = p; ++ heap_live[heap_count] = true; ++ ++heap_count; ++ } ++ else if (shared != NULL) ++ shared->overflow = shared->overflow + 1; ++} ++ ++/* Result of validating a free against the tracking registry. */ ++enum heap_free_status ++{ ++ HEAP_FREE_OK, /* P was live and is now marked released. */ ++ HEAP_FREE_DOUBLE, /* P was already released (double or stale free). */ ++ HEAP_FREE_UNTRACKED, /* P is not tracked (allocated before tracking). */ ++}; ++ ++/* Mark P as released and report whether the free is valid. */ ++static enum heap_free_status ++heap_record_free (void *p) ++{ ++ for (size_t i = 0; i < heap_count; ++i) ++ if (heap_ptr[i] == p) ++ { ++ if (!heap_live[i]) ++ return HEAP_FREE_DOUBLE; ++ heap_live[i] = false; ++ return HEAP_FREE_OK; ++ } ++ return HEAP_FREE_UNTRACKED; ++} ++ ++/* Failure-injecting, tracking wrappers for the allocation functions ++ used by glibc. */ + + void * + malloc (size_t size) +@@ -70,8 +158,10 @@ malloc (size_t size) + errno = ENOMEM; + return NULL; + } +- extern __typeof (malloc) __libc_malloc; +- return __libc_malloc (size); ++ void *p = real_malloc (size); ++ if (tracking) ++ heap_record_alloc (p); ++ return p; + } + + void * +@@ -82,8 +172,10 @@ calloc (size_t a, size_t b) + errno = ENOMEM; + return NULL; + } +- extern __typeof (calloc) __libc_calloc; +- return __libc_calloc (a, b); ++ void *p = real_calloc (a, b); ++ if (tracking) ++ heap_record_alloc (p); ++ return p; + } + + void * +@@ -94,8 +186,33 @@ realloc (void *ptr, size_t size) + errno = ENOMEM; + return NULL; + } +- extern __typeof (realloc) __libc_realloc; +- return __libc_realloc (ptr, size); ++ void *p = real_realloc (ptr, size); ++ if (tracking && p != NULL) ++ { ++ if (ptr != NULL && p != ptr) ++ heap_record_free (ptr); ++ heap_record_alloc (p); ++ } ++ return p; ++} ++ ++void ++free (void *ptr) ++{ ++ if (ptr == NULL) ++ return; ++ if (tracking) ++ { ++ if (heap_record_free (ptr) == HEAP_FREE_DOUBLE) ++ { ++ /* Record it and drop the free so the heap is not corrupted ++ further. */ ++ if (shared != NULL) ++ shared->corruption = shared->corruption + 1; ++ return; ++ } ++ } ++ real_free (ptr); + } + + /* No-op subprocess to verify that support_isolate_in_subprocess does +@@ -105,6 +222,27 @@ no_op (void *ignored) + { + } + ++/* regcomp flags for the pattern under test. */ ++static int test_cflags; ++ ++static int ++compile_tracked (const char *regexp) ++{ ++ regex_t reg; ++ heap_track_reset (); ++ shared->corruption = 0; ++ shared->overflow = 0; ++ tracking = true; ++ int ret = regcomp (®, regexp, test_cflags); ++ tracking = false; ++ if (ret == 0) ++ regfree (®); ++ TEST_COMPARE (shared->corruption, 0); ++ /* A registry overflow means tracking was incomplete. */ ++ TEST_COMPARE (shared->overflow, 0); ++ return ret; ++} ++ + /* Perform a regcomp call in a subprocess. Used to count its + allocations. */ + static void +@@ -114,8 +252,7 @@ initialize (void *regexp1) + + shared->allocation_count = 0; + +- regex_t reg; +- TEST_COMPARE (regcomp (®, regexp, 0), 0); ++ TEST_COMPARE (compile_tracked (regexp), 0); + } + + /* Perform regcomp in a subprocess with fault injection. */ +@@ -125,8 +262,7 @@ test_in_subprocess (void *regexp1) + const char *regexp = regexp1; + unsigned int inject_at = shared->failing_allocation; + +- regex_t reg; +- int ret = regcomp (®, regexp, 0); ++ int ret = compile_tracked (regexp); + + if (ret != 0) + { +@@ -137,11 +273,39 @@ test_in_subprocess (void *regexp1) + } + } + ++static void ++run_pattern (const char *regexp, int cflags, const char *locale) ++{ ++ test_cflags = cflags; ++ ++ /* Disable fault injection before switching locale, setlocale must not ++ see an injected failure. */ ++ shared->failing_allocation = ~0U; ++ xsetlocale (LC_ALL, locale == NULL ? "C" : locale); ++ ++ /* Count the allocations of a successful call. */ ++ support_isolate_in_subprocess (initialize, (void *) regexp); ++ ++ /* The number of allocations in the successful case, plus some ++ slack. Once the number of expected allocations is exceeded, ++ injecting further failures does not make a difference. */ ++ unsigned int maximum_allocation_count = shared->allocation_count; ++ printf ("info: pattern \"%s\" (locale %s) performs %u allocations\n", ++ regexp, locale == NULL ? "C" : locale, maximum_allocation_count); ++ maximum_allocation_count += 10; ++ ++ for (unsigned int inject_at = 0; inject_at <= maximum_allocation_count; ++ ++inject_at) ++ { ++ shared->allocation_count = 0; ++ shared->failing_allocation = inject_at; ++ support_isolate_in_subprocess (test_in_subprocess, (void *) regexp); ++ } ++} ++ + static int + do_test (void) + { +- char regexp[] = "[:alpha:]"; +- + shared = support_shared_allocate (sizeof (*shared)); + + /* Disable fault injection. */ +@@ -150,23 +314,18 @@ do_test (void) + support_isolate_in_subprocess (no_op, NULL); + TEST_COMPARE (shared->allocation_count, 0); + +- support_isolate_in_subprocess (initialize, regexp); ++ /* Bracket expression parsing (parse_bracket_exp, bug 33185). */ ++ run_pattern ("[:alpha:]", 0, NULL); + +- /* The number of allocations in the successful case, plus some +- slack. Once the number of expected allocations is exceeded, +- injecting further failures does not make a difference. */ +- unsigned int maximum_allocation_count = shared->allocation_count; +- printf ("info: successful call performs %u allocations\n", +- maximum_allocation_count); +- maximum_allocation_count += 10; ++ /* NFA node array growth in re_dfa_add_node (bug 34991). The initial ++ nodes_alloc is the pattern length + 1; the interval duplicates the ++ 'a' node 64 times, so the node arrays are grown several times. */ ++ run_pattern ("a{64}", REG_EXTENDED, NULL); + +- for (unsigned int inject_at = 0; inject_at <= maximum_allocation_count; +- ++inject_at) +- { +- shared->allocation_count = 0; +- shared->failing_allocation = inject_at; +- support_isolate_in_subprocess (test_in_subprocess, regexp); +- } ++ /* Range array growth in build_range_exp (bugs 31935 and 34991). A ++ multibyte locale stores the ranges in the mbcset arrays, and ++ multiple ranges force the growth realloc. */ ++ run_pattern ("[a-bc-de-fg-hi-jk-lm-no-pq-rs-t]", 0, "en_US.UTF-8"); + + support_shared_free (shared); + diff --git a/meta/recipes-core/glibc/glibc_2.39.bb b/meta/recipes-core/glibc/glibc_2.39.bb index d306e7b0a7c..0aed7240c2c 100644 --- a/meta/recipes-core/glibc/glibc_2.39.bb +++ b/meta/recipes-core/glibc/glibc_2.39.bb @@ -79,6 +79,7 @@ SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \ file://0048-CVE-2026-97399.patch \ file://0049-CVE-2026-86805-CVE-2026-95818.patch \ file://CVE-2026-84243.patch \ + file://0051-CVE-2026-100290.patch \ " S = "${WORKDIR}/git" B = "${WORKDIR}/build-${TARGET_SYS}" From patchwork Sat Dec 5 22:21:05 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Marko X-Patchwork-Id: 107519 Received: from mta-64-227.siemens.flowmailer.net (mta-64-227.siemens.flowmailer.net [185.136.64.227]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.4636.1796509298082416997 for ; Sat, 05 Dec 2026 14:21:38 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=peter.marko@siemens.com header.s=fm1 header.b=k6Z8B/Ry; spf=pass (domain: rts-flowmailer.siemens.com, ip: 185.136.64.227, mailfrom: fm-256628-20261205222136a21ba4e4be00020794-btbwkd@rts-flowmailer.siemens.com) Received: by mta-64-227.siemens.flowmailer.net with ESMTPSA id 20261205222136a21ba4e4be00020794 for ; Sat, 05 Dec 2026 23:21:36 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=peter.marko@siemens.com; h=from:from:sender:to:to:cc:cc:subject:subject:content-type:content-transfer-encoding:content-transfer-encoding:References:In-Reply-To:Date:Message-ID:MIME-Version; bh=cj5Lh9l1ffZnbGnB0n4cdPH3Dl/9ZYbhdiRqEMXGMfw=; b=k6Z8B/Ry69HNIJ4Blco709hshGLcTmUZTZjQrX81HH4+1cwF/4AX/yJ7MD5lG1AUAeo2FD nFSjPdZSmCUteRrN9UgyCUJlrpPNIZt17LQYEM2CH8K0alM4EN1OqOho4GTHzbSj+alakK24 RVQ1sdIQkQbxgB9e0Ktg0DEMhuHBlr2sxmDErMGopciseu4b1NGkCx3zcE+2rSvK8ydGMvib QfZD+3g7IsDe2a5Mjs4allyT9bs9k6XPK8xyRv4V8whdlbh2tzmzzsKnMW77QHEi+v1CYdTr v5zbIY1bOE35UIjIIXzCHrKo2bmWZAc58Nb7T9DKtAMFxROg+sPCtllA==; From: Peter Marko To: openembedded-core@lists.openembedded.org Cc: Peter Marko Subject: [scarthgap][PATCH v2 2/2] glibc: stable 2.39 branch updates to 34688bd97e Date: Sat, 5 Dec 2026 23:21:05 +0100 Message-ID: <20261205222105.1894548-2-peter.marko@siemens.com> In-Reply-To: <20261205222105.1894548-1-peter.marko@siemens.com> References: <20261205222105.1894548-1-peter.marko@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-256628:519-21489:flowmailer 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 ; Sat, 05 Dec 2026 22:21:41 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/252121 From: Peter Marko Update SRCREV to pull the latest fixes from the upstream release/2.39/master branch, including fixes for the following CVEs: * CVE-2026-115819 CVE marked in commit message in commit list below * CVE-2026-121758 (https://sourceware.org/bugzilla/show_bug.cgi?id=34774) * CVE-2026-124024 (https://sourceware.org/bugzilla/show_bug.cgi?id=34914) * CVE-2026-126765 (https://sourceware.org/bugzilla/show_bug.cgi?id=34993) per https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b42be3d484e0593a96215dd315b2c8a4eff1a356 Refresh patch with a minor conflict in test makefile. Commits between the old SRCREV (b7a0de2c8f) and the new SRCREV (34688bd97e): 34688bd97e posix: Fix double free after allocation failure in glob (BZ 34993) 386a4a93af powerpc: Fix stack buffer overflow in loader error messages (bug 34541) 1614eaca96 elf: Consume hex arguments in _dl_exception_create_format length pass d542541863 iconv: ISO-2022-CN-EXT: fix SO handling without a designation (bug 34774) c0ebe959a3 stdio-common: Fix double null terminator in wide scanf %s and %[ (BZ 34989, CVE-2026-115819) 462704f624 aarch64: Fix SVE tanf mixed-lane results [BZ #34922] 2351f67353 linux: Add C++ and multiple inclusion guards to sys/pidfd.h (BZ 34752) Testing Results: +--------------+--------+--------+------+ | Result | Before | After | Diff | +--------------+--------+--------+------+ | FAIL | 222 | 222 | 0 | | PASS | 4939 | 4941 | +2 | | XFAIL | 16 | 16 | 0 | | XPASS | 4 | 4 | 0 | | UNSUPPORTED | | 227 | 0 | +--------------+--------+--------+------+ Changes in testcases: Before After posix/tst-glob-nospace --- PASS stdio-common/tst-wscanf-nul --- PASS Signed-off-by: Peter Marko --- meta/recipes-core/glibc/glibc-version.inc | 2 +- meta/recipes-core/glibc/glibc/0032-CVE-2026-5450.patch | 4 ++-- meta/recipes-core/glibc/glibc_2.39.bb | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/meta/recipes-core/glibc/glibc-version.inc b/meta/recipes-core/glibc/glibc-version.inc index 1f4f372c13b..3dd74e40a70 100644 --- a/meta/recipes-core/glibc/glibc-version.inc +++ b/meta/recipes-core/glibc/glibc-version.inc @@ -1,6 +1,6 @@ SRCBRANCH ?= "release/2.39/master" PV = "2.39+git" -SRCREV_glibc ?= "b7a0de2c8f68722cfdfc735b8358a3a6559ec0eb" +SRCREV_glibc ?= "34688bd97ea6c6fb101ae553cebe03378cbe9fe0" SRCREV_localedef ?= "cba02c503d7c853a38ccfb83c57e343ca5ecd7e5" GLIBC_GIT_URI ?= "git://sourceware.org/git/glibc.git;protocol=https" diff --git a/meta/recipes-core/glibc/glibc/0032-CVE-2026-5450.patch b/meta/recipes-core/glibc/glibc/0032-CVE-2026-5450.patch index 631b63f4654..bdddb1c18d7 100644 --- a/meta/recipes-core/glibc/glibc/0032-CVE-2026-5450.patch +++ b/meta/recipes-core/glibc/glibc/0032-CVE-2026-5450.patch @@ -33,9 +33,9 @@ index ac098dcd8a..72c18e5dc1 100644 tst-vfprintf-width-prec-alloc \ + tst-vfscanf-bz34008 \ tst-wc-printf \ + tst-wscanf-nul \ tstdiomisc \ - tstgetln \ -@@ -401,6 +402,9 @@ tst-printf-bz18872-ENV = MALLOC_TRACE=$(objpfx)tst-printf-bz18872.mtrace \ +@@ -403,6 +404,9 @@ tst-printf-bz18872-ENV = MALLOC_TRACE=$(objpfx)tst-printf-bz18872.mtrace \ tst-vfprintf-width-prec-ENV = \ MALLOC_TRACE=$(objpfx)tst-vfprintf-width-prec.mtrace \ LD_PRELOAD=$(common-objpfx)/malloc/libc_malloc_debug.so diff --git a/meta/recipes-core/glibc/glibc_2.39.bb b/meta/recipes-core/glibc/glibc_2.39.bb index 0aed7240c2c..28c517c0763 100644 --- a/meta/recipes-core/glibc/glibc_2.39.bb +++ b/meta/recipes-core/glibc/glibc_2.39.bb @@ -19,7 +19,7 @@ easier access for another. 'ASLR bypass itself is not a vulnerability.'" CVE_STATUS_GROUPS += "CVE_STATUS_STABLE_BACKPORTS" CVE_STATUS_STABLE_BACKPORTS = "CVE-2024-2961 CVE-2024-33599 CVE-2024-33600 CVE-2024-33601 CVE-2024-33602 CVE-2025-0395 \ CVE-2025-4802 CVE-2025-5702 CVE-2025-8058 CVE-2025-15281 CVE-2026-0861 CVE-2026-0915 \ - CVE-2026-4046 CVE-2026-4437 CVE-2026-4438" + CVE-2026-4046 CVE-2026-4437 CVE-2026-4438 CVE-2026-115819 CVE-2026-121758 CVE-2026-124024 CVE-2026-126765" CVE_STATUS_STABLE_BACKPORTS[status] = "cpe-stable-backport: fix available in used git hash" DEPENDS += "gperf-native bison-native"