* [OE-core][walnascar 00/15] Patch review
@ 2025-07-14 16:22 Steve Sakoman
0 siblings, 0 replies; 17+ messages in thread
From: Steve Sakoman @ 2025-07-14 16:22 UTC (permalink / raw)
To: openembedded-core
Please review this set of changes for walnascar and have comments back by
end of day Wednesday, July 16
Passed a-full on autobuilder:
https://autobuilder.yoctoproject.org/valkyrie/#/builders/29/builds/2000
The following changes since commit c855be07828c9cff3aa7ddfa04eb0c4df28658e4:
build-appliance-image: Update to walnascar head revision (2025-07-04 07:52:57 -0700)
are available in the Git repository at:
https://git.openembedded.org/openembedded-core-contrib stable/walnascar-nut
https://git.openembedded.org/openembedded-core-contrib/log/?h=stable/walnascar-nut
Archana Polampalli (1):
openssl: upgrade 3.4.1 -> 3.4.2
Changqing Li (4):
icu: fix CVE-2025-5222
libsoup-2.4: fix CVE-2025-4945
libsoup: fix CVE-2025-4945
mingetty: fix do_package warning
Divya Chellam (1):
libarchive: fix CVE-2025-5915
Khem Raj (2):
webkitgtk: Fix build break on non-arm/non-x86 systems
webkitgtk: Use gcc to compile for arm target
Peter Marko (1):
python3: update CVE product
Praveen Kumar (1):
sudo: upgrade 1.9.17 -> 1.9.17p1
Wang Mingyu (3):
sudo: upgrade 1.9.16p2 -> 1.9.17
libpam: upgrade 1.7.0 -> 1.7.1
ruby: upgrade 3.4.3 -> 3.4.4
Yogesh Tyagi (1):
ltp: backport patch to fix compilation error for Skylake
-march=x86-64-v3
Yogita Urade (1):
webkitgtk: upgrade 2.48.1 -> 2.48.2
.../{openssl_3.4.1.bb => openssl_3.4.2.bb} | 2 +-
.../recipes-devtools/python/python3_3.13.4.bb | 2 +-
...Obey-LDFLAGS-for-the-link-of-libruby.patch | 6 +-
...eproducible-change-fixing-784225-too.patch | 6 +-
.../ruby/{ruby_3.4.3.bb => ruby_3.4.4.bb} | 2 +-
.../libarchive/libarchive/CVE-2025-5915.patch | 217 ++++++++++++++++++
.../libarchive/libarchive_3.7.9.bb | 5 +-
...cve-2015-3290-Disable-AVX-for-x86_64.patch | 42 ++++
meta/recipes-extended/ltp/ltp_20250130.bb | 1 +
.../mingetty/mingetty_1.08.bb | 2 +-
...ect-check-for-existence-of-two-prepr.patch | 40 ----
.../pam/{libpam_1.7.0.bb => libpam_1.7.1.bb} | 3 +-
...o.conf.in-fix-conflict-with-multilib.patch | 6 +-
meta/recipes-extended/sudo/sudo.inc | 2 +-
.../{sudo_1.9.16p2.bb => sudo_1.9.17p1.bb} | 2 +-
...ebkitgtk_2.48.1.bb => webkitgtk_2.48.2.bb} | 4 +-
.../icu/icu/CVE-2025-5222.patch | 166 ++++++++++++++
meta/recipes-support/icu/icu_76-1.bb | 1 +
.../libsoup/libsoup-2.4/CVE-2025-4945.patch | 117 ++++++++++
.../libsoup/libsoup-2.4_2.74.3.bb | 1 +
.../libsoup/libsoup/CVE-2025-4945.patch | 118 ++++++++++
meta/recipes-support/libsoup/libsoup_3.6.5.bb | 1 +
22 files changed, 686 insertions(+), 60 deletions(-)
rename meta/recipes-connectivity/openssl/{openssl_3.4.1.bb => openssl_3.4.2.bb} (99%)
rename meta/recipes-devtools/ruby/{ruby_3.4.3.bb => ruby_3.4.4.bb} (98%)
create mode 100644 meta/recipes-extended/libarchive/libarchive/CVE-2025-5915.patch
create mode 100644 meta/recipes-extended/ltp/ltp/0001-cve-2015-3290-Disable-AVX-for-x86_64.patch
delete mode 100644 meta/recipes-extended/pam/libpam/0001-meson.build-correct-check-for-existence-of-two-prepr.patch
rename meta/recipes-extended/pam/{libpam_1.7.0.bb => libpam_1.7.1.bb} (97%)
rename meta/recipes-extended/sudo/{sudo_1.9.16p2.bb => sudo_1.9.17p1.bb} (96%)
rename meta/recipes-sato/webkit/{webkitgtk_2.48.1.bb => webkitgtk_2.48.2.bb} (97%)
create mode 100644 meta/recipes-support/icu/icu/CVE-2025-5222.patch
create mode 100644 meta/recipes-support/libsoup/libsoup-2.4/CVE-2025-4945.patch
create mode 100644 meta/recipes-support/libsoup/libsoup/CVE-2025-4945.patch
--
2.43.0
^ permalink raw reply [flat|nested] 17+ messages in thread
* [OE-core][walnascar 00/15] Patch review
@ 2025-08-21 15:39 Steve Sakoman
2025-08-21 15:39 ` [OE-core][walnascar 01/15] elfutils: Fix CVE-2025-1352 Steve Sakoman
` (14 more replies)
0 siblings, 15 replies; 17+ messages in thread
From: Steve Sakoman @ 2025-08-21 15:39 UTC (permalink / raw)
To: openembedded-core
Please review this set of changes for walnascar and have comments back by
end of day Monday, August 25
Passed a-full on autobuilder:
https://autobuilder.yoctoproject.org/valkyrie/#/builders/29/builds/2244
The following changes since commit 347cb0861dde58613541ce692778f907943a60ea:
build-appliance-image: Update to walnascar head revision (2025-08-15 09:08:50 -0700)
are available in the Git repository at:
https://git.openembedded.org/openembedded-core-contrib stable/walnascar-nut
https://git.openembedded.org/openembedded-core-contrib/log/?h=stable/walnascar-nut
Harish Sadineni (1):
binutils: Fix gprofng broken symbolic link with gp-*
Markus Volk (1):
glib-2.0: update 2.84.0 -> 2.84.1
Martin Jansa (2):
pkgconfig: fix build with gcc-15
bash: use -std=gnu17 also for native CFLAGS
Patryk Seregiet (1):
linux-firmware: fix FILES to drop RDEPENDS on full package
Peter Marko (3):
glib-2.0: update 2.84.2 -> 2.84.4
glib-2.0: patch CVE-2025-6052
go: upgrade 1.24.5 -> 1.24.6
Praveen Kumar (1):
glib-2.0: update 2.84.1 -> 2.84.2
Soumya Sambu (6):
elfutils: Fix CVE-2025-1352
elfutils: Fix CVE-2025-1365
elfutils: Fix CVE-2025-1371
elfutils: Fix CVE-2025-1372
elfutils: Fix CVE-2025-1376
elfutils: Fix CVE-2025-1377
...on-Run-atomics-test-on-clang-as-well.patch | 2 +-
...ot-enable-pidfd-features-on-native-g.patch | 2 +-
.../glib-2.0/files/CVE-2025-6052-1.patch | 97 +++++++++++
.../glib-2.0/files/CVE-2025-6052-2.patch | 35 ++++
...664e6f1a29e0d5f301979f6d168b08435a61.patch | 75 ---------
...l_2.84.0.bb => glib-2.0-initial_2.84.4.bb} | 0
...{glib-2.0_2.84.0.bb => glib-2.0_2.84.4.bb} | 0
meta/recipes-core/glib-2.0/glib.inc | 7 +-
.../binutils/binutils-2.44.inc | 1 +
.../0020-Fix-for-borken-symlinks.patch | 62 +++++++
.../elfutils/elfutils_0.192.bb | 6 +
.../elfutils/files/CVE-2025-1352.patch | 154 ++++++++++++++++++
.../elfutils/files/CVE-2025-1365.patch | 152 +++++++++++++++++
.../elfutils/files/CVE-2025-1371.patch | 41 +++++
.../elfutils/files/CVE-2025-1372.patch | 51 ++++++
.../elfutils/files/CVE-2025-1376.patch | 57 +++++++
.../elfutils/files/CVE-2025-1377.patch | 68 ++++++++
.../go/{go-1.24.5.inc => go-1.24.6.inc} | 2 +-
...e_1.24.5.bb => go-binary-native_1.24.6.bb} | 6 +-
..._1.24.5.bb => go-cross-canadian_1.24.6.bb} | 0
...{go-cross_1.24.5.bb => go-cross_1.24.6.bb} | 0
...osssdk_1.24.5.bb => go-crosssdk_1.24.6.bb} | 0
...runtime_1.24.5.bb => go-runtime_1.24.6.bb} | 0
.../go/{go_1.24.5.bb => go_1.24.6.bb} | 0
...0001-Do-not-use-bool-as-a-field-name.patch | 36 ++++
.../pkgconfig/pkgconfig_git.bb | 1 +
meta/recipes-extended/bash/bash_5.2.37.bb | 3 +
.../linux-firmware/linux-firmware_20250311.bb | 6 +-
28 files changed, 779 insertions(+), 85 deletions(-)
create mode 100644 meta/recipes-core/glib-2.0/files/CVE-2025-6052-1.patch
create mode 100644 meta/recipes-core/glib-2.0/files/CVE-2025-6052-2.patch
delete mode 100644 meta/recipes-core/glib-2.0/files/aee0664e6f1a29e0d5f301979f6d168b08435a61.patch
rename meta/recipes-core/glib-2.0/{glib-2.0-initial_2.84.0.bb => glib-2.0-initial_2.84.4.bb} (100%)
rename meta/recipes-core/glib-2.0/{glib-2.0_2.84.0.bb => glib-2.0_2.84.4.bb} (100%)
create mode 100644 meta/recipes-devtools/binutils/binutils/0020-Fix-for-borken-symlinks.patch
create mode 100644 meta/recipes-devtools/elfutils/files/CVE-2025-1352.patch
create mode 100644 meta/recipes-devtools/elfutils/files/CVE-2025-1365.patch
create mode 100644 meta/recipes-devtools/elfutils/files/CVE-2025-1371.patch
create mode 100644 meta/recipes-devtools/elfutils/files/CVE-2025-1372.patch
create mode 100644 meta/recipes-devtools/elfutils/files/CVE-2025-1376.patch
create mode 100644 meta/recipes-devtools/elfutils/files/CVE-2025-1377.patch
rename meta/recipes-devtools/go/{go-1.24.5.inc => go-1.24.6.inc} (91%)
rename meta/recipes-devtools/go/{go-binary-native_1.24.5.bb => go-binary-native_1.24.6.bb} (79%)
rename meta/recipes-devtools/go/{go-cross-canadian_1.24.5.bb => go-cross-canadian_1.24.6.bb} (100%)
rename meta/recipes-devtools/go/{go-cross_1.24.5.bb => go-cross_1.24.6.bb} (100%)
rename meta/recipes-devtools/go/{go-crosssdk_1.24.5.bb => go-crosssdk_1.24.6.bb} (100%)
rename meta/recipes-devtools/go/{go-runtime_1.24.5.bb => go-runtime_1.24.6.bb} (100%)
rename meta/recipes-devtools/go/{go_1.24.5.bb => go_1.24.6.bb} (100%)
create mode 100644 meta/recipes-devtools/pkgconfig/pkgconfig/0001-Do-not-use-bool-as-a-field-name.patch
--
2.43.0
^ permalink raw reply [flat|nested] 17+ messages in thread
* [OE-core][walnascar 01/15] elfutils: Fix CVE-2025-1352
2025-08-21 15:39 [OE-core][walnascar 00/15] Patch review Steve Sakoman
@ 2025-08-21 15:39 ` Steve Sakoman
2025-08-21 15:39 ` [OE-core][walnascar 02/15] elfutils: Fix CVE-2025-1365 Steve Sakoman
` (13 subsequent siblings)
14 siblings, 0 replies; 17+ messages in thread
From: Steve Sakoman @ 2025-08-21 15:39 UTC (permalink / raw)
To: openembedded-core
From: Soumya Sambu <soumya.sambu@windriver.com>
A vulnerability has been found in GNU elfutils 0.192 and classified as critical.
This vulnerability affects the function __libdw_thread_tail in the library
libdw_alloc.c of the component eu-readelf. The manipulation of the argument w
leads to memory corruption. The attack can be initiated remotely. The complexity
of an attack is rather high. The exploitation appears to be difficult. The exploit
has been disclosed to the public and may be used. The name of the patch is
2636426a091bd6c6f7f02e49ab20d4cdc6bfc753. It is recommended to apply a patch to
fix this issue.
References:
https://nvd.nist.gov/vuln/detail/CVE-2025-1352
https://ubuntu.com/security/CVE-2025-1352
Upstream patch:
https://sourceware.org/git/?p=elfutils.git;a=2636426a091bd6c6f7f02e49ab20d4cdc6bfc753
Signed-off-by: Soumya Sambu <soumya.sambu@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
---
.../elfutils/elfutils_0.192.bb | 1 +
.../elfutils/files/CVE-2025-1352.patch | 154 ++++++++++++++++++
2 files changed, 155 insertions(+)
create mode 100644 meta/recipes-devtools/elfutils/files/CVE-2025-1352.patch
diff --git a/meta/recipes-devtools/elfutils/elfutils_0.192.bb b/meta/recipes-devtools/elfutils/elfutils_0.192.bb
index 7bf9865555..829d9bf94f 100644
--- a/meta/recipes-devtools/elfutils/elfutils_0.192.bb
+++ b/meta/recipes-devtools/elfutils/elfutils_0.192.bb
@@ -22,6 +22,7 @@ SRC_URI = "https://sourceware.org/elfutils/ftp/${PV}/${BP}.tar.bz2 \
file://0001-tests-Makefile.am-compile-test_nlist-with-standard-C.patch \
file://0001-config-eu.am-do-not-force-Werror.patch \
file://0001-libelf-Add-libeu-objects-to-libelf.a-static-archive.patch \
+ file://CVE-2025-1352.patch \
"
SRC_URI:append:libc-musl = " \
file://0003-musl-utils.patch \
diff --git a/meta/recipes-devtools/elfutils/files/CVE-2025-1352.patch b/meta/recipes-devtools/elfutils/files/CVE-2025-1352.patch
new file mode 100644
index 0000000000..b5e8dff980
--- /dev/null
+++ b/meta/recipes-devtools/elfutils/files/CVE-2025-1352.patch
@@ -0,0 +1,154 @@
+From 2636426a091bd6c6f7f02e49ab20d4cdc6bfc753 Mon Sep 17 00:00:00 2001
+From: Mark Wielaard <mark@klomp.org>
+Date: Sat, 8 Feb 2025 20:00:12 +0100
+Subject: [PATCH] libdw: Simplify __libdw_getabbrev and fix dwarf_offabbrev
+ issue
+
+__libdw_getabbrev could crash on reading a bad abbrev by trying to
+deallocate memory it didn't allocate itself. This could happen because
+dwarf_offabbrev would supply its own memory when calling
+__libdw_getabbrev. No other caller did this.
+
+Simplify the __libdw_getabbrev common code by not taking external
+memory to put the abbrev result in (this would also not work correctly
+if the abbrev was already cached). And make dwarf_offabbrev explicitly
+copy the result (if there was no error or end of abbrev).
+
+ * libdw/dwarf_getabbrev.c (__libdw_getabbrev): Don't take
+ Dwarf_Abbrev result argument. Always just allocate abb when
+ abbrev not found in cache.
+ (dwarf_getabbrev): Don't pass NULL as last argument to
+ __libdw_getabbrev.
+ * libdw/dwarf_tag.c (__libdw_findabbrev): Likewise.
+ * libdw/dwarf_offabbrev.c (dwarf_offabbrev): Likewise. And copy
+ abbrev into abbrevp on success.
+ * libdw/libdw.h (dwarf_offabbrev): Document return values.
+ * libdw/libdwP.h (__libdw_getabbrev): Don't take Dwarf_Abbrev
+ result argument.
+
+https://sourceware.org/bugzilla/show_bug.cgi?id=32650
+
+CVE: CVE-2025-1352
+
+Upstream-Status: Backport [https://sourceware.org/git/?p=elfutils.git;a=2636426a091bd6c6f7f02e49ab20d4cdc6bfc753]
+
+Signed-off-by: Mark Wielaard <mark@klomp.org>
+Signed-off-by: Soumya Sambu <soumya.sambu@windriver.com>
+---
+ libdw/dwarf_getabbrev.c | 12 ++++--------
+ libdw/dwarf_offabbrev.c | 10 +++++++---
+ libdw/dwarf_tag.c | 3 +--
+ libdw/libdw.h | 4 +++-
+ libdw/libdwP.h | 3 +--
+ 5 files changed, 16 insertions(+), 16 deletions(-)
+
+diff --git a/libdw/dwarf_getabbrev.c b/libdw/dwarf_getabbrev.c
+index 5b02333..d9a6c02 100644
+--- a/libdw/dwarf_getabbrev.c
++++ b/libdw/dwarf_getabbrev.c
+@@ -1,5 +1,6 @@
+ /* Get abbreviation at given offset.
+ Copyright (C) 2003, 2004, 2005, 2006, 2014, 2017 Red Hat, Inc.
++ Copyright (C) 2025 Mark J. Wielaard <mark@klomp.org>
+ This file is part of elfutils.
+ Written by Ulrich Drepper <drepper@redhat.com>, 2003.
+
+@@ -38,7 +39,7 @@
+ Dwarf_Abbrev *
+ internal_function
+ __libdw_getabbrev (Dwarf *dbg, struct Dwarf_CU *cu, Dwarf_Off offset,
+- size_t *lengthp, Dwarf_Abbrev *result)
++ size_t *lengthp)
+ {
+ /* Don't fail if there is not .debug_abbrev section. */
+ if (dbg->sectiondata[IDX_debug_abbrev] == NULL)
+@@ -85,12 +86,7 @@ __libdw_getabbrev (Dwarf *dbg, struct Dwarf_CU *cu, Dwarf_Off offset,
+ Dwarf_Abbrev *abb = NULL;
+ if (cu == NULL
+ || (abb = Dwarf_Abbrev_Hash_find (&cu->abbrev_hash, code)) == NULL)
+- {
+- if (result == NULL)
+- abb = libdw_typed_alloc (dbg, Dwarf_Abbrev);
+- else
+- abb = result;
+- }
++ abb = libdw_typed_alloc (dbg, Dwarf_Abbrev);
+ else
+ {
+ foundit = true;
+@@ -183,5 +179,5 @@ dwarf_getabbrev (Dwarf_Die *die, Dwarf_Off offset, size_t *lengthp)
+ return NULL;
+ }
+
+- return __libdw_getabbrev (dbg, cu, abbrev_offset + offset, lengthp, NULL);
++ return __libdw_getabbrev (dbg, cu, abbrev_offset + offset, lengthp);
+ }
+diff --git a/libdw/dwarf_offabbrev.c b/libdw/dwarf_offabbrev.c
+index 27cdad6..41df69b 100644
+--- a/libdw/dwarf_offabbrev.c
++++ b/libdw/dwarf_offabbrev.c
+@@ -41,11 +41,15 @@ dwarf_offabbrev (Dwarf *dbg, Dwarf_Off offset, size_t *lengthp,
+ if (dbg == NULL)
+ return -1;
+
+- Dwarf_Abbrev *abbrev = __libdw_getabbrev (dbg, NULL, offset, lengthp,
+- abbrevp);
++ Dwarf_Abbrev *abbrev = __libdw_getabbrev (dbg, NULL, offset, lengthp);
+
+ if (abbrev == NULL)
+ return -1;
+
+- return abbrev == DWARF_END_ABBREV ? 1 : 0;
++ if (abbrev == DWARF_END_ABBREV)
++ return 1;
++
++ *abbrevp = *abbrev;
++
++ return 0;
+ }
+diff --git a/libdw/dwarf_tag.c b/libdw/dwarf_tag.c
+index d784970..218382a 100644
+--- a/libdw/dwarf_tag.c
++++ b/libdw/dwarf_tag.c
+@@ -53,8 +53,7 @@ __libdw_findabbrev (struct Dwarf_CU *cu, unsigned int code)
+
+ /* Find the next entry. It gets automatically added to the
+ hash table. */
+- abb = __libdw_getabbrev (cu->dbg, cu, cu->last_abbrev_offset, &length,
+- NULL);
++ abb = __libdw_getabbrev (cu->dbg, cu, cu->last_abbrev_offset, &length);
+ if (abb == NULL || abb == DWARF_END_ABBREV)
+ {
+ /* Make sure we do not try to search for it again. */
+diff --git a/libdw/libdw.h b/libdw/libdw.h
+index d53dc78..ec4713a 100644
+--- a/libdw/libdw.h
++++ b/libdw/libdw.h
+@@ -587,7 +587,9 @@ extern int dwarf_srclang (Dwarf_Die *die);
+ extern Dwarf_Abbrev *dwarf_getabbrev (Dwarf_Die *die, Dwarf_Off offset,
+ size_t *lengthp);
+
+-/* Get abbreviation at given offset in .debug_abbrev section. */
++/* Get abbreviation at given offset in .debug_abbrev section. On
++ success return zero and fills in ABBREVP. When there is no (more)
++ abbrev at offset returns one. On error returns a negative value. */
+ extern int dwarf_offabbrev (Dwarf *dbg, Dwarf_Off offset, size_t *lengthp,
+ Dwarf_Abbrev *abbrevp)
+ __nonnull_attribute__ (4);
+diff --git a/libdw/libdwP.h b/libdw/libdwP.h
+index d6bab60..0cff5c2 100644
+--- a/libdw/libdwP.h
++++ b/libdw/libdwP.h
+@@ -795,8 +795,7 @@ extern Dwarf_Abbrev *__libdw_findabbrev (struct Dwarf_CU *cu,
+
+ /* Get abbreviation at given offset. */
+ extern Dwarf_Abbrev *__libdw_getabbrev (Dwarf *dbg, struct Dwarf_CU *cu,
+- Dwarf_Off offset, size_t *lengthp,
+- Dwarf_Abbrev *result)
++ Dwarf_Off offset, size_t *lengthp)
+ __nonnull_attribute__ (1) internal_function;
+
+ /* Get abbreviation of given DIE, and optionally set *READP to the DIE memory
+--
+2.43.2
+
--
2.43.0
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [OE-core][walnascar 02/15] elfutils: Fix CVE-2025-1365
2025-08-21 15:39 [OE-core][walnascar 00/15] Patch review Steve Sakoman
2025-08-21 15:39 ` [OE-core][walnascar 01/15] elfutils: Fix CVE-2025-1352 Steve Sakoman
@ 2025-08-21 15:39 ` Steve Sakoman
2025-08-21 15:39 ` [OE-core][walnascar 03/15] elfutils: Fix CVE-2025-1371 Steve Sakoman
` (12 subsequent siblings)
14 siblings, 0 replies; 17+ messages in thread
From: Steve Sakoman @ 2025-08-21 15:39 UTC (permalink / raw)
To: openembedded-core
From: Soumya Sambu <soumya.sambu@windriver.com>
A vulnerability, which was classified as critical, was found in GNU elfutils
0.192. This affects the function process_symtab of the file readelf.c of the
component eu-readelf. The manipulation of the argument D/a leads to buffer
overflow. Local access is required to approach this attack. The exploit has
been disclosed to the public and may be used. The identifier of the patch is
5e5c0394d82c53e97750fe7b18023e6f84157b81. It is recommended to apply a patch
to fix this issue.
References:
https://nvd.nist.gov/vuln/detail/CVE-2025-1365
https://ubuntu.com/security/CVE-2025-1365
Upstream patch:
https://sourceware.org/git/?p=elfutils.git;a=commit;h=5e5c0394d82c53e97750fe7b18023e6f84157b81
Signed-off-by: Soumya Sambu <soumya.sambu@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
---
.../elfutils/elfutils_0.192.bb | 1 +
.../elfutils/files/CVE-2025-1365.patch | 152 ++++++++++++++++++
2 files changed, 153 insertions(+)
create mode 100644 meta/recipes-devtools/elfutils/files/CVE-2025-1365.patch
diff --git a/meta/recipes-devtools/elfutils/elfutils_0.192.bb b/meta/recipes-devtools/elfutils/elfutils_0.192.bb
index 829d9bf94f..ff40ba64ec 100644
--- a/meta/recipes-devtools/elfutils/elfutils_0.192.bb
+++ b/meta/recipes-devtools/elfutils/elfutils_0.192.bb
@@ -23,6 +23,7 @@ SRC_URI = "https://sourceware.org/elfutils/ftp/${PV}/${BP}.tar.bz2 \
file://0001-config-eu.am-do-not-force-Werror.patch \
file://0001-libelf-Add-libeu-objects-to-libelf.a-static-archive.patch \
file://CVE-2025-1352.patch \
+ file://CVE-2025-1365.patch \
"
SRC_URI:append:libc-musl = " \
file://0003-musl-utils.patch \
diff --git a/meta/recipes-devtools/elfutils/files/CVE-2025-1365.patch b/meta/recipes-devtools/elfutils/files/CVE-2025-1365.patch
new file mode 100644
index 0000000000..b779685efd
--- /dev/null
+++ b/meta/recipes-devtools/elfutils/files/CVE-2025-1365.patch
@@ -0,0 +1,152 @@
+From 5e5c0394d82c53e97750fe7b18023e6f84157b81 Mon Sep 17 00:00:00 2001
+From: Mark Wielaard <mark@klomp.org>
+Date: Sat, 8 Feb 2025 21:44:56 +0100
+Subject: [PATCH] libelf, readelf: Use validate_str also to check dynamic
+ symstr data
+
+When dynsym/str was read through eu-readelf --dynamic by readelf
+process_symtab the string data was not validated, possibly printing
+unallocated memory past the end of the symstr data. Fix this by
+turning the elf_strptr validate_str function into a generic
+lib/system.h helper function and use it in readelf to validate the
+strings before use.
+
+ * libelf/elf_strptr.c (validate_str): Remove to...
+ * lib/system.h (validate_str): ... here. Make inline, simplify
+ check and document.
+ * src/readelf.c (process_symtab): Use validate_str on symstr_data.
+
+https://sourceware.org/bugzilla/show_bug.cgi?id=32654
+
+CVE: CVE-2025-1365
+
+Upstream-Status: Backport [https://sourceware.org/git/?p=elfutils.git;a=commit;h=5e5c0394d82c53e97750fe7b18023e6f84157b81]
+
+Signed-off-by: Mark Wielaard <mark@klomp.org>
+Signed-off-by: Soumya Sambu <soumya.sambu@windriver.com>
+---
+ lib/system.h | 27 +++++++++++++++++++++++++++
+ libelf/elf_strptr.c | 18 ------------------
+ src/readelf.c | 18 +++++++++++++++---
+ 3 files changed, 42 insertions(+), 21 deletions(-)
+
+diff --git a/lib/system.h b/lib/system.h
+index 0db12d9..0698e5f 100644
+--- a/lib/system.h
++++ b/lib/system.h
+@@ -34,6 +34,7 @@
+ #include <config.h>
+
+ #include <errno.h>
++#include <stdbool.h>
+ #include <stddef.h>
+ #include <stdint.h>
+ #include <string.h>
+@@ -117,6 +118,32 @@ startswith (const char *str, const char *prefix)
+ return strncmp (str, prefix, strlen (prefix)) == 0;
+ }
+
++/* Return TRUE if STR[FROM] is a valid string with a zero terminator
++ at or before STR[TO - 1]. Note FROM is an index into the STR
++ array, while TO is the maximum size of the STR array. This
++ function returns FALSE when TO is zero or FROM >= TO. */
++static inline bool
++validate_str (const char *str, size_t from, size_t to)
++{
++#if HAVE_DECL_MEMRCHR
++ // Check end first, which is likely a zero terminator,
++ // to prevent function call
++ return (to > 0
++ && (str[to - 1] == '\0'
++ || (to > from
++ && memrchr (&str[from], '\0', to - from - 1) != NULL)));
++#else
++ do {
++ if (to <= from)
++ return false;
++
++ to--;
++ } while (str[to]);
++
++ return true;
++#endif
++}
++
+ /* A special gettext function we use if the strings are too short. */
+ #define sgettext(Str) \
+ ({ const char *__res = strrchr (_(Str), '|'); \
+diff --git a/libelf/elf_strptr.c b/libelf/elf_strptr.c
+index 79a24d2..c5a94f8 100644
+--- a/libelf/elf_strptr.c
++++ b/libelf/elf_strptr.c
+@@ -53,24 +53,6 @@ get_zdata (Elf_Scn *strscn)
+ return zdata;
+ }
+
+-static bool validate_str (const char *str, size_t from, size_t to)
+-{
+-#if HAVE_DECL_MEMRCHR
+- // Check end first, which is likely a zero terminator, to prevent function call
+- return ((to > 0 && str[to - 1] == '\0')
+- || (to - from > 0 && memrchr (&str[from], '\0', to - from - 1) != NULL));
+-#else
+- do {
+- if (to <= from)
+- return false;
+-
+- to--;
+- } while (str[to]);
+-
+- return true;
+-#endif
+-}
+-
+ char *
+ elf_strptr (Elf *elf, size_t idx, size_t offset)
+ {
+diff --git a/src/readelf.c b/src/readelf.c
+index 3e97b64..105cddf 100644
+--- a/src/readelf.c
++++ b/src/readelf.c
+@@ -2639,6 +2639,7 @@ process_symtab (Ebl *ebl, unsigned int nsyms, Elf64_Word idx,
+ char typebuf[64];
+ char bindbuf[64];
+ char scnbuf[64];
++ const char *sym_name;
+ Elf32_Word xndx;
+ GElf_Sym sym_mem;
+ GElf_Sym *sym
+@@ -2650,6 +2651,19 @@ process_symtab (Ebl *ebl, unsigned int nsyms, Elf64_Word idx,
+ /* Determine the real section index. */
+ if (likely (sym->st_shndx != SHN_XINDEX))
+ xndx = sym->st_shndx;
++ if (use_dynamic_segment == true)
++ {
++ if (validate_str (symstr_data->d_buf, sym->st_name,
++ symstr_data->d_size))
++ sym_name = (char *)symstr_data->d_buf + sym->st_name;
++ else
++ sym_name = NULL;
++ }
++ else
++ sym_name = elf_strptr (ebl->elf, idx, sym->st_name);
++
++ if (sym_name == NULL)
++ sym_name = "???";
+
+ printf (_ ("\
+ %5u: %0*" PRIx64 " %6" PRId64 " %-7s %-6s %-9s %6s %s"),
+@@ -2662,9 +2676,7 @@ process_symtab (Ebl *ebl, unsigned int nsyms, Elf64_Word idx,
+ get_visibility_type (GELF_ST_VISIBILITY (sym->st_other)),
+ ebl_section_name (ebl, sym->st_shndx, xndx, scnbuf,
+ sizeof (scnbuf), NULL, shnum),
+- use_dynamic_segment == true
+- ? (char *)symstr_data->d_buf + sym->st_name
+- : elf_strptr (ebl->elf, idx, sym->st_name));
++ sym_name);
+
+ if (versym_data != NULL)
+ {
+--
+2.43.2
+
--
2.43.0
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [OE-core][walnascar 03/15] elfutils: Fix CVE-2025-1371
2025-08-21 15:39 [OE-core][walnascar 00/15] Patch review Steve Sakoman
2025-08-21 15:39 ` [OE-core][walnascar 01/15] elfutils: Fix CVE-2025-1352 Steve Sakoman
2025-08-21 15:39 ` [OE-core][walnascar 02/15] elfutils: Fix CVE-2025-1365 Steve Sakoman
@ 2025-08-21 15:39 ` Steve Sakoman
2025-08-21 15:39 ` [OE-core][walnascar 04/15] elfutils: Fix CVE-2025-1372 Steve Sakoman
` (11 subsequent siblings)
14 siblings, 0 replies; 17+ messages in thread
From: Steve Sakoman @ 2025-08-21 15:39 UTC (permalink / raw)
To: openembedded-core
From: Soumya Sambu <soumya.sambu@windriver.com>
A vulnerability has been found in GNU elfutils 0.192 and classified as problematic.
This vulnerability affects the function handle_dynamic_symtab of the file readelf.c
of the component eu-read. The manipulation leads to null pointer dereference.
Attacking locally is a requirement. The exploit has been disclosed to the public and
may be used. The patch is identified as b38e562a4c907e08171c76b8b2def8464d5a104a. It
is recommended to apply a patch to fix this issue.
References:
https://nvd.nist.gov/vuln/detail/CVE-2025-1371
https://ubuntu.com/security/CVE-2025-1371
Upstream patch:
https://sourceware.org/git/?p=elfutils.git;a=commit;h=b38e562a4c907e08171c76b8b2def8464d5a104a
Signed-off-by: Soumya Sambu <soumya.sambu@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
---
.../elfutils/elfutils_0.192.bb | 1 +
.../elfutils/files/CVE-2025-1371.patch | 41 +++++++++++++++++++
2 files changed, 42 insertions(+)
create mode 100644 meta/recipes-devtools/elfutils/files/CVE-2025-1371.patch
diff --git a/meta/recipes-devtools/elfutils/elfutils_0.192.bb b/meta/recipes-devtools/elfutils/elfutils_0.192.bb
index ff40ba64ec..2f34bfeebb 100644
--- a/meta/recipes-devtools/elfutils/elfutils_0.192.bb
+++ b/meta/recipes-devtools/elfutils/elfutils_0.192.bb
@@ -24,6 +24,7 @@ SRC_URI = "https://sourceware.org/elfutils/ftp/${PV}/${BP}.tar.bz2 \
file://0001-libelf-Add-libeu-objects-to-libelf.a-static-archive.patch \
file://CVE-2025-1352.patch \
file://CVE-2025-1365.patch \
+ file://CVE-2025-1371.patch \
"
SRC_URI:append:libc-musl = " \
file://0003-musl-utils.patch \
diff --git a/meta/recipes-devtools/elfutils/files/CVE-2025-1371.patch b/meta/recipes-devtools/elfutils/files/CVE-2025-1371.patch
new file mode 100644
index 0000000000..9ecb045f82
--- /dev/null
+++ b/meta/recipes-devtools/elfutils/files/CVE-2025-1371.patch
@@ -0,0 +1,41 @@
+From b38e562a4c907e08171c76b8b2def8464d5a104a Mon Sep 17 00:00:00 2001
+From: Mark Wielaard <mark@klomp.org>
+Date: Sun, 9 Feb 2025 00:07:13 +0100
+Subject: [PATCH] readelf: Handle NULL phdr in handle_dynamic_symtab
+
+A corrupt ELF file can have broken program headers, in which case
+gelf_getphdr returns NULL. This could crash handle_dynamic_symtab
+while searching for the PT_DYNAMIC phdr. Fix this by checking whether
+gelf_phdr returns NULL.
+
+ * src/readelf.c (handle_dynamic_symtab): Check whether
+ gelf_getphdr returns NULL.
+
+https://sourceware.org/bugzilla/show_bug.cgi?id=32655
+
+CVE: CVE-2025-1371
+
+Upstream-Status: Backport [https://sourceware.org/git/?p=elfutils.git;a=commit;h=b38e562a4c907e08171c76b8b2def8464d5a104a]
+
+Signed-off-by: Mark Wielaard <mark@klomp.org>
+Signed-off-by: Soumya Sambu <soumya.sambu@windriver.com>
+---
+ src/readelf.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/readelf.c b/src/readelf.c
+index 105cddf..a526fa8 100644
+--- a/src/readelf.c
++++ b/src/readelf.c
+@@ -2912,7 +2912,7 @@ handle_dynamic_symtab (Ebl *ebl)
+ for (size_t i = 0; i < phnum; ++i)
+ {
+ phdr = gelf_getphdr (ebl->elf, i, &phdr_mem);
+- if (phdr->p_type == PT_DYNAMIC)
++ if (phdr == NULL || phdr->p_type == PT_DYNAMIC)
+ break;
+ }
+ if (phdr == NULL)
+--
+2.43.2
+
--
2.43.0
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [OE-core][walnascar 04/15] elfutils: Fix CVE-2025-1372
2025-08-21 15:39 [OE-core][walnascar 00/15] Patch review Steve Sakoman
` (2 preceding siblings ...)
2025-08-21 15:39 ` [OE-core][walnascar 03/15] elfutils: Fix CVE-2025-1371 Steve Sakoman
@ 2025-08-21 15:39 ` Steve Sakoman
2025-08-21 15:39 ` [OE-core][walnascar 05/15] elfutils: Fix CVE-2025-1376 Steve Sakoman
` (10 subsequent siblings)
14 siblings, 0 replies; 17+ messages in thread
From: Steve Sakoman @ 2025-08-21 15:39 UTC (permalink / raw)
To: openembedded-core
From: Soumya Sambu <soumya.sambu@windriver.com>
A vulnerability was found in GNU elfutils 0.192. It has been declared as critical.
Affected by this vulnerability is the function dump_data_section/print_string_section
of the file readelf.c of the component eu-readelf. The manipulation of the argument
z/x leads to buffer overflow. An attack has to be approached locally. The exploit
has been disclosed to the public and may be used. The identifier of the patch is
73db9d2021cab9e23fd734b0a76a612d52a6f1db. It is recommended to apply a patch to fix
this issue.
References:
https://nvd.nist.gov/vuln/detail/CVE-2025-1372
https://ubuntu.com/security/CVE-2025-1372
Upstream patch:
https://sourceware.org/git/?p=elfutils.git;a=commit;h=73db9d2021cab9e23fd734b0a76a612d52a6f1db
Signed-off-by: Soumya Sambu <soumya.sambu@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
---
.../elfutils/elfutils_0.192.bb | 1 +
.../elfutils/files/CVE-2025-1372.patch | 51 +++++++++++++++++++
2 files changed, 52 insertions(+)
create mode 100644 meta/recipes-devtools/elfutils/files/CVE-2025-1372.patch
diff --git a/meta/recipes-devtools/elfutils/elfutils_0.192.bb b/meta/recipes-devtools/elfutils/elfutils_0.192.bb
index 2f34bfeebb..4dcc774bb9 100644
--- a/meta/recipes-devtools/elfutils/elfutils_0.192.bb
+++ b/meta/recipes-devtools/elfutils/elfutils_0.192.bb
@@ -25,6 +25,7 @@ SRC_URI = "https://sourceware.org/elfutils/ftp/${PV}/${BP}.tar.bz2 \
file://CVE-2025-1352.patch \
file://CVE-2025-1365.patch \
file://CVE-2025-1371.patch \
+ file://CVE-2025-1372.patch \
"
SRC_URI:append:libc-musl = " \
file://0003-musl-utils.patch \
diff --git a/meta/recipes-devtools/elfutils/files/CVE-2025-1372.patch b/meta/recipes-devtools/elfutils/files/CVE-2025-1372.patch
new file mode 100644
index 0000000000..c202d8359c
--- /dev/null
+++ b/meta/recipes-devtools/elfutils/files/CVE-2025-1372.patch
@@ -0,0 +1,51 @@
+From 73db9d2021cab9e23fd734b0a76a612d52a6f1db Mon Sep 17 00:00:00 2001
+From: Mark Wielaard <mark@klomp.org>
+Date: Sun, 9 Feb 2025 00:07:39 +0100
+Subject: [PATCH] readelf: Skip trying to uncompress sections without a name
+
+When combining eu-readelf -z with -x or -p to dump the data or strings
+in an (corrupted ELF) unnamed numbered section eu-readelf could crash
+trying to check whether the section name starts with .zdebug. Fix this
+by skipping sections without a name.
+
+ * src/readelf.c (dump_data_section): Don't try to gnu decompress a
+ section without a name.
+ (print_string_section): Likewise.
+
+https://sourceware.org/bugzilla/show_bug.cgi?id=32656
+
+CVE: CVE-2025-1372
+
+Upstream-Status: Backport [https://sourceware.org/git/?p=elfutils.git;a=commit;h=73db9d2021cab9e23fd734b0a76a612d52a6f1db]
+
+Signed-off-by: Mark Wielaard <mark@klomp.org>
+Signed-off-by: Soumya Sambu <soumya.sambu@windriver.com>
+---
+ src/readelf.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/readelf.c b/src/readelf.c
+index a526fa8..89ee80a 100644
+--- a/src/readelf.c
++++ b/src/readelf.c
+@@ -13321,7 +13321,7 @@ dump_data_section (Elf_Scn *scn, const GElf_Shdr *shdr, const char *name)
+ _("Couldn't uncompress section"),
+ elf_ndxscn (scn));
+ }
+- else if (startswith (name, ".zdebug"))
++ else if (name && startswith (name, ".zdebug"))
+ {
+ if (elf_compress_gnu (scn, 0, 0) < 0)
+ printf ("WARNING: %s [%zd]\n",
+@@ -13372,7 +13372,7 @@ print_string_section (Elf_Scn *scn, const GElf_Shdr *shdr, const char *name)
+ _("Couldn't uncompress section"),
+ elf_ndxscn (scn));
+ }
+- else if (startswith (name, ".zdebug"))
++ else if (name && startswith (name, ".zdebug"))
+ {
+ if (elf_compress_gnu (scn, 0, 0) < 0)
+ printf ("WARNING: %s [%zd]\n",
+--
+2.43.2
+
--
2.43.0
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [OE-core][walnascar 05/15] elfutils: Fix CVE-2025-1376
2025-08-21 15:39 [OE-core][walnascar 00/15] Patch review Steve Sakoman
` (3 preceding siblings ...)
2025-08-21 15:39 ` [OE-core][walnascar 04/15] elfutils: Fix CVE-2025-1372 Steve Sakoman
@ 2025-08-21 15:39 ` Steve Sakoman
2025-08-21 15:39 ` [OE-core][walnascar 06/15] elfutils: Fix CVE-2025-1377 Steve Sakoman
` (9 subsequent siblings)
14 siblings, 0 replies; 17+ messages in thread
From: Steve Sakoman @ 2025-08-21 15:39 UTC (permalink / raw)
To: openembedded-core
From: Soumya Sambu <soumya.sambu@windriver.com>
A vulnerability classified as problematic was found in GNU elfutils 0.192.
This vulnerability affects the function elf_strptr in the library /libelf/elf_strptr.c
of the component eu-strip. The manipulation leads to denial of service. It is possible
to launch the attack on the local host. The complexity of an attack is rather high. The
exploitation appears to be difficult. The exploit has been disclosed to the public and
may be used. The name of the patch is b16f441cca0a4841050e3215a9f120a6d8aea918. It is
recommended to apply a patch to fix this issue.
References:
https://nvd.nist.gov/vuln/detail/CVE-2025-1376
https://ubuntu.com/security/CVE-2025-1376
Upstream patch:
https://sourceware.org/git/?p=elfutils.git;a=commit;h=b16f441cca0a4841050e3215a9f120a6d8aea918
Signed-off-by: Soumya Sambu <soumya.sambu@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
---
.../elfutils/elfutils_0.192.bb | 1 +
.../elfutils/files/CVE-2025-1376.patch | 57 +++++++++++++++++++
2 files changed, 58 insertions(+)
create mode 100644 meta/recipes-devtools/elfutils/files/CVE-2025-1376.patch
diff --git a/meta/recipes-devtools/elfutils/elfutils_0.192.bb b/meta/recipes-devtools/elfutils/elfutils_0.192.bb
index 4dcc774bb9..f8cf083ec6 100644
--- a/meta/recipes-devtools/elfutils/elfutils_0.192.bb
+++ b/meta/recipes-devtools/elfutils/elfutils_0.192.bb
@@ -26,6 +26,7 @@ SRC_URI = "https://sourceware.org/elfutils/ftp/${PV}/${BP}.tar.bz2 \
file://CVE-2025-1365.patch \
file://CVE-2025-1371.patch \
file://CVE-2025-1372.patch \
+ file://CVE-2025-1376.patch \
"
SRC_URI:append:libc-musl = " \
file://0003-musl-utils.patch \
diff --git a/meta/recipes-devtools/elfutils/files/CVE-2025-1376.patch b/meta/recipes-devtools/elfutils/files/CVE-2025-1376.patch
new file mode 100644
index 0000000000..ebffb2bd72
--- /dev/null
+++ b/meta/recipes-devtools/elfutils/files/CVE-2025-1376.patch
@@ -0,0 +1,57 @@
+From b16f441cca0a4841050e3215a9f120a6d8aea918 Mon Sep 17 00:00:00 2001
+From: Mark Wielaard <mark@klomp.org>
+Date: Thu, 13 Feb 2025 00:02:32 +0100
+Subject: [PATCH] libelf: Handle elf_strptr on section without any data
+
+In the unlikely situation that elf_strptr was called on a section with
+sh_size already set, but that doesn't have any data yet we could crash
+trying to verify the string to return.
+
+This could happen for example when a new section was created with
+elf_newscn, but no data having been added yet.
+
+ * libelf/elf_strptr.c (elf_strptr): Check strscn->rawdata_base
+ is not NULL.
+
+https://sourceware.org/bugzilla/show_bug.cgi?id=32672
+
+CVE: CVE-2025-1376
+
+Upstream-Status: Backport [https://sourceware.org/git/?p=elfutils.git;a=commit;h=b16f441cca0a4841050e3215a9f120a6d8aea918]
+
+Signed-off-by: Mark Wielaard <mark@klomp.org>
+Signed-off-by: Soumya Sambu <soumya.sambu@windriver.com>
+---
+ libelf/elf_strptr.c | 10 +++++++---
+ 1 file changed, 7 insertions(+), 3 deletions(-)
+
+diff --git a/libelf/elf_strptr.c b/libelf/elf_strptr.c
+index c5a94f8..7be7f5e 100644
+--- a/libelf/elf_strptr.c
++++ b/libelf/elf_strptr.c
+@@ -1,5 +1,6 @@
+ /* Return string pointer from string section.
+ Copyright (C) 1998-2002, 2004, 2008, 2009, 2015 Red Hat, Inc.
++ Copyright (C) 2025 Mark J. Wielaard <mark@klomp.org>
+ This file is part of elfutils.
+ Contributed by Ulrich Drepper <drepper@redhat.com>, 1998.
+
+@@ -183,9 +184,12 @@ elf_strptr (Elf *elf, size_t idx, size_t offset)
+ // initialized yet (when data_read is zero). So we cannot just
+ // look at the rawdata.d.d_size.
+
+- /* Make sure the string is NUL terminated. Start from the end,
+- which very likely is a NUL char. */
+- if (likely (validate_str (strscn->rawdata_base, offset, sh_size)))
++ /* First check there actually is any data. This could be a new
++ section which hasn't had any data set yet. Then make sure
++ the string is at a valid offset and NUL terminated. */
++ if (unlikely (strscn->rawdata_base == NULL))
++ __libelf_seterrno (ELF_E_INVALID_SECTION);
++ else if (likely (validate_str (strscn->rawdata_base, offset, sh_size)))
+ result = &strscn->rawdata_base[offset];
+ else
+ __libelf_seterrno (ELF_E_INVALID_INDEX);
+--
+2.43.2
+
--
2.43.0
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [OE-core][walnascar 06/15] elfutils: Fix CVE-2025-1377
2025-08-21 15:39 [OE-core][walnascar 00/15] Patch review Steve Sakoman
` (4 preceding siblings ...)
2025-08-21 15:39 ` [OE-core][walnascar 05/15] elfutils: Fix CVE-2025-1376 Steve Sakoman
@ 2025-08-21 15:39 ` Steve Sakoman
2025-08-21 15:39 ` [OE-core][walnascar 07/15] glib-2.0: update 2.84.0 -> 2.84.1 Steve Sakoman
` (8 subsequent siblings)
14 siblings, 0 replies; 17+ messages in thread
From: Steve Sakoman @ 2025-08-21 15:39 UTC (permalink / raw)
To: openembedded-core
From: Soumya Sambu <soumya.sambu@windriver.com>
A vulnerability, which was classified as problematic, has been found in GNU elfutils
0.192. This issue affects the function gelf_getsymshndx of the file strip.c of the
component eu-strip. The manipulation leads to denial of service. The attack needs to
be approached locally. The exploit has been disclosed to the public and may be used.
The identifier of the patch is fbf1df9ca286de3323ae541973b08449f8d03aba. It is
recommended to apply a patch to fix this issue.
References:
https://nvd.nist.gov/vuln/detail/CVE-2025-1377
https://ubuntu.com/security/CVE-2025-1377
Upstream patch:
https://sourceware.org/git/?p=elfutils.git;a=fbf1df9ca286de3323ae541973b08449f8d03aba
Signed-off-by: Soumya Sambu <soumya.sambu@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
---
.../elfutils/elfutils_0.192.bb | 1 +
.../elfutils/files/CVE-2025-1377.patch | 68 +++++++++++++++++++
2 files changed, 69 insertions(+)
create mode 100644 meta/recipes-devtools/elfutils/files/CVE-2025-1377.patch
diff --git a/meta/recipes-devtools/elfutils/elfutils_0.192.bb b/meta/recipes-devtools/elfutils/elfutils_0.192.bb
index f8cf083ec6..fb4109441b 100644
--- a/meta/recipes-devtools/elfutils/elfutils_0.192.bb
+++ b/meta/recipes-devtools/elfutils/elfutils_0.192.bb
@@ -27,6 +27,7 @@ SRC_URI = "https://sourceware.org/elfutils/ftp/${PV}/${BP}.tar.bz2 \
file://CVE-2025-1371.patch \
file://CVE-2025-1372.patch \
file://CVE-2025-1376.patch \
+ file://CVE-2025-1377.patch \
"
SRC_URI:append:libc-musl = " \
file://0003-musl-utils.patch \
diff --git a/meta/recipes-devtools/elfutils/files/CVE-2025-1377.patch b/meta/recipes-devtools/elfutils/files/CVE-2025-1377.patch
new file mode 100644
index 0000000000..003215017f
--- /dev/null
+++ b/meta/recipes-devtools/elfutils/files/CVE-2025-1377.patch
@@ -0,0 +1,68 @@
+From fbf1df9ca286de3323ae541973b08449f8d03aba Mon Sep 17 00:00:00 2001
+From: Mark Wielaard <mark@klomp.org>
+Date: Thu, 13 Feb 2025 14:59:34 +0100
+Subject: [PATCH] strip: Verify symbol table is a real symbol table
+
+We didn't check the symbol table referenced from the relocation table
+was a real symbol table. This could cause a crash if that section
+happened to be an SHT_NOBITS section without any data. Fix this by
+adding an explicit check.
+
+ * src/strip.c (INTERNAL_ERROR_MSG): New macro that takes a
+ message string to display.
+ (INTERNAL_ERROR): Use INTERNAL_ERROR_MSG with elf_errmsg (-1).
+ (remove_debug_relocations): Check the sh_link referenced
+ section is real and isn't a SHT_NOBITS section.
+
+https://sourceware.org/bugzilla/show_bug.cgi?id=32673
+
+CVE: CVE-2025-1377
+
+Upstream-Status: Backport [https://sourceware.org/git/?p=elfutils.git;a=fbf1df9ca286de3323ae541973b08449f8d03aba]
+
+Signed-off-by: Mark Wielaard <mark@klomp.org>
+Signed-off-by: Soumya Sambu <soumya.sambu@windriver.com>
+---
+ src/strip.c | 14 +++++++++++---
+ 1 file changed, 11 insertions(+), 3 deletions(-)
+
+diff --git a/src/strip.c b/src/strip.c
+index 403e0f6..2b5d057 100644
+--- a/src/strip.c
++++ b/src/strip.c
+@@ -126,13 +126,14 @@ static char *tmp_debug_fname = NULL;
+ /* Close debug file descriptor, if opened. And remove temporary debug file. */
+ static void cleanup_debug (void);
+
+-#define INTERNAL_ERROR(fname) \
++#define INTERNAL_ERROR_MSG(fname, msg) \
+ do { \
+ cleanup_debug (); \
+ error_exit (0, _("%s: INTERNAL ERROR %d (%s): %s"), \
+- fname, __LINE__, PACKAGE_VERSION, elf_errmsg (-1)); \
++ fname, __LINE__, PACKAGE_VERSION, msg); \
+ } while (0)
+
++#define INTERNAL_ERROR(fname) INTERNAL_ERROR_MSG(fname, elf_errmsg (-1))
+
+ /* Name of the output file. */
+ static const char *output_fname;
+@@ -631,7 +632,14 @@ remove_debug_relocations (Ebl *ebl, Elf *elf, GElf_Ehdr *ehdr,
+ resolve relocation symbol indexes. */
+ Elf64_Word symt = shdr->sh_link;
+ Elf_Data *symdata, *xndxdata;
+- Elf_Scn * symscn = elf_getscn (elf, symt);
++ Elf_Scn *symscn = elf_getscn (elf, symt);
++ GElf_Shdr symshdr_mem;
++ GElf_Shdr *symshdr = gelf_getshdr (symscn, &symshdr_mem);
++ if (symshdr == NULL)
++ INTERNAL_ERROR (fname);
++ if (symshdr->sh_type == SHT_NOBITS)
++ INTERNAL_ERROR_MSG (fname, "NOBITS section");
++
+ symdata = elf_getdata (symscn, NULL);
+ xndxdata = get_xndxdata (elf, symscn);
+ if (symdata == NULL)
+--
+2.43.2
+
--
2.43.0
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [OE-core][walnascar 07/15] glib-2.0: update 2.84.0 -> 2.84.1
2025-08-21 15:39 [OE-core][walnascar 00/15] Patch review Steve Sakoman
` (5 preceding siblings ...)
2025-08-21 15:39 ` [OE-core][walnascar 06/15] elfutils: Fix CVE-2025-1377 Steve Sakoman
@ 2025-08-21 15:39 ` Steve Sakoman
2025-08-21 15:39 ` [OE-core][walnascar 08/15] glib-2.0: update 2.84.1 -> 2.84.2 Steve Sakoman
` (7 subsequent siblings)
14 siblings, 0 replies; 17+ messages in thread
From: Steve Sakoman @ 2025-08-21 15:39 UTC (permalink / raw)
To: openembedded-core
From: Markus Volk <f_l_k@t-online.de>
- remove backport patch
Overview of changes in GLib 2.84.1, 2025-04-03
==============================================
* Fix test failure when building against gobject-introspection ≥1.83.4 (#3634,
work by Philip Withnall)
* Bugs fixed:
- #3630 2.84.0 build failure on Linux: ../gio/gnetworkmonitornetlink.c:47:10:
fatal error: netlink/netlink_route.h: No such file or directory (Philip
Withnall)
- #3634 test failure with gobject-introspection 1.83.4: warning: element
doc:format from state 3 is unknown, ignoring (Philip Withnall)
- #3636 gio/trash does not handle special characters well
- #3642 `g_cancellable_connect()` documentation incorrect (Marco Trevisan
(Treviño))
- #3643 g_cancellable_connect(): is it safe to unref cancellable from
callback? (Marco Trevisan (Treviño))
- #3649 Crash with some registry key values in GWin32AppInfo (Philip Withnall)
- !4484 Memory sanitizer fixes
- !4489 gobject: Be consistent in using atomic logic to handle the
GParamSpecPool
- !4541 gsettings: Port docs to gi-docgen format, add missing annotations and
make various improvements
- !4544 tests: Don't install runner scripts without installed_tests
- !4545 Update French translation
- !4547 Update Catalan translation
- !4548 Update Turkish translation
- !4551 Updated Danish translation
- !4552 Update Persian translation
- !4553 docs: Document GSignalFlags members added after 2.0
- !4554 Update Indonesian translation
- !4555 tests: Add a test for g_object_freeze_notify() being called too often
- !4557 gfileinfo: Slightly expand docs for
g_file_info_get_attribute_as_string()
- !4558 gi: Dynamically set doc-format
- !4561 tests: Various fixes to create temporary files in /tmp rather than the
build directory
- !4562 gdbusnameowning: Convert docs to gi-docgen linking syntax
- !4563 giounix-private: Fix macro for checking for epoll_create1()
- !4565 Fix LGPL in header
- !4567 gutils: make documentation of g_set_prgname() clearer
- !4568 docs: Add some detail
- !4569 Update Romanian translation
- !4570 gspawn-win32: Fix potential integer overflows in argv handling
- !4571 gvarianttype: Improve docs on type validation
* Translation updates:
- Catalan (Jordi Mas)
- Danish (Ask Hjorth Larsen)
- French (Vincent Chatelain)
- Indonesian (Andika Triwidada)
- Persian (Danial Behzadi)
- Romanian (Antonio Marin)
- Turkish (Sabri Ünal)
(From OE-Core rev: 676b9acbe94f055a351da3bdcfbe457411e1877c)
Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This upgrade fixes CVE-2025-4056
Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
---
...664e6f1a29e0d5f301979f6d168b08435a61.patch | 75 -------------------
...l_2.84.0.bb => glib-2.0-initial_2.84.1.bb} | 0
...{glib-2.0_2.84.0.bb => glib-2.0_2.84.1.bb} | 0
meta/recipes-core/glib-2.0/glib.inc | 3 +-
4 files changed, 1 insertion(+), 77 deletions(-)
delete mode 100644 meta/recipes-core/glib-2.0/files/aee0664e6f1a29e0d5f301979f6d168b08435a61.patch
rename meta/recipes-core/glib-2.0/{glib-2.0-initial_2.84.0.bb => glib-2.0-initial_2.84.1.bb} (100%)
rename meta/recipes-core/glib-2.0/{glib-2.0_2.84.0.bb => glib-2.0_2.84.1.bb} (100%)
diff --git a/meta/recipes-core/glib-2.0/files/aee0664e6f1a29e0d5f301979f6d168b08435a61.patch b/meta/recipes-core/glib-2.0/files/aee0664e6f1a29e0d5f301979f6d168b08435a61.patch
deleted file mode 100644
index 28bce02dc3..0000000000
--- a/meta/recipes-core/glib-2.0/files/aee0664e6f1a29e0d5f301979f6d168b08435a61.patch
+++ /dev/null
@@ -1,75 +0,0 @@
-From aee0664e6f1a29e0d5f301979f6d168b08435a61 Mon Sep 17 00:00:00 2001
-From: Philip Withnall <pwithnall@gnome.org>
-Date: Mon, 10 Mar 2025 15:21:15 +0000
-Subject: [PATCH] girparser: Ignore new doc:format element in GIR files
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-As of gobject-introspection 1.83.2, a new `<doc:format name="…"/>`
-element is supported (as a child of `<repository>`) in GIR files.
-
-For the moment, this information isn’t needed in libgirepository — but
-the GIR parser does have to know about the element in order to not throw
-an error claiming it’s invalid.
-
-This is a slightly tweaked version of the code added to
-gobject-introspection.git in commit
-9544cd6c962fab2c3203898779948309833e2439 by Corentin Noël
-<corentin.noel@collabora.com>, reformatted slightly to fit in with
-GLib’s style guidelines.
-
-This is backwards compatible and does not require a new
-gobject-introspection version.
-
-Signed-off-by: Philip Withnall <pwithnall@gnome.org>
-
-Fixes: #3634
-
-Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/glib/-/commit/aee0664e6f1a29e0d5f301979f6d168b08435a61.patch]
-
-Signed-off-by: Markus Volk <f_l_k@t-online.de>
----
- girepository/girparser.c | 12 +++++++++++-
- 1 file changed, 11 insertions(+), 1 deletion(-)
-
-diff --git a/girepository/girparser.c b/girepository/girparser.c
-index 63143718d9..be88d871a4 100644
---- a/girepository/girparser.c
-+++ b/girepository/girparser.c
-@@ -107,7 +107,8 @@ typedef enum
- STATE_ALIAS,
- STATE_TYPE,
- STATE_ATTRIBUTE,
-- STATE_PASSTHROUGH
-+ STATE_PASSTHROUGH,
-+ STATE_DOC_FORMAT, /* 35 */
- } ParseState;
-
- typedef struct _ParseContext ParseContext;
-@@ -3159,6 +3160,11 @@ start_element_handler (GMarkupParseContext *context,
- state_switch (ctx, STATE_PASSTHROUGH);
- goto out;
- }
-+ else if (strcmp ("doc:format", element_name) == 0)
-+ {
-+ state_switch (ctx, STATE_DOC_FORMAT);
-+ goto out;
-+ }
- break;
-
- case 'e':
-@@ -3843,6 +3849,10 @@ end_element_handler (GMarkupParseContext *context,
- state_switch (ctx, ctx->prev_state);
- }
- break;
-+ case STATE_DOC_FORMAT:
-+ if (require_end_element (context, ctx, "doc:format", element_name, error))
-+ state_switch (ctx, STATE_REPOSITORY);
-+ break;
-
- case STATE_PASSTHROUGH:
- ctx->unknown_depth -= 1;
---
-GitLab
-
diff --git a/meta/recipes-core/glib-2.0/glib-2.0-initial_2.84.0.bb b/meta/recipes-core/glib-2.0/glib-2.0-initial_2.84.1.bb
similarity index 100%
rename from meta/recipes-core/glib-2.0/glib-2.0-initial_2.84.0.bb
rename to meta/recipes-core/glib-2.0/glib-2.0-initial_2.84.1.bb
diff --git a/meta/recipes-core/glib-2.0/glib-2.0_2.84.0.bb b/meta/recipes-core/glib-2.0/glib-2.0_2.84.1.bb
similarity index 100%
rename from meta/recipes-core/glib-2.0/glib-2.0_2.84.0.bb
rename to meta/recipes-core/glib-2.0/glib-2.0_2.84.1.bb
diff --git a/meta/recipes-core/glib-2.0/glib.inc b/meta/recipes-core/glib-2.0/glib.inc
index 61e1a3ef17..4368e51df8 100644
--- a/meta/recipes-core/glib-2.0/glib.inc
+++ b/meta/recipes-core/glib-2.0/glib.inc
@@ -229,13 +229,12 @@ SRC_URI = "${GNOME_MIRROR}/glib/${SHRT_VER}/glib-${PV}.tar.xz \
file://0001-gio-tests-resources.c-comment-out-a-build-host-only-.patch \
file://0010-Do-not-hardcode-python-path-into-various-tools.patch \
file://skip-timeout.patch \
- file://aee0664e6f1a29e0d5f301979f6d168b08435a61.patch \
"
SRC_URI:append:class-native = " file://relocate-modules.patch \
file://0001-meson.build-do-not-enable-pidfd-features-on-native-g.patch \
"
-SRC_URI[sha256sum] = "f8823600cb85425e2815cfad82ea20fdaa538482ab74e7293d58b3f64a5aff6a"
+SRC_URI[sha256sum] = "2b4bc2ec49611a5fc35f86aca855f2ed0196e69e53092bab6bb73396bf30789a"
# Find any meson cross files in FILESPATH that are relevant for the current
# build (using siteinfo) and add them to EXTRA_OEMESON.
--
2.43.0
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [OE-core][walnascar 08/15] glib-2.0: update 2.84.1 -> 2.84.2
2025-08-21 15:39 [OE-core][walnascar 00/15] Patch review Steve Sakoman
` (6 preceding siblings ...)
2025-08-21 15:39 ` [OE-core][walnascar 07/15] glib-2.0: update 2.84.0 -> 2.84.1 Steve Sakoman
@ 2025-08-21 15:39 ` Steve Sakoman
2025-08-21 15:39 ` [OE-core][walnascar 09/15] glib-2.0: update 2.84.2 -> 2.84.4 Steve Sakoman
` (6 subsequent siblings)
14 siblings, 0 replies; 17+ messages in thread
From: Steve Sakoman @ 2025-08-21 15:39 UTC (permalink / raw)
To: openembedded-core
From: Praveen Kumar <praveen.kumar@windriver.com>
Overview of changes in GLib 2.84.2, 2025-05-20
==============================================
* Bugs fixed:
- !4576 Backport !4575 “gclosure: fix ATOMIC_CHANGE_FIELD to read vint
atomically” to glib-2-84
- !4595 Backport !4582 “Windows: fix wrong typelib path” to glib-2-84
- !4614 Backport "gstring: carefully handle gssize parameters"
- !4616 Backport !4613 “Update macOS job for new CI runner” to glib-2-84
- !4623 Backport !4617 “gdate: Call tzset before localtime_r” to glib-2-84
- !4639 Backport -Wsign-conversion fixes for g_get_locale_variants() from
!4590 to glib-2-84
- !4640 Backport !4620 “glocalfile: Disable faccessat()-based query_exists on
Android” to glib-2-84
(From OE-Core rev: 3deb6b59f3fa91d4fa755f49dad4ac62c3a518fb)
Signed-off-by: Praveen Kumar <praveen.kumar@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
---
.../{glib-2.0-initial_2.84.1.bb => glib-2.0-initial_2.84.2.bb} | 0
.../glib-2.0/{glib-2.0_2.84.1.bb => glib-2.0_2.84.2.bb} | 0
meta/recipes-core/glib-2.0/glib.inc | 2 +-
3 files changed, 1 insertion(+), 1 deletion(-)
rename meta/recipes-core/glib-2.0/{glib-2.0-initial_2.84.1.bb => glib-2.0-initial_2.84.2.bb} (100%)
rename meta/recipes-core/glib-2.0/{glib-2.0_2.84.1.bb => glib-2.0_2.84.2.bb} (100%)
diff --git a/meta/recipes-core/glib-2.0/glib-2.0-initial_2.84.1.bb b/meta/recipes-core/glib-2.0/glib-2.0-initial_2.84.2.bb
similarity index 100%
rename from meta/recipes-core/glib-2.0/glib-2.0-initial_2.84.1.bb
rename to meta/recipes-core/glib-2.0/glib-2.0-initial_2.84.2.bb
diff --git a/meta/recipes-core/glib-2.0/glib-2.0_2.84.1.bb b/meta/recipes-core/glib-2.0/glib-2.0_2.84.2.bb
similarity index 100%
rename from meta/recipes-core/glib-2.0/glib-2.0_2.84.1.bb
rename to meta/recipes-core/glib-2.0/glib-2.0_2.84.2.bb
diff --git a/meta/recipes-core/glib-2.0/glib.inc b/meta/recipes-core/glib-2.0/glib.inc
index 4368e51df8..819f3ff50a 100644
--- a/meta/recipes-core/glib-2.0/glib.inc
+++ b/meta/recipes-core/glib-2.0/glib.inc
@@ -234,7 +234,7 @@ SRC_URI:append:class-native = " file://relocate-modules.patch \
file://0001-meson.build-do-not-enable-pidfd-features-on-native-g.patch \
"
-SRC_URI[sha256sum] = "2b4bc2ec49611a5fc35f86aca855f2ed0196e69e53092bab6bb73396bf30789a"
+SRC_URI[sha256sum] = "88e960dd937057407d61fcb3b45a860704b25923c37ae2478b85f2ecb5a4021f"
# Find any meson cross files in FILESPATH that are relevant for the current
# build (using siteinfo) and add them to EXTRA_OEMESON.
--
2.43.0
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [OE-core][walnascar 09/15] glib-2.0: update 2.84.2 -> 2.84.4
2025-08-21 15:39 [OE-core][walnascar 00/15] Patch review Steve Sakoman
` (7 preceding siblings ...)
2025-08-21 15:39 ` [OE-core][walnascar 08/15] glib-2.0: update 2.84.1 -> 2.84.2 Steve Sakoman
@ 2025-08-21 15:39 ` Steve Sakoman
2025-08-21 15:39 ` [OE-core][walnascar 10/15] glib-2.0: patch CVE-2025-6052 Steve Sakoman
` (5 subsequent siblings)
14 siblings, 0 replies; 17+ messages in thread
From: Steve Sakoman @ 2025-08-21 15:39 UTC (permalink / raw)
To: openembedded-core
From: Peter Marko <peter.marko@siemens.com>
Overview of changes in GLib 2.84.4, 2025-08-08
==============================================
* Bugs fixed:
- #3716 (CVE-2025-7039) (#YWH-PGM9867-104) Buffer Under-read on GLib through
glib/gfileutils.c via get_tmp_file() (Michael Catanzaro)
- #3721 GFile leak in g_local_file_set_display_name during error handling
(Philip Withnall, Michael Catanzaro)
- !4668 Backport !4667 “Incorrect output parameter handling in closure helper
of g_settings_bind_with_mapping_closures” to glib-2-84
- !4675 Backport !4674 “gfileutils: fix computation of temporary file name” to
glib-2-84
- !4679 Backport !4677 and !4678 “Fix GFile leak in
g_local_file_set_display_name()” to glib-2-84
- !4697 Backport !4696 “gthreadpool: Catch pool_spawner creation failure” to
glib-2-84
- !4705 Backport !4702 “gio/filenamecompleter: Fix leaks” to glib-2-84
- !4711 Backport !4708 “gfilenamecompleter: Fix g_object_unref() of undefined
value” to glib-2-84
Overview of changes in GLib 2.84.3, 2025-06-13
==============================================
* Bugs fixed:
- !4656 Backport !4655 “gstring: Fix overflow check when expanding the string”
to glib-2-84
!4656 solves first half of CVE-2025-6052
Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
---
.../files/0001-meson-Run-atomics-test-on-clang-as-well.patch | 2 +-
...1-meson.build-do-not-enable-pidfd-features-on-native-g.patch | 2 +-
.../{glib-2.0-initial_2.84.2.bb => glib-2.0-initial_2.84.4.bb} | 0
.../glib-2.0/{glib-2.0_2.84.2.bb => glib-2.0_2.84.4.bb} | 0
meta/recipes-core/glib-2.0/glib.inc | 2 +-
5 files changed, 3 insertions(+), 3 deletions(-)
rename meta/recipes-core/glib-2.0/{glib-2.0-initial_2.84.2.bb => glib-2.0-initial_2.84.4.bb} (100%)
rename meta/recipes-core/glib-2.0/{glib-2.0_2.84.2.bb => glib-2.0_2.84.4.bb} (100%)
diff --git a/meta/recipes-core/glib-2.0/files/0001-meson-Run-atomics-test-on-clang-as-well.patch b/meta/recipes-core/glib-2.0/files/0001-meson-Run-atomics-test-on-clang-as-well.patch
index e5878a1428..5ad2a0375b 100644
--- a/meta/recipes-core/glib-2.0/files/0001-meson-Run-atomics-test-on-clang-as-well.patch
+++ b/meta/recipes-core/glib-2.0/files/0001-meson-Run-atomics-test-on-clang-as-well.patch
@@ -17,7 +17,7 @@ diff --git a/meson.build b/meson.build
index a8bcadc..041b68e 100644
--- a/meson.build
+++ b/meson.build
-@@ -2075,7 +2075,7 @@ atomicdefine = '''
+@@ -2077,7 +2077,7 @@ atomicdefine = '''
# We know that we can always use real ("lock free") atomic operations with MSVC
if cc.get_id() == 'msvc' or cc.get_id() == 'clang-cl' or cc.links(atomictest, name : 'atomic ops')
have_atomic_lock_free = true
diff --git a/meta/recipes-core/glib-2.0/files/0001-meson.build-do-not-enable-pidfd-features-on-native-g.patch b/meta/recipes-core/glib-2.0/files/0001-meson.build-do-not-enable-pidfd-features-on-native-g.patch
index e512940e34..aa098da379 100644
--- a/meta/recipes-core/glib-2.0/files/0001-meson.build-do-not-enable-pidfd-features-on-native-g.patch
+++ b/meta/recipes-core/glib-2.0/files/0001-meson.build-do-not-enable-pidfd-features-on-native-g.patch
@@ -17,7 +17,7 @@ diff --git a/meson.build b/meson.build
index 041b68e..155bfd4 100644
--- a/meson.build
+++ b/meson.build
-@@ -1073,7 +1073,8 @@ if cc.links('''#include <sys/syscall.h>
+@@ -1075,7 +1075,8 @@ if cc.links('''#include <sys/syscall.h>
waitid (P_PIDFD, 0, &child_info, WEXITED | WNOHANG);
return 0;
}''', name : 'pidfd_open(2) system call')
diff --git a/meta/recipes-core/glib-2.0/glib-2.0-initial_2.84.2.bb b/meta/recipes-core/glib-2.0/glib-2.0-initial_2.84.4.bb
similarity index 100%
rename from meta/recipes-core/glib-2.0/glib-2.0-initial_2.84.2.bb
rename to meta/recipes-core/glib-2.0/glib-2.0-initial_2.84.4.bb
diff --git a/meta/recipes-core/glib-2.0/glib-2.0_2.84.2.bb b/meta/recipes-core/glib-2.0/glib-2.0_2.84.4.bb
similarity index 100%
rename from meta/recipes-core/glib-2.0/glib-2.0_2.84.2.bb
rename to meta/recipes-core/glib-2.0/glib-2.0_2.84.4.bb
diff --git a/meta/recipes-core/glib-2.0/glib.inc b/meta/recipes-core/glib-2.0/glib.inc
index 819f3ff50a..c171598bed 100644
--- a/meta/recipes-core/glib-2.0/glib.inc
+++ b/meta/recipes-core/glib-2.0/glib.inc
@@ -234,7 +234,7 @@ SRC_URI:append:class-native = " file://relocate-modules.patch \
file://0001-meson.build-do-not-enable-pidfd-features-on-native-g.patch \
"
-SRC_URI[sha256sum] = "88e960dd937057407d61fcb3b45a860704b25923c37ae2478b85f2ecb5a4021f"
+SRC_URI[sha256sum] = "8a9ea10943c36fc117e253f80c91e477b673525ae45762942858aef57631bb90"
# Find any meson cross files in FILESPATH that are relevant for the current
# build (using siteinfo) and add them to EXTRA_OEMESON.
--
2.43.0
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [OE-core][walnascar 10/15] glib-2.0: patch CVE-2025-6052
2025-08-21 15:39 [OE-core][walnascar 00/15] Patch review Steve Sakoman
` (8 preceding siblings ...)
2025-08-21 15:39 ` [OE-core][walnascar 09/15] glib-2.0: update 2.84.2 -> 2.84.4 Steve Sakoman
@ 2025-08-21 15:39 ` Steve Sakoman
2025-08-21 15:39 ` [OE-core][walnascar 11/15] go: upgrade 1.24.5 -> 1.24.6 Steve Sakoman
` (4 subsequent siblings)
14 siblings, 0 replies; 17+ messages in thread
From: Steve Sakoman @ 2025-08-21 15:39 UTC (permalink / raw)
To: openembedded-core
From: Peter Marko <peter.marko@siemens.com>
Backport commits from [1] which references this CVE.
[1] https://gitlab.gnome.org/GNOME/glib/-/merge_requests/4681
Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
---
.../glib-2.0/files/CVE-2025-6052-1.patch | 97 +++++++++++++++++++
.../glib-2.0/files/CVE-2025-6052-2.patch | 35 +++++++
meta/recipes-core/glib-2.0/glib.inc | 4 +-
3 files changed, 135 insertions(+), 1 deletion(-)
create mode 100644 meta/recipes-core/glib-2.0/files/CVE-2025-6052-1.patch
create mode 100644 meta/recipes-core/glib-2.0/files/CVE-2025-6052-2.patch
diff --git a/meta/recipes-core/glib-2.0/files/CVE-2025-6052-1.patch b/meta/recipes-core/glib-2.0/files/CVE-2025-6052-1.patch
new file mode 100644
index 0000000000..a344735ee4
--- /dev/null
+++ b/meta/recipes-core/glib-2.0/files/CVE-2025-6052-1.patch
@@ -0,0 +1,97 @@
+From 6aa97beda32bb337370858862f4efe2f3372619f Mon Sep 17 00:00:00 2001
+From: Tobias Stoeckmann <tobias@stoeckmann.org>
+Date: Mon, 7 Jul 2025 20:52:24 +0200
+Subject: [PATCH] gstring: Fix g_string_sized_new segmentation fault
+
+If glib is compiled with -Dglib_assert=false, i.e. no asserts
+enabled, then g_string_sized_new(G_MAXSIZE) leads to a segmentation
+fault due to an out of boundary write.
+
+This happens because the overflow check was moved into
+g_string_maybe_expand which is not called by g_string_sized_new.
+
+By assuming that string->allocated_len is always larger than
+string->len (and the code would be in huge trouble if that is not true),
+the G_UNLIKELY check in g_string_maybe_expand can be rephrased to
+avoid a potential G_MAXSIZE overflow.
+
+This in turn leads to 150-200 bytes smaller compiled library
+depending on gcc and clang versions, and one less check for the most
+common code paths.
+
+Reverts https://gitlab.gnome.org/GNOME/glib/-/merge_requests/4655 and
+reorders internal g_string_maybe_expand check to still fix
+CVE-2025-6052.
+
+CVE: CVE-2025-6052
+Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/glib/-/commit/6aa97beda32bb337370858862f4efe2f3372619f]
+Signed-off-by: Peter Marko <peter.marko@siemens.com>
+---
+ glib/gstring.c | 10 +++++-----
+ glib/tests/string.c | 18 ++++++++++++++++++
+ 2 files changed, 23 insertions(+), 5 deletions(-)
+
+diff --git a/glib/gstring.c b/glib/gstring.c
+index 010a8e976..24c4bfb40 100644
+--- a/glib/gstring.c
++++ b/glib/gstring.c
+@@ -68,6 +68,10 @@ static void
+ g_string_expand (GString *string,
+ gsize len)
+ {
++ /* Detect potential overflow */
++ if G_UNLIKELY ((G_MAXSIZE - string->len - 1) < len)
++ g_error ("adding %" G_GSIZE_FORMAT " to string would overflow", len);
++
+ string->allocated_len = g_nearest_pow (string->len + len + 1);
+ /* If the new size is bigger than G_MAXSIZE / 2, only allocate enough
+ * memory for this string and don't over-allocate.
+@@ -82,11 +86,7 @@ static inline void
+ g_string_maybe_expand (GString *string,
+ gsize len)
+ {
+- /* Detect potential overflow */
+- if G_UNLIKELY ((G_MAXSIZE - string->len - 1) < len)
+- g_error ("adding %" G_GSIZE_FORMAT " to string would overflow", len);
+-
+- if (G_UNLIKELY (string->len + len >= string->allocated_len))
++ if (G_UNLIKELY (len >= string->allocated_len - string->len))
+ g_string_expand (string, len);
+ }
+
+diff --git a/glib/tests/string.c b/glib/tests/string.c
+index aa363c57a..e3bc4a02e 100644
+--- a/glib/tests/string.c
++++ b/glib/tests/string.c
+@@ -767,6 +767,23 @@ test_string_new_take_null (void)
+ g_string_free (g_steal_pointer (&string), TRUE);
+ }
+
++static void
++test_string_sized_new (void)
++{
++
++ if (g_test_subprocess ())
++ {
++ GString *string = g_string_sized_new (G_MAXSIZE);
++ g_string_free (string, TRUE);
++ }
++ else
++ {
++ g_test_trap_subprocess (NULL, 0, G_TEST_SUBPROCESS_DEFAULT);
++ g_test_trap_assert_failed ();
++ g_test_trap_assert_stderr ("*string would overflow*");
++ }
++}
++
+ int
+ main (int argc,
+ char *argv[])
+@@ -796,6 +813,7 @@ main (int argc,
+ g_test_add_func ("/string/test-string-steal", test_string_steal);
+ g_test_add_func ("/string/test-string-new-take", test_string_new_take);
+ g_test_add_func ("/string/test-string-new-take/null", test_string_new_take_null);
++ g_test_add_func ("/string/sized-new", test_string_sized_new);
+
+ return g_test_run();
+ }
diff --git a/meta/recipes-core/glib-2.0/files/CVE-2025-6052-2.patch b/meta/recipes-core/glib-2.0/files/CVE-2025-6052-2.patch
new file mode 100644
index 0000000000..703dfdf46c
--- /dev/null
+++ b/meta/recipes-core/glib-2.0/files/CVE-2025-6052-2.patch
@@ -0,0 +1,35 @@
+From 3752760c5091eaed561ec11636b069e529533514 Mon Sep 17 00:00:00 2001
+From: Tobias Stoeckmann <tobias@stoeckmann.org>
+Date: Mon, 7 Jul 2025 20:57:41 +0200
+Subject: [PATCH] gstring: Improve g_string_append_len_inline checks
+
+Use the same style for the G_LIKELY check here as in g_string_sized_new.
+The check could overflow on 32 bit systems.
+
+Also improve the memcpy/memmove check to use memcpy if val itself is
+adjacent to end + len_unsigned, which means that no overlapping exists.
+
+CVE: CVE-2025-6052
+Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/glib/-/commit/3752760c5091eaed561ec11636b069e529533514]
+Signed-off-by: Peter Marko <peter.marko@siemens.com>
+---
+ glib/gstring.h | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/glib/gstring.h b/glib/gstring.h
+index e817176c9..c5e64b33a 100644
+--- a/glib/gstring.h
++++ b/glib/gstring.h
+@@ -232,10 +232,10 @@ g_string_append_len_inline (GString *gstring,
+ else
+ len_unsigned = (gsize) len;
+
+- if (G_LIKELY (gstring->len + len_unsigned < gstring->allocated_len))
++ if (G_LIKELY (len_unsigned < gstring->allocated_len - gstring->len))
+ {
+ char *end = gstring->str + gstring->len;
+- if (G_LIKELY (val + len_unsigned <= end || val > end + len_unsigned))
++ if (G_LIKELY (val + len_unsigned <= end || val >= end + len_unsigned))
+ memcpy (end, val, len_unsigned);
+ else
+ memmove (end, val, len_unsigned);
diff --git a/meta/recipes-core/glib-2.0/glib.inc b/meta/recipes-core/glib-2.0/glib.inc
index c171598bed..b967b9402f 100644
--- a/meta/recipes-core/glib-2.0/glib.inc
+++ b/meta/recipes-core/glib-2.0/glib.inc
@@ -229,8 +229,10 @@ SRC_URI = "${GNOME_MIRROR}/glib/${SHRT_VER}/glib-${PV}.tar.xz \
file://0001-gio-tests-resources.c-comment-out-a-build-host-only-.patch \
file://0010-Do-not-hardcode-python-path-into-various-tools.patch \
file://skip-timeout.patch \
+ file://CVE-2025-6052-1.patch \
+ file://CVE-2025-6052-2.patch \
"
-SRC_URI:append:class-native = " file://relocate-modules.patch \
+SRC_URI:append:class-native = " file://relocate-modules.patch \
file://0001-meson.build-do-not-enable-pidfd-features-on-native-g.patch \
"
--
2.43.0
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [OE-core][walnascar 11/15] go: upgrade 1.24.5 -> 1.24.6
2025-08-21 15:39 [OE-core][walnascar 00/15] Patch review Steve Sakoman
` (9 preceding siblings ...)
2025-08-21 15:39 ` [OE-core][walnascar 10/15] glib-2.0: patch CVE-2025-6052 Steve Sakoman
@ 2025-08-21 15:39 ` Steve Sakoman
2025-08-21 15:39 ` [OE-core][walnascar 12/15] binutils: Fix gprofng broken symbolic link with gp-* Steve Sakoman
` (3 subsequent siblings)
14 siblings, 0 replies; 17+ messages in thread
From: Steve Sakoman @ 2025-08-21 15:39 UTC (permalink / raw)
To: openembedded-core
From: Peter Marko <peter.marko@siemens.com>
Upgrade to latest 1.24.x release [1]:
$ git --no-pager log --oneline go1.24.5..go1.24.6
7f36edc26d [release-branch.go1.24] go1.24.6
83b4a5db24 [release-branch.go1.24] database/sql: avoid closing Rows while scan is in progress
0f5133b742 [release-branch.go1.24] os/exec: fix incorrect expansion of "", "." and ".." in LookPath
6e1c4529e4 [release-branch.go1.24] cmd/compile: for arm64 epilog, do SP increment with a single instruction
731de13dc3 [release-branch.go1.24] os/user: user random name for the test user account
390ffce7d6 [release-branch.go1.24] runtime: prevent unnecessary zeroing of large objects with pointers
b454859a8a [release-branch.go1.24] runtime: stash allpSnapshot on the M
Fixes CVE-2025-47906 and CVE-2025-47907 [2].
[1] https://github.com/golang/go/compare/go1.24.5...go1.24.6
[2] https://groups.google.com/g/golang-announce/c/x5MKroML2yM
Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
(cherry picked from commit f3072c210ac0a1e4d8046d920c3ebc29f9916b72)
Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
---
meta/recipes-devtools/go/{go-1.24.5.inc => go-1.24.6.inc} | 2 +-
...o-binary-native_1.24.5.bb => go-binary-native_1.24.6.bb} | 6 +++---
...cross-canadian_1.24.5.bb => go-cross-canadian_1.24.6.bb} | 0
.../go/{go-cross_1.24.5.bb => go-cross_1.24.6.bb} | 0
.../go/{go-crosssdk_1.24.5.bb => go-crosssdk_1.24.6.bb} | 0
.../go/{go-runtime_1.24.5.bb => go-runtime_1.24.6.bb} | 0
meta/recipes-devtools/go/{go_1.24.5.bb => go_1.24.6.bb} | 0
7 files changed, 4 insertions(+), 4 deletions(-)
rename meta/recipes-devtools/go/{go-1.24.5.inc => go-1.24.6.inc} (91%)
rename meta/recipes-devtools/go/{go-binary-native_1.24.5.bb => go-binary-native_1.24.6.bb} (79%)
rename meta/recipes-devtools/go/{go-cross-canadian_1.24.5.bb => go-cross-canadian_1.24.6.bb} (100%)
rename meta/recipes-devtools/go/{go-cross_1.24.5.bb => go-cross_1.24.6.bb} (100%)
rename meta/recipes-devtools/go/{go-crosssdk_1.24.5.bb => go-crosssdk_1.24.6.bb} (100%)
rename meta/recipes-devtools/go/{go-runtime_1.24.5.bb => go-runtime_1.24.6.bb} (100%)
rename meta/recipes-devtools/go/{go_1.24.5.bb => go_1.24.6.bb} (100%)
diff --git a/meta/recipes-devtools/go/go-1.24.5.inc b/meta/recipes-devtools/go/go-1.24.6.inc
similarity index 91%
rename from meta/recipes-devtools/go/go-1.24.5.inc
rename to meta/recipes-devtools/go/go-1.24.6.inc
index fae0d3f333..a3933c2a61 100644
--- a/meta/recipes-devtools/go/go-1.24.5.inc
+++ b/meta/recipes-devtools/go/go-1.24.6.inc
@@ -17,4 +17,4 @@ SRC_URI += "\
file://0010-cmd-go-clear-GOROOT-for-func-ldShared-when-trimpath-.patch \
file://6d265b008e3d106b2706645e5a88cd8e2fb98953.patch \
"
-SRC_URI[main.sha256sum] = "74fdb09f2352e2b25b7943e56836c9b47363d28dec1c8b56c4a9570f30b8f59f"
+SRC_URI[main.sha256sum] = "e1cb5582aab588668bc04c07de18688070f6b8c9b2aaf361f821e19bd47cfdbd"
diff --git a/meta/recipes-devtools/go/go-binary-native_1.24.5.bb b/meta/recipes-devtools/go/go-binary-native_1.24.6.bb
similarity index 79%
rename from meta/recipes-devtools/go/go-binary-native_1.24.5.bb
rename to meta/recipes-devtools/go/go-binary-native_1.24.6.bb
index 3de63060c7..86a3ad8556 100644
--- a/meta/recipes-devtools/go/go-binary-native_1.24.5.bb
+++ b/meta/recipes-devtools/go/go-binary-native_1.24.6.bb
@@ -9,9 +9,9 @@ PROVIDES = "go-native"
# Checksums available at https://go.dev/dl/
SRC_URI = "https://dl.google.com/go/go${PV}.${BUILD_GOOS}-${BUILD_GOARCH}.tar.gz;name=go_${BUILD_GOTUPLE}"
-SRC_URI[go_linux_amd64.sha256sum] = "10ad9e86233e74c0f6590fe5426895de6bf388964210eac34a6d83f38918ecdc"
-SRC_URI[go_linux_arm64.sha256sum] = "0df02e6aeb3d3c06c95ff201d575907c736d6c62cfa4b6934c11203f1d600ffa"
-SRC_URI[go_linux_ppc64le.sha256sum] = "00bdfb16d1094e78473b681d2d09d42c19c886d4dfed743853769f1665c7a552"
+SRC_URI[go_linux_amd64.sha256sum] = "bbca37cc395c974ffa4893ee35819ad23ebb27426df87af92e93a9ec66ef8712"
+SRC_URI[go_linux_arm64.sha256sum] = "124ea6033a8bf98aa9fbab53e58d134905262d45a022af3a90b73320f3c3afd5"
+SRC_URI[go_linux_ppc64le.sha256sum] = "63fc9559a3d6dfd63aa902f714375b879bbc848466181c035c122489b9646e27"
UPSTREAM_CHECK_URI = "https://golang.org/dl/"
UPSTREAM_CHECK_REGEX = "go(?P<pver>\d+(\.\d+)+)\.linux"
diff --git a/meta/recipes-devtools/go/go-cross-canadian_1.24.5.bb b/meta/recipes-devtools/go/go-cross-canadian_1.24.6.bb
similarity index 100%
rename from meta/recipes-devtools/go/go-cross-canadian_1.24.5.bb
rename to meta/recipes-devtools/go/go-cross-canadian_1.24.6.bb
diff --git a/meta/recipes-devtools/go/go-cross_1.24.5.bb b/meta/recipes-devtools/go/go-cross_1.24.6.bb
similarity index 100%
rename from meta/recipes-devtools/go/go-cross_1.24.5.bb
rename to meta/recipes-devtools/go/go-cross_1.24.6.bb
diff --git a/meta/recipes-devtools/go/go-crosssdk_1.24.5.bb b/meta/recipes-devtools/go/go-crosssdk_1.24.6.bb
similarity index 100%
rename from meta/recipes-devtools/go/go-crosssdk_1.24.5.bb
rename to meta/recipes-devtools/go/go-crosssdk_1.24.6.bb
diff --git a/meta/recipes-devtools/go/go-runtime_1.24.5.bb b/meta/recipes-devtools/go/go-runtime_1.24.6.bb
similarity index 100%
rename from meta/recipes-devtools/go/go-runtime_1.24.5.bb
rename to meta/recipes-devtools/go/go-runtime_1.24.6.bb
diff --git a/meta/recipes-devtools/go/go_1.24.5.bb b/meta/recipes-devtools/go/go_1.24.6.bb
similarity index 100%
rename from meta/recipes-devtools/go/go_1.24.5.bb
rename to meta/recipes-devtools/go/go_1.24.6.bb
--
2.43.0
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [OE-core][walnascar 12/15] binutils: Fix gprofng broken symbolic link with gp-*
2025-08-21 15:39 [OE-core][walnascar 00/15] Patch review Steve Sakoman
` (10 preceding siblings ...)
2025-08-21 15:39 ` [OE-core][walnascar 11/15] go: upgrade 1.24.5 -> 1.24.6 Steve Sakoman
@ 2025-08-21 15:39 ` Steve Sakoman
2025-08-21 15:39 ` [OE-core][walnascar 13/15] pkgconfig: fix build with gcc-15 Steve Sakoman
` (2 subsequent siblings)
14 siblings, 0 replies; 17+ messages in thread
From: Steve Sakoman @ 2025-08-21 15:39 UTC (permalink / raw)
To: openembedded-core
From: Harish Sadineni <Harish.Sadineni@windriver.com>
In binutils 2.44, application names were changed from the gp- prefix
(e.g., gp-display-text, gp-archive) to the gprofng- prefix
(e.g., gprofng-display-text, gprofng-archive). Temporary gp-*
symlinks were added to maintain compatibility with the older
gprofng-gui.
However, these compatibility symlinks did not support cross-platform
toolchain prefixes, which resulted in broken gp-* symbolic links.
Support for cross-platform prefixes are added upstream in binutils 2.45,
so this change backports that fix to resolve broken symlinks issue.
Upstream-Status: Backport [https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=90803ffdcc4d8c3d17566bf8dccadbad312f07a9]
Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
---
.../binutils/binutils-2.44.inc | 1 +
.../0020-Fix-for-borken-symlinks.patch | 62 +++++++++++++++++++
2 files changed, 63 insertions(+)
create mode 100644 meta/recipes-devtools/binutils/binutils/0020-Fix-for-borken-symlinks.patch
diff --git a/meta/recipes-devtools/binutils/binutils-2.44.inc b/meta/recipes-devtools/binutils/binutils-2.44.inc
index 32928ee167..26c2a413b8 100644
--- a/meta/recipes-devtools/binutils/binutils-2.44.inc
+++ b/meta/recipes-devtools/binutils/binutils-2.44.inc
@@ -45,5 +45,6 @@ SRC_URI = "\
file://0018-CVE-2025-5245.patch \
file://0019-CVE-2025-7545.patch \
file://0018-CVE-2025-7546.patch \
+ file://0020-Fix-for-borken-symlinks.patch \
"
S = "${WORKDIR}/git"
diff --git a/meta/recipes-devtools/binutils/binutils/0020-Fix-for-borken-symlinks.patch b/meta/recipes-devtools/binutils/binutils/0020-Fix-for-borken-symlinks.patch
new file mode 100644
index 0000000000..b26cf8a83a
--- /dev/null
+++ b/meta/recipes-devtools/binutils/binutils/0020-Fix-for-borken-symlinks.patch
@@ -0,0 +1,62 @@
+From 90803ffdcc4d8c3d17566bf8dccadbad312f07a9 Mon Sep 17 00:00:00 2001
+From: Zheng Junjie <zhengjunjie@iscas.ac.cn>
+Date: Mon, 10 Feb 2025 17:04:55 +0800
+Subject: [PATCH] gprofng: Fix cross-compilation binary name.
+
+commit d25ba4596e85da6d8af78c88b5917e14763afbe1 create symbolic link
+no care cross-compilation prefix.
+
+(cherry picked from commit:90803ffdcc4d8c3d17566bf8dccadbad312f07a9)
+Upstream-Status: Backport [https://sourceware.org/git/?p=binutils-gdb.git;a=patch;h=90803ffdcc4d8c3d17566bf8dccadbad312f07a9]
+
+Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com>
+---
+ gprofng/src/Makefile.am | 12 +++++-------
+ gprofng/src/Makefile.in | 12 +++++-------
+ 2 files changed, 10 insertions(+), 14 deletions(-)
+
+diff --git a/gprofng/src/Makefile.am b/gprofng/src/Makefile.am
+index a132a9ddb05..0465cdb06e3 100644
+--- a/gprofng/src/Makefile.am
++++ b/gprofng/src/Makefile.am
+@@ -179,10 +179,8 @@ $(srcdir)/DbeSession.cc: QLParser.tab.hh
+ .PHONY: install-exec-local
+ install-exec-local:
+ $(mkinstalldirs) $(DESTDIR)$(bindir)
+- rm -f $(DESTDIR)$(bindir)/gp-{archive,collect-app,display-html,display-src,display-text}
+- ln -s gprofng-archive $(DESTDIR)$(bindir)/gp-archive
+- ln -s gprofng-collect-app $(DESTDIR)$(bindir)/gp-collect-app
+- ln -s gprofng-display-html $(DESTDIR)$(bindir)/gp-display-html
+- ln -s gprofng-display-src $(DESTDIR)$(bindir)/gp-display-src
+- ln -s gprofng-display-text $(DESTDIR)$(bindir)/gp-display-text
+-
++ for i in gp-{archive,collect-app,display-html,display-src,display-text}; do \
++ oldname=`echo $$i | sed '$(transform)'`; \
++ rm -f $(DESTDIR)$(bindir)/$$oldname ; \
++ ln -s `echo $$oldname | sed 's&gp-&gprofng-&'` $(DESTDIR)$(bindir)/$$oldname; \
++ done
+diff --git a/gprofng/src/Makefile.in b/gprofng/src/Makefile.in
+index d0dec12e244..d6f1f9438b6 100644
+--- a/gprofng/src/Makefile.in
++++ b/gprofng/src/Makefile.in
+@@ -1119,13 +1119,11 @@ $(srcdir)/DbeSession.cc: QLParser.tab.hh
+ .PHONY: install-exec-local
+ install-exec-local:
+ $(mkinstalldirs) $(DESTDIR)$(bindir)
+- rm -f $(DESTDIR)$(bindir)/gp-{archive,collect-app,display-html,display-src,display-text}
+- ln -s gprofng-archive $(DESTDIR)$(bindir)/gp-archive
+- ln -s gprofng-collect-app $(DESTDIR)$(bindir)/gp-collect-app
+- ln -s gprofng-display-html $(DESTDIR)$(bindir)/gp-display-html
+- ln -s gprofng-display-src $(DESTDIR)$(bindir)/gp-display-src
+- ln -s gprofng-display-text $(DESTDIR)$(bindir)/gp-display-text
+-
++ for i in gp-{archive,collect-app,display-html,display-src,display-text}; do \
++ oldname=`echo $$i | sed '$(transform)'`; \
++ rm -f $(DESTDIR)$(bindir)/$$oldname ; \
++ ln -s `echo $$oldname | sed 's&gp-&gprofng-&'` $(DESTDIR)$(bindir)/$$oldname; \
++ done
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
+ .NOEXPORT:
+--
+2.43.7
--
2.43.0
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [OE-core][walnascar 13/15] pkgconfig: fix build with gcc-15
2025-08-21 15:39 [OE-core][walnascar 00/15] Patch review Steve Sakoman
` (11 preceding siblings ...)
2025-08-21 15:39 ` [OE-core][walnascar 12/15] binutils: Fix gprofng broken symbolic link with gp-* Steve Sakoman
@ 2025-08-21 15:39 ` Steve Sakoman
2025-08-21 15:39 ` [OE-core][walnascar 14/15] bash: use -std=gnu17 also for native CFLAGS Steve Sakoman
2025-08-21 15:39 ` [OE-core][walnascar 15/15] linux-firmware: fix FILES to drop RDEPENDS on full package Steve Sakoman
14 siblings, 0 replies; 17+ messages in thread
From: Steve Sakoman @ 2025-08-21 15:39 UTC (permalink / raw)
To: openembedded-core
From: Martin Jansa <martin.jansa@gmail.com>
* on hosts with gcc-15 or whenever glib PACKAGECONFIG isn't enabled
and pkgconfig uses own old bundled glib
* fixes:
http://errors.yoctoproject.org/Errors/Details/853015/
../../../git/glib/glib/goption.c:169:14: error: two or more data types in declaration specifiers
169 | gboolean bool;
| ^~~~
../../../git/glib/glib/goption.c:169:18: warning: declaration does not declare anything
169 | gboolean bool;
| ^
Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
---
...0001-Do-not-use-bool-as-a-field-name.patch | 36 +++++++++++++++++++
.../pkgconfig/pkgconfig_git.bb | 1 +
2 files changed, 37 insertions(+)
create mode 100644 meta/recipes-devtools/pkgconfig/pkgconfig/0001-Do-not-use-bool-as-a-field-name.patch
diff --git a/meta/recipes-devtools/pkgconfig/pkgconfig/0001-Do-not-use-bool-as-a-field-name.patch b/meta/recipes-devtools/pkgconfig/pkgconfig/0001-Do-not-use-bool-as-a-field-name.patch
new file mode 100644
index 0000000000..bcb7e94d69
--- /dev/null
+++ b/meta/recipes-devtools/pkgconfig/pkgconfig/0001-Do-not-use-bool-as-a-field-name.patch
@@ -0,0 +1,36 @@
+From b3b26a7e125e5e4f5b69975cc17eb6d33198ebaa Mon Sep 17 00:00:00 2001
+From: Emmanuele Bassi <ebassi@gnome.org>
+Date: Thu, 11 Apr 2024 14:40:21 +0100
+Subject: [PATCH] Do not use bool as a field name
+
+C99 aliases `bool` to `_Bool`, and C23 introduces `bool` as a reserved
+keyword. Let's avoid using `bool` as a field name.
+
+Upstream-Status: Backport [Backport from glib to bunlded version in pkg-config https://github.com/GNOME/glib/commit/9e320e1c43a4770ed1532248fe5416eb0c618120]
+Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
+---
+ glib/glib/goption.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/glib/glib/goption.c b/glib/glib/goption.c
+index 0a22f6f..f439fd4 100644
+--- a/glib/glib/goption.c
++++ b/glib/glib/goption.c
+@@ -166,7 +166,7 @@ typedef struct
+ gpointer arg_data;
+ union
+ {
+- gboolean bool;
++ gboolean boolean;
+ gint integer;
+ gchar *str;
+ gchar **array;
+@@ -1600,7 +1600,7 @@ free_changes_list (GOptionContext *context,
+ switch (change->arg_type)
+ {
+ case G_OPTION_ARG_NONE:
+- *(gboolean *)change->arg_data = change->prev.bool;
++ *(gboolean *)change->arg_data = change->prev.boolean;
+ break;
+ case G_OPTION_ARG_INT:
+ *(gint *)change->arg_data = change->prev.integer;
diff --git a/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb b/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb
index baf37b0a9b..af512a42b4 100644
--- a/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb
+++ b/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb
@@ -15,6 +15,7 @@ SRC_URI = "git://gitlab.freedesktop.org/pkg-config/pkg-config.git;branch=master;
file://pkg-config-esdk.in \
file://pkg-config-native.in \
file://0001-glib-gettext.m4-Update-AM_GLIB_GNU_GETTEXT-to-match-.patch \
+ file://0001-Do-not-use-bool-as-a-field-name.patch \
"
S = "${WORKDIR}/git"
--
2.43.0
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [OE-core][walnascar 14/15] bash: use -std=gnu17 also for native CFLAGS
2025-08-21 15:39 [OE-core][walnascar 00/15] Patch review Steve Sakoman
` (12 preceding siblings ...)
2025-08-21 15:39 ` [OE-core][walnascar 13/15] pkgconfig: fix build with gcc-15 Steve Sakoman
@ 2025-08-21 15:39 ` Steve Sakoman
2025-08-21 15:39 ` [OE-core][walnascar 15/15] linux-firmware: fix FILES to drop RDEPENDS on full package Steve Sakoman
14 siblings, 0 replies; 17+ messages in thread
From: Steve Sakoman @ 2025-08-21 15:39 UTC (permalink / raw)
To: openembedded-core
From: Martin Jansa <martin.jansa@gmail.com>
* fixes builds on host with gcc-15:
http://errors.yoctoproject.org/Errors/Details/853016/
../../bash-5.2.37/builtins/mkbuiltins.c:268:29: error: too many arguments to function ‘xmalloc’; expected 0, have 1
268 | error_directory = xmalloc (2 + strlen (argv[arg_index]));
| ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
---
meta/recipes-extended/bash/bash_5.2.37.bb | 3 +++
1 file changed, 3 insertions(+)
diff --git a/meta/recipes-extended/bash/bash_5.2.37.bb b/meta/recipes-extended/bash/bash_5.2.37.bb
index 9f02ea17b5..2c0645cbd9 100644
--- a/meta/recipes-extended/bash/bash_5.2.37.bb
+++ b/meta/recipes-extended/bash/bash_5.2.37.bb
@@ -21,5 +21,8 @@ DEBUG_OPTIMIZATION:append:armv4 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb
DEBUG_OPTIMIZATION:append:armv5 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}"
CFLAGS += "-std=gnu17"
+# mkbuiltins.c is built with native toolchain and needs gnu17 as well:
+# http://errors.yoctoproject.org/Errors/Details/853016/
+BUILD_CFLAGS += "-std=gnu17"
BBCLASSEXTEND = "nativesdk"
--
2.43.0
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [OE-core][walnascar 15/15] linux-firmware: fix FILES to drop RDEPENDS on full package
2025-08-21 15:39 [OE-core][walnascar 00/15] Patch review Steve Sakoman
` (13 preceding siblings ...)
2025-08-21 15:39 ` [OE-core][walnascar 14/15] bash: use -std=gnu17 also for native CFLAGS Steve Sakoman
@ 2025-08-21 15:39 ` Steve Sakoman
14 siblings, 0 replies; 17+ messages in thread
From: Steve Sakoman @ 2025-08-21 15:39 UTC (permalink / raw)
To: openembedded-core
From: Patryk Seregiet <patryk.seregiet@gmail.com>
linux-firmware-rtl8723 and linux-firmware-adsp-sst
contain symlinks to files that were previously
packaged only in the main linux-firmware package.
This caused both subpackages to inherit an unintended
RDEPENDS on the full package. This change resolves the
issue by ensuring all required files are correctly
included in their respective subpackages.
Thanks to Peter Kjellerstedt for figuring out the rootcause.
(From OE-Core rev: cf27c7d040e7a5f1bbc60fb36c98686704bd7dc5)
Signed-off-by: Patryk Seregiet <patryk.seregiet@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(master rev: cf27c7d040e7a5f1bbc60fb36c98686704bd7dc5)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
---
.../linux-firmware/linux-firmware_20250311.bb | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-kernel/linux-firmware/linux-firmware_20250311.bb b/meta/recipes-kernel/linux-firmware/linux-firmware_20250311.bb
index 675d378376..a4814d80d1 100644
--- a/meta/recipes-kernel/linux-firmware/linux-firmware_20250311.bb
+++ b/meta/recipes-kernel/linux-firmware/linux-firmware_20250311.bb
@@ -1253,6 +1253,7 @@ FILES:${PN}-rtl8723 = " \
FILES:${PN}-rtl8821 = " \
${nonarch_base_libdir}/firmware/rtlwifi/rtl8821*.bin* \
${nonarch_base_libdir}/firmware/rtw88/rtw8821*.bin* \
+ ${nonarch_base_libdir}/firmware/rtl_bt/rtl8821*.bin \
"
FILES:${PN}-rtl8761 = " \
${nonarch_base_libdir}/firmware/rtl_bt/rtl8761*.bin* \
@@ -1756,7 +1757,10 @@ RDEPENDS:${PN}-ice = "${PN}-ice-license"
FILES:${PN}-adsp-sst-license = "${nonarch_base_libdir}/firmware/LICENCE.adsp_sst"
LICENSE:${PN}-adsp-sst = "Firmware-adsp_sst"
LICENSE:${PN}-adsp-sst-license = "Firmware-adsp_sst"
-FILES:${PN}-adsp-sst = "${nonarch_base_libdir}/firmware/intel/dsp_fw*"
+FILES:${PN}-adsp-sst = "\
+ ${nonarch_base_libdir}/firmware/intel/dsp_fw* \
+ ${nonarch_base_libdir}/firmware/intel/avs/*/dsp_basefw.bin \
+"
RDEPENDS:${PN}-adsp-sst = "${PN}-adsp-sst-license"
# For QAT
--
2.43.0
^ permalink raw reply related [flat|nested] 17+ messages in thread
end of thread, other threads:[~2025-08-21 15:40 UTC | newest]
Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-21 15:39 [OE-core][walnascar 00/15] Patch review Steve Sakoman
2025-08-21 15:39 ` [OE-core][walnascar 01/15] elfutils: Fix CVE-2025-1352 Steve Sakoman
2025-08-21 15:39 ` [OE-core][walnascar 02/15] elfutils: Fix CVE-2025-1365 Steve Sakoman
2025-08-21 15:39 ` [OE-core][walnascar 03/15] elfutils: Fix CVE-2025-1371 Steve Sakoman
2025-08-21 15:39 ` [OE-core][walnascar 04/15] elfutils: Fix CVE-2025-1372 Steve Sakoman
2025-08-21 15:39 ` [OE-core][walnascar 05/15] elfutils: Fix CVE-2025-1376 Steve Sakoman
2025-08-21 15:39 ` [OE-core][walnascar 06/15] elfutils: Fix CVE-2025-1377 Steve Sakoman
2025-08-21 15:39 ` [OE-core][walnascar 07/15] glib-2.0: update 2.84.0 -> 2.84.1 Steve Sakoman
2025-08-21 15:39 ` [OE-core][walnascar 08/15] glib-2.0: update 2.84.1 -> 2.84.2 Steve Sakoman
2025-08-21 15:39 ` [OE-core][walnascar 09/15] glib-2.0: update 2.84.2 -> 2.84.4 Steve Sakoman
2025-08-21 15:39 ` [OE-core][walnascar 10/15] glib-2.0: patch CVE-2025-6052 Steve Sakoman
2025-08-21 15:39 ` [OE-core][walnascar 11/15] go: upgrade 1.24.5 -> 1.24.6 Steve Sakoman
2025-08-21 15:39 ` [OE-core][walnascar 12/15] binutils: Fix gprofng broken symbolic link with gp-* Steve Sakoman
2025-08-21 15:39 ` [OE-core][walnascar 13/15] pkgconfig: fix build with gcc-15 Steve Sakoman
2025-08-21 15:39 ` [OE-core][walnascar 14/15] bash: use -std=gnu17 also for native CFLAGS Steve Sakoman
2025-08-21 15:39 ` [OE-core][walnascar 15/15] linux-firmware: fix FILES to drop RDEPENDS on full package Steve Sakoman
-- strict thread matches above, loose matches on Subject: below --
2025-07-14 16:22 [OE-core][walnascar 00/15] Patch review Steve Sakoman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox