Patch review
cover Patch review
Please review this set of changes for whinlatter and have comments back by end of day Thursday, February 26.
Passed a-full on autobuilder:
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/29/builds/3277
with a warning on qemuarm64-ptest:
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/61/builds/3109
That is a known intermittent bug: #15885 – AB-INT PTEST: python3 test_default_timeout ptest failure
The following changes since commit 21314665e198c1abe458d0bad5c4d14d4c3ad856:
build-appliance-image: Update to whinlatter head revisions (2026-02-23 09:22:40 +0000)
are available in the Git repository at:
https://git.openembedded.org/openembedded-core-contrib stable/whinlatter-nut
https://git.openembedded.org/openembedded-core-contrib/log/?h=stable/whinlatter-nut
for you to fetch changes up to c0f0667e742a59dce06cbe97baa6b4531fd13617:
alsa-lib: patch CVE-2026-25068 (2026-02-24 09:39:34 +0100)
----------------------------------------------------------------
Daniel Dragomir (1):
wic/engine: error on old host debugfs for standalone directory copy
Fabio Berton (1):
classes/buildhistory: Do not sign buildhistory commits
Liu Yiding (1):
gnutls: fix postinst script for ${PN}-fips for multilibs
Peter Marko (3):
libpng: upgrade 1.6.54 -> 1.6.55
glib-2.0: upgrade 2.86.3 -> 2.86.4
alsa-lib: patch CVE-2026-25068
Pratik Farkase (1):
libevent: merge inherit statements
Ross Burton (1):
gnutls: use libtool to install test binaries
Yoann Congal (1):
pseudo: Update to include a fix for systems with kernel <5.6
meta/classes/buildhistory.bbclass | 2 +-
...l_2.86.3.bb => glib-2.0-initial_2.86.4.bb} | 0
...{glib-2.0_2.86.3.bb => glib-2.0_2.86.4.bb} | 0
meta/recipes-core/glib-2.0/glib.inc | 2 +-
meta/recipes-devtools/pseudo/pseudo_git.bb | 2 +-
.../alsa/alsa-lib/CVE-2026-25068.patch | 34 +++++++++++++++++++
.../alsa/alsa-lib_1.2.14.bb | 1 +
.../{libpng_1.6.54.bb => libpng_1.6.55.bb} | 2 +-
meta/recipes-support/gnutls/gnutls_3.8.10.bb | 4 +--
.../libevent/libevent_2.1.12.bb | 4 +--
scripts/lib/wic/engine.py | 29 ++++++++++++++++
11 files changed, 71 insertions(+), 9 deletions(-)
rename meta/recipes-core/glib-2.0/{glib-2.0-initial_2.86.3.bb => glib-2.0-initial_2.86.4.bb} (100%)
rename meta/recipes-core/glib-2.0/{glib-2.0_2.86.3.bb => glib-2.0_2.86.4.bb} (100%)
create mode 100644 meta/recipes-multimedia/alsa/alsa-lib/CVE-2026-25068.patch
rename meta/recipes-multimedia/libpng/{libpng_1.6.54.bb => libpng_1.6.55.bb} (97%)PATCH 1/9 pseudo: Update to include a fix for systems with kernel <5.6
From: Yoann Congal <[email protected]>
$ git log --oneline --no-decorate 9ab513512d8b5180a430ae4fa738cb531154cdef..43cbd8fb4914328094ccdb4bb827d74b1bac2046 43cbd8f ports/linux: define __NR_openat2 if missing
--- meta/recipes-devtools/pseudo/pseudo_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/pseudo/pseudo_git.bb +1 -1
@@ -12,7 +12,7 @@ SRC_URI:append:class-nativesdk = " \ file://older-glibc-symbols.patch" SRC_URI[prebuilt.sha256sum] = "ed9f456856e9d86359f169f46a70ad7be4190d6040282b84c8d97b99072485aa" -SRCREV = "9ab513512d8b5180a430ae4fa738cb531154cdef" +SRCREV = "43cbd8fb4914328094ccdb4bb827d74b1bac2046" PV = "1.9.3+git" # largefile and 64bit time_t support adds these macros via compiler flags globally
PATCH 2/9 gnutls: fix postinst script for ${PN}-fips for multilibs
In reply to Yoann CongalFrom: Liu Yiding <[email protected]>
Append "-p" parameter to mkdir to fix failure like following:
When use "gnutls-cli --fips140-mode" command in multilib environment, it shows library not found error.
root@qemux86-64:~# gnutls-cli --fips140-mode library is NOT in FIPS140-2 mode
And it was caused by lacking hmac files.
root@qemux86-64:~# ls /usr/lib64/.*hmac ls: cannot access '/usr/lib64/.libgnutl*': No such file or directory
The reason is as following:
When '${sysconfdir}/gnutls' was created by 'mkdir' with lib32-gnutls, the dir will not be created again by 'mkdir' with lib-gnutls again, and the subsequent command will not be executed, so hmac files were missing in lib64 environment.
${bindir}/fipshmac ${libdir}/libgnutls.so.30.*.* > ${libdir}/.libgnutls.so.30.hmacSo append "-p" parameter can avoid this error.
(From OE-Core rev: 7b51969967e13779ed2f5a3134ff89f9f4ad8af5)
--- meta/recipes-support/gnutls/gnutls_3.8.10.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-support/gnutls/gnutls_3.8.10.bb +1 -1
@@ -91,7 +91,7 @@ BBCLASSEXTEND = "native nativesdk" pkg_postinst_ontarget:${PN}-fips () { if test -x ${bindir}/fipshmac then - mkdir ${sysconfdir}/gnutls + mkdir -p ${sysconfdir}/gnutls touch ${sysconfdir}/gnutls/config ${bindir}/fipshmac ${libdir}/libgnutls.so.30.*.* > ${libdir}/.libgnutls.so.30.hmac ${bindir}/fipshmac ${libdir}/libnettle.so.8.* > ${libdir}/.libnettle.so.8.hmac
PATCH 3/9 gnutls: use libtool to install test binaries
In reply to Yoann CongalFrom: Ross Burton <[email protected]>
If libtool builds a binary it's best to use libtool to install it, as otherwise you might install a wrapper script or need to make assumptions about where libtool has put the real binary (as this isn't always .libs)
(From OE-Core rev: 675e8c730132ae02092400a0f4f170782afdbb60)
--- meta/recipes-support/gnutls/gnutls_3.8.10.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-support/gnutls/gnutls_3.8.10.bb +1 -1
@@ -71,7 +71,7 @@ do_compile_ptest() { do_install:append:class-target() { if ${@bb.utils.contains('PACKAGECONFIG', 'fips', 'true', 'false', d)}; then install -d ${D}${bindir}/bin - install -m 0755 ${B}/lib/.libs/fipshmac ${D}/${bindir}/ + ${B}/libtool --mode=install install -m 0755 ${B}/lib/fipshmac ${D}/${bindir}/ fi }
PATCH 4/9 libpng: upgrade 1.6.54 -> 1.6.55
In reply to Yoann CongalFrom: Peter Marko <[email protected]>
Release notes [1]:
* Fixed CVE-2026-25646 (high severity):
Heap buffer overflow in png_set_quantize. (Reported and fixed by Joshua Inscoe.)
* Resolved an oss-fuzz build issue involving nalloc. (Contributed by Philippe Antoine.)
[1] https://github.com/pnggroup/libpng/blob/v1.6.55/ANNOUNCE
---
.../libpng/{libpng_1.6.54.bb => libpng_1.6.55.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta/recipes-multimedia/libpng/{libpng_1.6.54.bb => libpng_1.6.55.bb} (97%)meta/recipes-multimedia/libpng/libpng_1.6.55.bb renamed from meta/recipes-multimedia/libpng/libpng_1.6.54.bb +1 -1
@@ -14,7 +14,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}${LIBV}/${BP}.tar.xz \ file://run-ptest \ " -SRC_URI[sha256sum] = "01c9d8a303c941ec2c511c14312a3b1d36cedb41e2f5168ccdaa85d53b887805" +SRC_URI[sha256sum] = "d925722864837ad5ae2a82070d4b2e0603dc72af44bd457c3962298258b8e82d" MIRRORS += "${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}${LIBV}/ ${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}${LIBV}/older-releases/"
PATCH 5/9 libevent: merge inherit statements
In reply to Yoann CongalFrom: Pratik Farkase <[email protected]>
Merge the separate inherit statements into a single one for improved readability and consistency with OE style.
No functional change intended.
--- meta/recipes-support/libevent/libevent_2.1.12.bb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
meta/recipes-support/libevent/libevent_2.1.12.bb +1 -3
@@ -28,13 +28,11 @@ S = "${UNPACKDIR}/${BPN}-${PV}-stable" PACKAGECONFIG ??= "" PACKAGECONFIG[openssl] = "--enable-openssl,--disable-openssl,openssl" -inherit autotools github-releases +inherit autotools github-releases ptest multilib_header # Needed for Debian packaging LEAD_SONAME = "libevent-2.1.so" -inherit ptest multilib_header - DEPENDS = "zlib" PACKAGES_DYNAMIC = "^${PN}-.*$"
PATCH 6/9 classes/buildhistory: Do not sign buildhistory commits
In reply to Yoann CongalFrom: Fabio Berton <[email protected]>
This change adds the --no-gpg-sign option to prevent buildhistory commits from failing due to GPG signing issues. Depending on the setup, buildhistory may fail to create a commit if the user has the commit.gpgsign option enabled.
For example, if the user creates a signing key that requires a password, the commit won't be created and will fail with the following error:
/
|error: Enter passphrase: Load key "/home/<user>/.ssh/id_ed25519": |incorrect passphrase supplied to decrypt private key? |fatal: failed to write commit object
\
The bitbake command won't fail, but buildhistory won't have a commit. Also, the commit may silently fail when building inside a container due to missing packages or issues with accessing the GPG agent.
This is similar to [1], and signing the buildhistory commit should be avoided to prevent such issues.
1 - https://git.openembedded.org/openembedded-core/commit/?id=7595a0a63a933af9dd9d1e458dc34a4ba80d9eae
--- meta/classes/buildhistory.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/buildhistory.bbclass +1 -1
@@ -797,7 +797,7 @@ result: $result metadata revisions: END cat ${BUILDHISTORY_DIR}/metadata-revs >> $commitmsgfile - git commit $commitopts -F $commitmsgfile --author "${BUILDHISTORY_COMMIT_AUTHOR}" > /dev/null + git commit --no-gpg-sign $commitopts -F $commitmsgfile --author "${BUILDHISTORY_COMMIT_AUTHOR}" > /dev/null rm $commitmsgfile }
PATCH 7/9 wic/engine: error on old host debugfs for standalone directory copy
In reply to Yoann CongalFrom: Daniel Dragomir <[email protected]>
When wic is used in standalone mode, it relies on host tools such as debugfs. For directory host->image copies into ext* partitions, wic uses scripted debugfs "-f" input with multiple mkdir/write commands.
Older host debugfs versions (< 1.46.5) may behave unreliably in this mode and can silently miss files. This does not affect builds using debugfs from OE where the version is known to be sufficiently new.
Add a debugfs version check and emit an error when an older host debugfs is detected. The error is shown once per run and halts execution.
--- scripts/lib/wic/engine.py | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+)
scripts/lib/wic/engine.py +29 -0
@@ -222,6 +222,34 @@ def wic_list(args, scripts_path): return False +_DEBUGFS_VERSION = None + +def debugfs_version_check(debugfs_path, min_ver=(1, 46, 5)): + global _DEBUGFS_VERSION + + if _DEBUGFS_VERSION is None: + out = "" + for flag in ("-V", "-v"): + try: + out = exec_cmd(f"{debugfs_path} {flag}") + break + except Exception: + continue + + import re + m = re.search(r"(\d+)\.(\d+)\.(\d+)", out or "") + _DEBUGFS_VERSION = tuple(map(int, m.groups())) if m else None + + ver = _DEBUGFS_VERSION + + if ver is not None and ver < min_ver: + raise WicError( + "Sorry, debugfs 1.46.5 or later is required for this script. " + "Older versions of debugfs can make directory copies into ext* partitions " + "via scripted debugfs (-f) unreliable or broken. Detected version: %s" + % (".".join(map(str, ver)) if ver else "unknown") + ) + class Disk: def __init__(self, imagepath, native_sysroot, fstypes=('fat', 'ext')):
@@ -352,6 +380,7 @@ class Disk: if self.partitions[pnum].fstype.startswith('ext'): if isinstance(src, str): # host to image case if os.path.isdir(src): + debugfs_version_check(self.debugfs) base = os.path.abspath(src) base_parent = os.path.dirname(base) cmds = []
PATCH 8/9 glib-2.0: upgrade 2.86.3 -> 2.86.4
In reply to Yoann CongalFrom: Peter Marko <[email protected]>
Fixes CVE-2026-1484, CVE-2026-1485 and CVE-2026-1489.
Release notes [1]:
Overview of changes in GLib 2.86.4, 2026-02-13
* Fix several security vulnerabilities of varying severity (see below for details)
* Bugs fixed:
* #3858 (closed) glib-compile-resources: Incorrect compiler detection on Windows when building GTK causes a DoS (L. E. Segovia)
* #3863 (closed) Iterating over a short (preallocated) GVariant bytestring invalidly refs a NULL GBytes (Christian Hergert)
* #3870 (closed) (CVE-2026-1484) (YWH-PGM9867-168) Integer Overflow -> Buffer Underflow on Glib through glib/gbase64.c via g_base64_encode_close() leads to OOB Write (Marco Trevisan)
* #3871 (closed) (CVE-2026-1485) (#YWH-PGM9867-169) Buffer underflow on Glib through gio/gcontenttype-fdo.c via parse_header() lead to OOB Read/Write (Marco Trevisan)
* #3872 (closed) (CVE-2026-1489) (#YWH-PGM9867-171) Integer Overflow on Glib through glib/guniprop.c via output_marks() lead to OOB Write in glib/gutf8.c:g_unichar_to_utf8() (Marco Trevisan (Treviño))
* !4946 (merged) Update Romanian translation glib-2-86
* !4955 (merged) Backport !4954 (merged) “glib-compile-resources:
Always assume MSVC compiler if VCINSTALLDIR is set” to glib-2-86
* !4961 (merged) Backport !4960 (merged) “glib/gvariant: add failing test for bytestring and fix it” to glib-2-86
* !4979 (merged) [glib-2-86] gbase64: Use gsize to prevent potential overflow
* !4981 (merged) [glib-2-86] gio/gcontenttype-fdo: Do not overflow if header is longer than MAXINT
* !4984 (merged) [glib-2-86] guniprop: Use size_t for output_marks length
* !5010 (merged) Update Kazakh translation
* Translation updates:
* Kazakh (Baurzhan Muftakhidinov)
* Romanian (Antonio Marin)
[1] https://gitlab.gnome.org/GNOME/glib/-/releases/2.86.4
---
.../{glib-2.0-initial_2.86.3.bb => glib-2.0-initial_2.86.4.bb} | 0
.../glib-2.0/{glib-2.0_2.86.3.bb => glib-2.0_2.86.4.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.86.3.bb => glib-2.0-initial_2.86.4.bb} (100%)
rename meta/recipes-core/glib-2.0/{glib-2.0_2.86.3.bb => glib-2.0_2.86.4.bb} (100%)meta/recipes-core/glib-2.0/glib-2.0-initial_2.86.4.bb renamed from meta/recipes-core/glib-2.0/glib-2.0-initial_2.86.3.bb +0 -0
meta/recipes-core/glib-2.0/glib-2.0_2.86.4.bb renamed from meta/recipes-core/glib-2.0/glib-2.0_2.86.3.bb +0 -0
meta/recipes-core/glib-2.0/glib.inc +1 -1
@@ -237,7 +237,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[archive.sha256sum] = "b3211d8d34b9df5dca05787ef0ad5d7ca75dec998b970e1aab0001d229977c65" +SRC_URI[archive.sha256sum] = "d4e2b5d791d5015ffd8c6971ad8e975a0a55c1a14926cdb25cf843ff00682260" # Find any meson cross files in FILESPATH that are relevant for the current # build (using siteinfo) and add them to EXTRA_OEMESON.
PATCH 9/9 alsa-lib: patch CVE-2026-25068
In reply to Yoann CongalFrom: Peter Marko <[email protected]>
Pick patch mentioned in NVD report.
It also includes CVE ID in commit message.
Use older SNDERR funtion as new one is not yet available. This was copied from Debian patch.
--- .../alsa/alsa-lib/CVE-2026-25068.patch | 34 +++++++++++++++++++ .../alsa/alsa-lib_1.2.14.bb | 1 + 2 files changed, 35 insertions(+) create mode 100644 meta/recipes-multimedia/alsa/alsa-lib/CVE-2026-25068.patch
meta/recipes-multimedia/alsa/alsa-lib/CVE-2026-25068.patch new file +34 -0
@@ -0,0 +1,34 @@ +From 5f7fe33002d2d98d84f72e381ec2cccc0d5d3d40 Mon Sep 17 00:00:00 2001 +From: Jaroslav Kysela <[email protected]> +Date: Thu, 29 Jan 2026 16:51:09 +0100 +Subject: [PATCH] topology: decoder - add boundary check for channel mixer + count + +Malicious binary topology file may cause heap corruption. + +CVE: CVE-2026-25068 + +Signed-off-by: Jaroslav Kysela <[email protected]> + +Upstream-Status: Backport [https://github.com/alsa-project/alsa-lib/commit/5f7fe33002d2d98d84f72e381ec2cccc0d5d3d40] +Signed-off-by: Peter Marko <[email protected]> +--- + src/topology/ctl.c | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/src/topology/ctl.c b/src/topology/ctl.c +index a0c24518..322c461c 100644 +--- a/src/topology/ctl.c ++++ b/src/topology/ctl.c +@@ -1247,6 +1247,11 @@ int tplg_decode_control_mixer1(snd_tplg_t *tplg, + if (mc->num_channels > 0) { + map = tplg_calloc(heap, sizeof(*map)); + map->num_channels = mc->num_channels; ++ if (map->num_channels > SND_TPLG_MAX_CHAN || ++ map->num_channels > SND_SOC_TPLG_MAX_CHAN) { ++ SNDERR("mixer: unexpected channel count %d", map->num_channels); ++ return -EINVAL; ++ } + for (i = 0; i < map->num_channels; i++) { + map->channel[i].reg = mc->channel[i].reg; + map->channel[i].shift = mc->channel[i].shift;
meta/recipes-multimedia/alsa/alsa-lib_1.2.14.bb +1 -0
@@ -10,6 +10,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=a916467b91076e631dd8edb7424769c7 \ " SRC_URI = "https://www.alsa-project.org/files/pub/lib/${BP}.tar.bz2" +SRC_URI += "file://CVE-2026-25068.patch" SRC_URI[sha256sum] = "be9c88a0b3604367dd74167a2b754a35e142f670292ae47a2fdef27a2ee97a32" inherit autotools pkgconfig