Blacksail pull request
cover Blacksail pull request
From: Ankur Tyagi <[email protected]>
Please merge these changes in blacksail. Tested locally and on autobuilder.
https://autobuilder.yoctoproject.org/valkyrie/#/builders/81/builds/1984
The following changes since commit bb956bf8ff7a32f31deaa83e96880d10ab564d14:
redis: upgrade 8.10.2 -> 8.10.3 (2026-10-28 08:22:29 +1300)
are available in the Git repository at:
https://git.openembedded.org/meta-openembedded-contrib ankurt/blacksail
https://git.openembedded.org/meta-openembedded-contrib/log/?h=ankurt/blacksail
for you to fetch changes up to a0413b03fe80a66a454e5364768d36cd1fdbeb7e:
libplacebo: update SRC_URI branch (2026-11-19 07:43:14 +1300)
----------------------------------------------------------------
Ankur Tyagi (41):
zchunk: upgrade 1.5.4 -> 1.5.5
tcpreplay: upgrade 4.6.1 -> 4.6.2
proftpd: upgrade 1.3.9d -> 1.3.9e
json-schema-validator: upgrade 2.4.0 -> 2.4.1
haveged: upgrade 1.9.26 -> 1.9.27
libraw: upgrade 0.22.2 -> 0.22.3
assimp: patch CVE-2026-117608
flatcc: patch CVE-2026-116733
flatcc: patch CVE-2026-116734
ndpi: patch CVE-2026-116744
hdf5: patch CVE-2026-19026, CVE-2026-19027 and CVE-2026-19028
hdf5: patch CVE-2026-19023 and CVE-2026-19024
hdf5: patch CVE-2026-120689
hdf5: patch CVE-2026-120754 and CVE-2026-120755
hdf5: patch CVE-2026-120756
hdf5: patch CVE-2026-120757
hdf5: patch CVE-2026-120758
libgphoto2: patch CVE-2026-120451
libgphoto2: patch CVE-2026-120452
python3-django: upgrade 5.2.18 -> 5.2.19
python3-django: upgrade 6.0.9 -> 6.0.10
uriparser: upgrade 1.0.2 -> 1.0.3
weechat: upgrade 4.10.1 -> 4.10.2
libopenmpt: upgrade 0.8.9 -> 0.8.10
7zip: upgrade 26.05 -> 26.06
apitrace: patch CVE-2026-126050
cockpit: mark CVE-2024-2947 fixed
brotli: set CVE_PRODUCT to "google:brotli"
ettercap: patch CVEs CVE-2026-125400 - CVE-2026-125406
tinyproxy: patch CVE-2026-125371
webmin: patch CVE-2026-125391
webmin: patch CVE-2026-125392
python3-aiohttp: patch CVE-2026-111063
python3-aiohttp: patch CVE-2026-111065
python3-aiohttp: patch CVE-2026-111066
python3-aiohttp: patch CVE-2026-111748
python3-aiohttp: patch CVE-2026-111749
python3-aiohttp: patch CVE-2026-111750
python3-filelock: upgrade 4.0.4 -> 4.0.12
mpv: patch CVE-2026-123095
libplacebo: update SRC_URI branch
Awais Belal (2):
mongodb: fix build with python 3.12
mongodb: update to 4.4.29
Gyorgy Sarvari (2):
mongodb: upgrade 4.4.29 -> 4.4.30
mongodb: ignore CVE-2025-14911
James Lee (1):
mctp: upgrade 2.6.1 -> 2.6.2
Jason Schonberg (1):
cockpit: upgrade 366 -> 366.1
Johannes Schneider (1):
imx-cst: restore PKCS#11 signing on OpenSSL 4 via the provider
Khem Raj (5):
mongodb: Fix build with current python, SCons, clang and OpenSSL
mongodb: Backport fix for SERVER-49099
mongodb: Keep build paths out of buildInfo
frr: Fix build with bison rejecting paths in output directives
tuna: Fix build with PEP 517 frontends
Leon Anavi (5):
weechat: Upgrade 4.10.0 -> 4.10.1
valkey: Upgrade 9.1.2 -> 9.1.3
python3-httplib2: Upgrade 0.32.0 -> 0.32.1
python3-tzdata: Upgrade 2026.5 -> 2026.6
libmikmod: Upgrade 3.3.15 -> 3.3.16
Markus Volk (2):
mpv: fix a file descriptor leak in the render API
mpv: make the drmprime overlay framebuffer the whole frame
Martin Siegumfeldt (1):
spitools: upgrade 1.1.1 -> 1.2.0
Nate Kent (1):
nng: correct upstream branch name
Peter Kjellerstedt (1):
glaze: Install the CMake files in /usr/lib/cmake/glaze (as intended)
Peter Marko (1):
libwebsockets: patch CVE-2026-114550
...bopenmpt_0.8.9.bb => libopenmpt_0.8.10.bb} | 2 +-
.../nanomsg/nng_1.12.3.bb | 2 +-
.../{proftpd_1.3.9d.bb => proftpd_1.3.9e.bb} | 2 +-
.../{weechat_4.10.0.bb => weechat_4.10.2.bb} | 2 +-
...ths-in-bison-output-defines-directiv.patch | 54 ++
.../recipes-protocols/frr/frr_10.6.2.bb | 1 +
.../ettercap/ettercap_0.8.4.1.bb | 4 +
.../ettercap/files/CVE-2026-125400-06_1.patch | 121 +++
.../ettercap/files/CVE-2026-125400-06_2.patch | 149 ++++
.../ettercap/files/CVE-2026-125400-06_3.patch | 92 ++
.../ettercap/files/CVE-2026-125400-06_4.patch | 807 ++++++++++++++++++
meta-networking/recipes-support/mctp/mctp.inc | 2 +-
.../mctp/{mctp_2.6.1.bb => mctp_2.6.2.bb} | 0
.../mctp/{mctpd_2.6.1.bb => mctpd_2.6.2.bb} | 0
.../ntopng/files/CVE-2026-116744.patch | 33 +
.../recipes-support/ntopng/ndpi_5.0.bb | 1 +
...ix-struct-ethhdr-redefinition-on-mus.patch | 43 -
...{tcpreplay_4.6.1.bb => tcpreplay_4.6.2.bb} | 5 +-
.../tinyproxy/tinyproxy/CVE-2026-125371.patch | 70 ++
.../tinyproxy/tinyproxy_1.11.3.bb | 1 +
...stead-of-pkg_resources-for-version-p.patch | 51 ++
...001-free_mon-Include-missing-cstdint.patch | 28 -
...econfig.py-python-3.12-compatibility.patch | 57 ++
...call-to-CheckLibWithHeader-as-a-keyw.patch | 56 ++
.../0003-boost-Fix-build-with-clang-23.patch | 176 ++++
.../0004-ssl-Fix-build-with-OpenSSL-4.patch | 117 +++
...ove-the-Node-swap-function-in-Biggie.patch | 58 ++
.../mongodb/mongodb/oe-buildinfo.vars | 11 +
.../recipes-dbs/mongodb/mongodb_git.bb | 20 +-
.../libwebsockets/CVE-2026-114550.patch | 31 +
.../libwebsockets/libwebsockets_4.5.8.bb | 1 +
.../apitrace/apitrace/CVE-2026-126050.patch | 39 +
.../apitrace/apitrace_14.0.bb | 1 +
.../flatcc/flatcc/CVE-2026-116733.patch | 30 +
.../flatcc/flatcc/CVE-2026-116734.patch | 30 +
.../recipes-devtools/flatcc/flatcc_0.6.4.bb | 5 +-
....4.0.bb => json-schema-validator_2.4.1.bb} | 2 +-
.../7zip/{7zip_26.05.bb => 7zip_26.06.bb} | 2 +-
.../recipes-extended/brotli/brotli_1.2.1.bb | 2 +
.../{haveged_1.9.26.bb => haveged_1.9.27.bb} | 2 +-
.../{valkey_9.1.2.bb => valkey_9.1.3.bb} | 2 +-
.../assimp/assimp/CVE-2026-117608.patch | 62 ++
meta-oe/recipes-graphics/assimp/assimp_git.bb | 4 +-
.../gphoto2/libgphoto2/CVE-2026-120451.patch | 43 +
.../gphoto2/libgphoto2/CVE-2026-120452.patch | 40 +
.../gphoto2/libgphoto2_2.5.34.bb | 2 +
...ibmikmod_3.3.15.bb => libmikmod_3.3.16.bb} | 2 +-
.../mplayer/libplacebo_7.360.1.bb | 2 +-
...equire-swap_buffers-param-for-FenceS.patch | 35 +
...make-the-framebuffer-the-whole-frame.patch | 24 +
.../mplayer/mpv/CVE-2026-123095.patch | 37 +
.../recipes-multimedia/mplayer/mpv_0.41.0.bb | 7 +-
meta-oe/recipes-support/glaze/glaze_8.3.0.bb | 6 +-
.../hdf5/files/CVE-2026-120689.patch | 60 ++
.../CVE-2026-120754-CVE-2026-120755.patch | 172 ++++
.../hdf5/files/CVE-2026-120756.patch | 45 +
.../hdf5/files/CVE-2026-120757.patch | 63 ++
.../hdf5/files/CVE-2026-120758.patch | 143 ++++
.../files/CVE-2026-19023-CVE-2026-19024.patch | 176 ++++
...-19026-CVE-2026-19027-CVE-2026-19028.patch | 579 +++++++++++++
meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb | 7 +
...cs11-signing-from-engine-to-provider.patch | 236 +++++
.../recipes-support/imx-cst/imx-cst_4.0.1.bb | 1 +
.../{libraw_0.22.2.bb => libraw_0.22.3.bb} | 2 +-
.../{spitools_1.1.1.bb => spitools_1.2.0.bb} | 4 +-
...{uriparser_1.0.2.bb => uriparser_1.0.3.bb} | 2 +-
.../{zchunk_1.5.4.bb => zchunk_1.5.5.bb} | 4 +-
.../python3-aiohttp/CVE-2026-111063.patch | 136 +++
.../python3-aiohttp/CVE-2026-111065.patch | 172 ++++
.../python3-aiohttp/CVE-2026-111066.patch | 382 +++++++++
.../python3-aiohttp/CVE-2026-111748.patch | 170 ++++
.../python3-aiohttp/CVE-2026-111749.patch | 262 ++++++
.../python3-aiohttp/CVE-2026-111750.patch | 82 ++
.../python/python3-aiohttp_3.14.3.bb | 8 +
...ngo_5.2.18.bb => python3-django_5.2.19.bb} | 2 +-
...ango_6.0.9.bb => python3-django_6.0.10.bb} | 2 +-
...ck_4.0.4.bb => python3-filelock_4.0.12.bb} | 2 +-
...2_0.32.0.bb => python3-httplib2_0.32.1.bb} | 2 +-
...ata_2026.5.bb => python3-tzdata_2026.6.bb} | 2 +-
...una-Do-not-import-tuna-from-setup.py.patch | 48 ++
.../recipes-extended/tuna/tuna_0.21.bb | 4 +-
.../{cockpit_366.bb => cockpit_366.1.bb} | 3 +-
.../webmin/files/CVE-2026-125391.patch | 37 +
.../webmin/files/CVE-2026-125392.patch | 26 +
.../recipes-webadmin/webmin/webmin_2.653.bb | 2 +
85 files changed, 5101 insertions(+), 111 deletions(-)
rename meta-multimedia/recipes-multimedia/libopenmpt/{libopenmpt_0.8.9.bb => libopenmpt_0.8.10.bb} (97%)
rename meta-networking/recipes-daemons/proftpd/{proftpd_1.3.9d.bb => proftpd_1.3.9e.bb} (99%)
rename meta-networking/recipes-irc/weechat/{weechat_4.10.0.bb => weechat_4.10.2.bb} (95%)
create mode 100644 meta-networking/recipes-protocols/frr/frr/0001-lib-Don-t-use-paths-in-bison-output-defines-directiv.patch
create mode 100644 meta-networking/recipes-support/ettercap/files/CVE-2026-125400-06_1.patch
create mode 100644 meta-networking/recipes-support/ettercap/files/CVE-2026-125400-06_2.patch
create mode 100644 meta-networking/recipes-support/ettercap/files/CVE-2026-125400-06_3.patch
create mode 100644 meta-networking/recipes-support/ettercap/files/CVE-2026-125400-06_4.patch
rename meta-networking/recipes-support/mctp/{mctp_2.6.1.bb => mctp_2.6.2.bb} (100%)
rename meta-networking/recipes-support/mctp/{mctpd_2.6.1.bb => mctpd_2.6.2.bb} (100%)
create mode 100644 meta-networking/recipes-support/ntopng/files/CVE-2026-116744.patch
delete mode 100644 meta-networking/recipes-support/tcpreplay/tcpreplay/0002-common-txring-fix-struct-ethhdr-redefinition-on-mus.patch
rename meta-networking/recipes-support/tcpreplay/{tcpreplay_4.6.1.bb => tcpreplay_4.6.2.bb} (82%)
create mode 100644 meta-networking/recipes-support/tinyproxy/tinyproxy/CVE-2026-125371.patch
create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-Use-packaging-instead-of-pkg_resources-for-version-p.patch
delete mode 100644 meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-free_mon-Include-missing-cstdint.patch
create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-moduleconfig.py-python-3.12-compatibility.patch
create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0002-SConstruct-Pass-call-to-CheckLibWithHeader-as-a-keyw.patch
create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0003-boost-Fix-build-with-clang-23.patch
create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0004-ssl-Fix-build-with-OpenSSL-4.patch
create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0005-SERVER-49099-Remove-the-Node-swap-function-in-Biggie.patch
create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/oe-buildinfo.vars
create mode 100644 meta-oe/recipes-connectivity/libwebsockets/libwebsockets/CVE-2026-114550.patch
create mode 100644 meta-oe/recipes-devtools/apitrace/apitrace/CVE-2026-126050.patch
create mode 100644 meta-oe/recipes-devtools/flatcc/flatcc/CVE-2026-116733.patch
create mode 100644 meta-oe/recipes-devtools/flatcc/flatcc/CVE-2026-116734.patch
rename meta-oe/recipes-devtools/json-schema-validator/{json-schema-validator_2.4.0.bb => json-schema-validator_2.4.1.bb} (89%)
rename meta-oe/recipes-extended/7zip/{7zip_26.05.bb => 7zip_26.06.bb} (98%)
rename meta-oe/recipes-extended/haveged/{haveged_1.9.26.bb => haveged_1.9.27.bb} (94%)
rename meta-oe/recipes-extended/valkey/{valkey_9.1.2.bb => valkey_9.1.3.bb} (98%)
create mode 100644 meta-oe/recipes-graphics/assimp/assimp/CVE-2026-117608.patch
create mode 100644 meta-oe/recipes-graphics/gphoto2/libgphoto2/CVE-2026-120451.patch
create mode 100644 meta-oe/recipes-graphics/gphoto2/libgphoto2/CVE-2026-120452.patch
rename meta-oe/recipes-multimedia/mikmod/{libmikmod_3.3.15.bb => libmikmod_3.3.16.bb} (90%)
create mode 100644 meta-oe/recipes-multimedia/mplayer/mpv/0001-opengl-context-require-swap_buffers-param-for-FenceS.patch
create mode 100644 meta-oe/recipes-multimedia/mplayer/mpv/0002-hwdec_drmprime_overlay-make-the-framebuffer-the-whole-frame.patch
create mode 100644 meta-oe/recipes-multimedia/mplayer/mpv/CVE-2026-123095.patch
create mode 100644 meta-oe/recipes-support/hdf5/files/CVE-2026-120689.patch
create mode 100644 meta-oe/recipes-support/hdf5/files/CVE-2026-120754-CVE-2026-120755.patch
create mode 100644 meta-oe/recipes-support/hdf5/files/CVE-2026-120756.patch
create mode 100644 meta-oe/recipes-support/hdf5/files/CVE-2026-120757.patch
create mode 100644 meta-oe/recipes-support/hdf5/files/CVE-2026-120758.patch
create mode 100644 meta-oe/recipes-support/hdf5/files/CVE-2026-19023-CVE-2026-19024.patch
create mode 100644 meta-oe/recipes-support/hdf5/files/CVE-2026-19026-CVE-2026-19027-CVE-2026-19028.patch
create mode 100644 meta-oe/recipes-support/imx-cst/imx-cst/0017-cst-port-pkcs11-signing-from-engine-to-provider.patch
rename meta-oe/recipes-support/libraw/{libraw_0.22.2.bb => libraw_0.22.3.bb} (92%)
rename meta-oe/recipes-support/spitools/{spitools_1.1.1.bb => spitools_1.2.0.bb} (86%)
rename meta-oe/recipes-support/uriparser/{uriparser_1.0.2.bb => uriparser_1.0.3.bb} (91%)
rename meta-oe/recipes-support/zchunk/{zchunk_1.5.4.bb => zchunk_1.5.5.bb} (81%)
create mode 100644 meta-python/recipes-devtools/python/python3-aiohttp/CVE-2026-111063.patch
create mode 100644 meta-python/recipes-devtools/python/python3-aiohttp/CVE-2026-111065.patch
create mode 100644 meta-python/recipes-devtools/python/python3-aiohttp/CVE-2026-111066.patch
create mode 100644 meta-python/recipes-devtools/python/python3-aiohttp/CVE-2026-111748.patch
create mode 100644 meta-python/recipes-devtools/python/python3-aiohttp/CVE-2026-111749.patch
create mode 100644 meta-python/recipes-devtools/python/python3-aiohttp/CVE-2026-111750.patch
rename meta-python/recipes-devtools/python/{python3-django_5.2.18.bb => python3-django_5.2.19.bb} (61%)
rename meta-python/recipes-devtools/python/{python3-django_6.0.9.bb => python3-django_6.0.10.bb} (75%)
rename meta-python/recipes-devtools/python/{python3-filelock_4.0.4.bb => python3-filelock_4.0.12.bb} (93%)
rename meta-python/recipes-devtools/python/{python3-httplib2_0.32.0.bb => python3-httplib2_0.32.1.bb} (85%)
rename meta-python/recipes-devtools/python/{python3-tzdata_2026.5.bb => python3-tzdata_2026.6.bb} (86%)
create mode 100644 meta-python/recipes-extended/tuna/tuna/0001-tuna-Do-not-import-tuna-from-setup.py.patch
rename meta-webserver/recipes-webadmin/cockpit/{cockpit_366.bb => cockpit_366.1.bb} (97%)
create mode 100644 meta-webserver/recipes-webadmin/webmin/files/CVE-2026-125391.patch
create mode 100644 meta-webserver/recipes-webadmin/webmin/files/CVE-2026-125392.patchPATCH 1/64 nng: correct upstream branch name
From: Nate Kent <[email protected]>
Upstream changed the branch names between the v1.12.3 release and the v2.0.0 release, which means the old branch is no longer valid and fetches using it will fail.
--- meta-networking/recipes-connectivity/nanomsg/nng_1.12.3.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-connectivity/nanomsg/nng_1.12.3.bb +1 -1
@@ -5,7 +5,7 @@ SECTION = "libs/networking" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=a41e579bb4326c21c774f8e51e41d8a3" -SRC_URI = "git://github.com/nanomsg/nng.git;branch=stable;protocol=https \ +SRC_URI = "git://github.com/nanomsg/nng.git;branch=nng1;protocol=https \ file://run-ptest \ "
PATCH 2/64 zchunk: upgrade 1.5.4 -> 1.5.5
In reply to [email protected]From: Ankur Tyagi <[email protected]>
- Fix out-of-bounds read
- Harden multipart download parsing against malicious servers
- Harden chunk decompression and header parsing
Handle CVE-2026-117556.
---
.../zchunk/{zchunk_1.5.4.bb => zchunk_1.5.5.bb} | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
rename meta-oe/recipes-support/zchunk/{zchunk_1.5.4.bb => zchunk_1.5.5.bb} (81%)meta-oe/recipes-support/zchunk/zchunk_1.5.5.bb renamed from meta-oe/recipes-support/zchunk/zchunk_1.5.4.bb +2 -2
@@ -3,9 +3,9 @@ DESCRIPTION = "A file format designed for highly efficient deltas while maintain LICENSE = "BSD-2-Clause" LIC_FILES_CHKSUM = "file://LICENSE;md5=daf6e68539f564601a5a5869c31e5242" -SRC_URI = "git://github.com/zchunk/zchunk.git;protocol=https;nobranch=1;tag=${PV}" +SRC_URI = "git://github.com/zchunk/zchunk.git;protocol=https;branch=main;tag=${PV}" -SRCREV = "99e51afa38c723e7c25834c2c3b305d20ef55d04" +SRCREV = "ae8e9f5b1e820a906c39f7eaf231e71bef72a3a6" DEPENDS = "zstd" DEPENDS:append:libc-musl = " argp-standalone"
PATCH 3/64 tcpreplay: upgrade 4.6.1 -> 4.6.2
In reply to [email protected]From: Ankur Tyagi <[email protected]>
License-Update: file moved to repo root and removed custom preamble[1]
Dropped patch that is now resolved in the upstream version. Builds successfully with glibc and musl.
Changelog:
https://github.com/appneta/tcpreplay/releases/tag/v4.6.2
[1]https://github.com/appneta/tcpreplay/commit/8f93af9909025eca257b550df9eafd0bfb3bfab2
---
...ix-struct-ethhdr-redefinition-on-mus.patch | 43 -------------------
...{tcpreplay_4.6.1.bb => tcpreplay_4.6.2.bb} | 5 +--
2 files changed, 2 insertions(+), 46 deletions(-)
delete mode 100644 meta-networking/recipes-support/tcpreplay/tcpreplay/0002-common-txring-fix-struct-ethhdr-redefinition-on-mus.patch
rename meta-networking/recipes-support/tcpreplay/{tcpreplay_4.6.1.bb => tcpreplay_4.6.2.bb} (82%)meta-networking/recipes-support/tcpreplay/tcpreplay/0002-common-txring-fix-struct-ethhdr-redefinition-on-mus.patch deleted +0 -43
@@ -1,43 +0,0 @@ -From: Khem Raj <[email protected]> -Date: Tue, 29 Sep 2026 02:14:39 +0000 -Subject: [PATCH] common/txring: fix struct ethhdr redefinition on musl - -This #if was gated on "__GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1", which is -false (and always has been) for any non-glibc libc, so musl always took -the #else branch and included the raw kernel <linux/if_ether.h> uapi -header. sendpacket.h already brings in musl's own <netinet/if_ether.h> -earlier in the translation unit; musl's header defines struct ethhdr -itself and only then defines __UAPI_DEF_ETHHDR as 0, so the *following* -<linux/if_ether.h> checks that guard and skips its own definition. With -the #else branch taken, <linux/if_ether.h> is included via this file -without musl's guard ever being set, so struct ethhdr is defined twice -and the build fails with a hard redefinition error. - -Widen the condition so any libc other than a pre-2.1 glibc uses the -portable <net/ethernet.h> path (which both glibc and musl have always -provided) instead of falling through to the raw uapi header. - -Upstream-Status: Pending -Signed-off-by: Khem Raj <[email protected]> ---- ---- a/src/common/txring.h -+++ b/src/common/txring.h -@@ -38,7 +38,17 @@ - - #ifdef HAVE_TX_RING - --#if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1 -+/* This block used to be conditioned on plain "__GLIBC__ >= 2 && -+ * __GLIBC_MINOR__ >= 1" i.e. it always took the #else branch on non-glibc -+ * libcs such as musl. That branch's <linux/if_ether.h> then races with -+ * sendpacket.h's earlier <netinet/if_ether.h>: whichever of the two struct -+ * ethhdr definitions is seen first "wins" and the second is a hard error -+ * (musl's <netinet/if_ether.h> defines struct ethhdr unconditionally and -+ * only afterwards sets __UAPI_DEF_ETHHDR=0, so <linux/if_ether.h> must be -+ * included after it, not before). <net/ethernet.h> is the safe, universal -+ * choice here (glibc has always had it too) and avoids the raw uapi header -+ * entirely. */ -+#if !defined(__GLIBC__) || (__GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1) - #include <net/ethernet.h> /* the L2 protocols */ - #include <linux/if_packet.h> - #else
meta-networking/recipes-support/tcpreplay/tcpreplay_4.6.2.bb renamed from meta-networking/recipes-support/tcpreplay/tcpreplay_4.6.1.bb +2 -3
@@ -5,14 +5,13 @@ HOMEPAGE = "https://tcpreplay.appneta.com/" SECTION = "net" LICENSE = "GPL-3.0-only" -LIC_FILES_CHKSUM = "file://docs/LICENSE;md5=10f0474a2f0e5dccfca20f69d6598ad8" +LIC_FILES_CHKSUM = "file://LICENSE;md5=1ebbd3e34237af26da5dc08a4e440464" SRC_URI = "https://github.com/appneta/${BPN}/releases/download/v${PV}/${BP}.tar.gz \ file://0001-libopts.m4-set-POSIX_SHELL-to-bin-sh.patch \ - file://0002-common-txring-fix-struct-ethhdr-redefinition-on-mus.patch \ " -SRC_URI[sha256sum] = "cc3642816073fb1d96b3af36df4fb66c11f523da427f95b7b0c4c99deaa53afb" +SRC_URI[sha256sum] = "ac4cbc58b4121edb273bc7d4603dfd6a762e7d344981233c8a253425d9dddd8f" UPSTREAM_CHECK_URI = "https://github.com/appneta/tcpreplay/releases" UPSTREAM_CHECK_REGEX = "releases/tag/v(?P<pver>\d+(\.\d+)+)"
PATCH 4/64 proftpd: upgrade 1.3.9d -> 1.3.9e
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Changelog:
https://github.com/proftpd/proftpd/blob/v1.3.9e/NEWS
---
.../proftpd/{proftpd_1.3.9d.bb => proftpd_1.3.9e.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-networking/recipes-daemons/proftpd/{proftpd_1.3.9d.bb => proftpd_1.3.9e.bb} (99%)meta-networking/recipes-daemons/proftpd/proftpd_1.3.9e.bb renamed from meta-networking/recipes-daemons/proftpd/proftpd_1.3.9d.bb +1 -1
@@ -4,7 +4,7 @@ HOMEPAGE = "http://www.proftpd.org" LICENSE = "GPL-2.0-or-later" LIC_FILES_CHKSUM = "file://COPYING;md5=fb0d1484d11915fa88a6a7702f1dc184" -SRCREV = "f59f248e26bdfa514443e42bf72a145641df635d" +SRCREV = "fc3f908a0d07fa3b17fbe1e3054b7520806bc75a" BRANCH = "1.3.9" SRC_URI = "git://github.com/proftpd/proftpd.git;branch=${BRANCH};protocol=https;tag=v${PV} \
PATCH 5/64 weechat: Upgrade 4.10.0 -> 4.10.1
In reply to [email protected]From: Leon Anavi <[email protected]>
Upgrade to release 4.10.1:
Bugfixes:
- irc: fix memory leak in SASL authentication with mechanism "ecdsa-nist256p-challenge"
- irc: reject an empty SASL challenge received with mechanism "ecdsa-nist256p-challenge"
Security:
- relay: limit size of data queued for sending to a client to prevent memory exhaustion
- relay: reject fragmented, compressed or oversized websocket control frames received from a client
- relay: limit size of partial message received from a client to prevent memory exhaustion
- script: reject script names containing path separators in the scripts repository file to prevent writing files outside the scripts directory
- xfer: fix comparison of status in search of transfers, preventing a remote peer from starting a file transfer that was not accepted by the user
- xfer: limit size of partial message received in DCC chat to prevent memory exhaustion
- xfer: remove path from filename received in DCC file transfer to prevent writing the file outside the download directory
---
.../weechat/{weechat_4.10.0.bb => weechat_4.10.1.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-networking/recipes-irc/weechat/{weechat_4.10.0.bb => weechat_4.10.1.bb} (95%)meta-networking/recipes-irc/weechat/weechat_4.10.1.bb renamed from meta-networking/recipes-irc/weechat/weechat_4.10.0.bb +1 -1
@@ -8,7 +8,7 @@ DEPENDS = "zlib libgcrypt gnutls curl aspell zstd cjson gettext-native" SRC_URI = "https://weechat.org/files/src/weechat-${PV}.tar.xz" -SRC_URI[sha256sum] = "c3a7e7c6a5401dde9a46d0264fa44aa3032ca98aa86410c454d3de5c69505c54" +SRC_URI[sha256sum] = "b8744c6f5dc5543062791f563e0516dbc96a36161e1a03c468b3b7dcc8be5aff" inherit cmake pkgconfig python3targetconfig
PATCH 6/64 json-schema-validator: upgrade 2.4.0 -> 2.4.1
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Changelog:
https://github.com/pboettch/json-schema-validator/releases/tag/2.4.1
---
...schema-validator_2.4.0.bb => json-schema-validator_2.4.1.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-oe/recipes-devtools/json-schema-validator/{json-schema-validator_2.4.0.bb => json-schema-validator_2.4.1.bb} (89%)meta-oe/recipes-devtools/json-schema-validator/json-schema-validator_2.4.1.bb renamed from meta-oe/recipes-devtools/json-schema-validator/json-schema-validator_2.4.0.bb +1 -1
@@ -3,7 +3,7 @@ LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=c441d022da1b1663c70181a32225d006" SRC_URI = "git://github.com/pboettch/json-schema-validator;branch=main;protocol=https;tag=${PV}" -SRCREV = "c780404a84dd9ba978ba26bc58d17cb43fa7bc80" +SRCREV = "9abddfa905bb4889cc4ae55f87adcaa71dd3bc23" DEPENDS += "nlohmann-json"
PATCH 7/64 valkey: Upgrade 9.1.2 -> 9.1.3
In reply to [email protected]From: Leon Anavi <[email protected]>
Upgrade to release 9.1.3:
Security Fixes:
- GHSA-f4q9-j22m-xqq9: Fix a heap buffer overflow in cluster Pub/Sub message construction that could allow an authenticated client to potentially execute arbitrary code by publishing an oversized message
Bug Fixes:
- Fix stream commands that mutate consumer-group or PEL state (XGROUP, XSETID, XREADGROUP, XACK, XCLAIM, XAUTOCLAIM) not triggering WATCH and client-side tracking invalidation
- Reject module write commands while the server is paused for writes, preventing a crash from module timer callbacks during CLIENT PAUSE WRITE or CLUSTER FAILOVER
- Fix event loop busy-spinning on virtual machines by not using raw TSC for the monotonic clock when the kernel clocksource is not tsc
- Fix a crash in ValkeyModule_HashHasStringRef on a missing or expired field and correct wrong return values in the hash stringRef module APIs
- Fix a server abort on a RESTORE payload declaring a string length that overflows the allocation size; such payloads are now rejected as bad data
- Fix ZINTER/ZINTERSTORE returning input-order-dependent scores when a weighted term is 0*inf; a NaN weighted score now counts as 0, matching ZUNION
- Clear a stale primary-failure gossip flag on replicas so later failovers don't incorrectly skip the election delay (#4533)
- Correct ValkeyModule_FreeModuleUser, ValkeyModule_ACLAddLogEntry and ValkeyModule_ACLAddLogEntryByUserName declarations to return int as implemented, fixing undefined behavior on targets with strict call signature checks
- valkey-check-aof now recognizes RDB base files with the VALKEY signature instead of misreporting a valid multipart AOF as invalid
- Fix module commands that access undeclared keys in other slots reading or writing the wrong slot in cluster mode, and aborting in debug builds
- Reject relative expire times in SET/GETEX, RESTORE, and ValkeyModule_SetExpire that overflow when added to the current time, preventing server aborts from negative expires
- HDEL, HGETDEL, HPERSIST, and HEXPIRE no longer propagate fields they treat as expired, preventing replica and AOF-reload divergence
- Fix a server crash when loading an ACL file containing a selector with an unmatched parenthesis
- Fix a segfault on Alpine/musl when Lua is built as a module, caused by a symbol clash on an internal clock function
- COPY of a hash now includes expired-but-unreaped fields so their deletion is propagated and replicas stay in sync
- Restore acceptance of hexadecimal float sorted set scores (such as 0x10), keeping replication and AOF replay compatible with Valkey 9.0
- Sorted set range commands with a negative LIMIT offset now return an empty result instead of a spurious element on btree-encoded keys
- Fix listpack encoding incompatibility that caused RDB load and replication failures for entries of certain lengths between 9.0 and 9.1.x
- Fix atomic slot migration not replicating evictions on the import target, which let replicas grow far past maxmemory
- Redact error text in server logs when hide-user-data-from-log is enabled, so command arguments no longer leak into logs
- Fix HSETEX and HGETEX failing to parse their arguments when the key is named fields
- Fix cluster config saving to avoid publishing truncated nodes.conf files, losing the startup lock after the first save, and failing every save on SMB filesystems such as Azure Files; the lock now lives on a separate nodes.conf.lock file
- Fix LSET on 64-bit builds silently modifying the wrong element for out-of-range indexes instead of returning an index out of range error
- Fix atomic slot migration with cluster-databases > 1 applying writes made during the snapshot to the wrong database on the target
---
.../valkey/{valkey_9.1.2.bb => valkey_9.1.3.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-oe/recipes-extended/valkey/{valkey_9.1.2.bb => valkey_9.1.3.bb} (98%)meta-oe/recipes-extended/valkey/valkey_9.1.3.bb renamed from meta-oe/recipes-extended/valkey/valkey_9.1.2.bb +1 -1
@@ -15,7 +15,7 @@ SRC_URI = "git://github.com/valkey-io/valkey.git;branch=${@oe.utils.trim_version file://0001-src-Do-not-reset-FINAL_LIBS.patch \ file://GNU_SOURCE-7.patch \ " -SRCREV = "7f1dffedff6de73058b2c2a389422b6ecd56c8fb" +SRCREV = "29173b67508b2de4c0f0ed551f3b47cf19fc3ca8" RPROVIDES:${PN} = "virtual-redis"
PATCH 8/64 haveged: upgrade 1.9.26 -> 1.9.27
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Changelog:
https://github.com/jirka-h/haveged/releases/tag/v1.9.27
---
.../haveged/{haveged_1.9.26.bb => haveged_1.9.27.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-oe/recipes-extended/haveged/{haveged_1.9.26.bb => haveged_1.9.27.bb} (94%)meta-oe/recipes-extended/haveged/haveged_1.9.27.bb renamed from meta-oe/recipes-extended/haveged/haveged_1.9.26.bb +1 -1
@@ -6,7 +6,7 @@ HOMEPAGE = "https://www.issihosts.com/haveged/index.html" LICENSE = "GPL-3.0-only" LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" -SRCREV = "c0edcf284f654321b7c5665fe38106f9321ceeb3" +SRCREV = "54d8dd95f90c2af87d1b778f0469fae4cc225aa6" SRC_URI = "git://github.com/jirka-h/haveged.git;branch=master;protocol=https;tag=v${PV} \ "
PATCH 9/64 libraw: upgrade 0.22.2 -> 0.22.3
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Changelog:
https://github.com/LibRaw/LibRaw/releases/tag/0.22.3
---
.../libraw/{libraw_0.22.2.bb => libraw_0.22.3.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-oe/recipes-support/libraw/{libraw_0.22.2.bb => libraw_0.22.3.bb} (92%)meta-oe/recipes-support/libraw/libraw_0.22.3.bb renamed from meta-oe/recipes-support/libraw/libraw_0.22.2.bb +1 -1
@@ -3,7 +3,7 @@ LICENSE = "CDDL-1.0 OR LGPL-2.1-only" LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=1d66195044cfbe4327c055d1c9c1a229" SRC_URI = "git://github.com/LibRaw/LibRaw.git;branch=0.22-stable;protocol=https;tag=${PV}" -SRCREV = "b93f6e45c194f5df9b02a43b1af9a54b4f41f33f" +SRCREV = "cf02d66eb5c19d4e46df7aee0582e47a4918509a" inherit autotools pkgconfig
PATCH 10/64 python3-httplib2: Upgrade 0.32.0 -> 0.32.1
In reply to [email protected]From: Leon Anavi <[email protected]>
Upgrade to release 0.32.1:
- cacerts: remove distrusted Comodo AAA Certificate Services root CA due to eMudhra incident https://emudhra.we-have-a-problem.com/
---
.../{python3-httplib2_0.32.0.bb => python3-httplib2_0.32.1.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-httplib2_0.32.0.bb => python3-httplib2_0.32.1.bb} (85%)meta-python/recipes-devtools/python/python3-httplib2_0.32.1.bb renamed from meta-python/recipes-devtools/python/python3-httplib2_0.32.0.bb +1 -1
@@ -4,7 +4,7 @@ SECTION = "devel/python" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=56e5e931172b6164b62dc7c4aba6c8cf" -SRC_URI[sha256sum] = "48a0ef30a42db65d8f3399045e1d09ab0ba66e3b9efc360d07f80ea55d286025" +SRC_URI[sha256sum] = "37900eb8a74576bd99fc39ae1dc8409f95f965d45b56cbcb2194bb55f58a90e1" inherit pypi python_setuptools_build_meta
PATCH 11/64 python3-tzdata: Upgrade 2026.5 -> 2026.6
In reply to [email protected]From: Leon Anavi <[email protected]>
Upgrade to release 2026.6:
- Cuba will not fall back 2026-11-01; stays on -04 through 2027-11-07.
- No more leap seconds, and leap second tables no longer expire.
- Improve 1965/1966 data for Brazil.
Changes to future timestamps:
- Cuba will not fall back to -05 on 2026-11-01 and instead plans to maintain -04 through 2027-11-07.
Changes to past timestamps:
- In 1965 Brazil ended DST on 03-31 at 24:00 not 00:00, and in 1966 it ended DST on 03-01 at 01:00 not 00:00.
Changes to documentation and commentary:
- Documentation and commentary now reflect leap seconds' demise.
Changes to commentary:
- Discussion on timekeeping in northwestern Ontario has been updated to reflect that provincial regulation has been issued to allow these areas to stay aligned with America/Winnipeg and follow Manitoba's adoption of year-round -05 after all.
- Discussion on timekeeping in Saskatchewan has been updated to document its new Time Act, 2026 which comes into force on 2026-10-30. No change is expected.
---
.../{python3-tzdata_2026.5.bb => python3-tzdata_2026.6.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-tzdata_2026.5.bb => python3-tzdata_2026.6.bb} (86%)meta-python/recipes-devtools/python/python3-tzdata_2026.6.bb renamed from meta-python/recipes-devtools/python/python3-tzdata_2026.5.bb +1 -1
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=804220b73c90950be376e7ff7b2066bb \ file://licenses/LICENSE_APACHE;md5=86d3f3a95c324c9479bd8986968f4327 \ " -SRC_URI[sha256sum] = "8cc73c0a0bfca7dbfa59235d60b2eff82231dee33f53d206db1acd9173cfc0a7" +SRC_URI[sha256sum] = "85d2cd9c09f81f0bb29db27759fc83af4f1e620efb814f8c5bf8b4cc4feece6d" inherit pypi python_setuptools_build_meta ptest-python-pytest
PATCH 12/64 glaze: Install the CMake files in /usr/lib/cmake/glaze (as intended)
In reply to [email protected]From: Peter Kjellerstedt <[email protected]>
Commit 23304685070f85c25af858beec06ada10fd9df79 aspired to move the CMake files from /usr/share/glaze to /usr/lib/cmake/glaze. However, all it did was remove the FILES:${PN}-dev assignment, which resulted in the CMake files ending up in the target package.
Actually set the install path for the CMake files using -Dglaze_INSTALL_CMAKEDIR:PATH. For some odd reason, it needs to be realtive, or the installed files will not work as intended when cross-compiling.
Also remove -DCMAKE_INSTALL_PREFIX and -DDESTDIR from EXTRA_OECMAKE as they are already set correctly by cmake.bbclass.
Finally, restore -Dglaze_DEVELOPER_MODE=OFF. It does not seem to affect the installed files, but generates less CMake rules.
--- meta-oe/recipes-support/glaze/glaze_8.3.0.bb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
meta-oe/recipes-support/glaze/glaze_8.3.0.bb +4 -2
@@ -9,13 +9,15 @@ SRCREV = "dce5e0f7ec572725ec369a0bc59a00eeb2270a9a" inherit cmake +# For some odd reason, glaze_INSTALL_CMAKEDIR must be relative, or the installed +# files will not work as intended when cross-compiling. EXTRA_OECMAKE = " \ -Dglaze_BUILD_EXAMPLES=OFF \ -DBUILD_TESTING=OFF \ -Dglaze_ENABLE_FUZZING=OFF \ + -Dglaze_DEVELOPER_MODE=OFF \ -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=${prefix} \ - -DDESTDIR=${D} \ + -Dglaze_INSTALL_CMAKEDIR:PATH=${baselib}/cmake/${BPN} \ " # Glaze is a header-only C++ library, so the main package will be empty.
PATCH 13/64 assimp: patch CVE-2026-117608
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Details:
https://nvd.nist.gov/vuln/detail/cve-2026-117608
--- .../assimp/assimp/CVE-2026-117608.patch | 62 +++++++++++++++++++ meta-oe/recipes-graphics/assimp/assimp_git.bb | 4 +- 2 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-graphics/assimp/assimp/CVE-2026-117608.patch
meta-oe/recipes-graphics/assimp/assimp/CVE-2026-117608.patch new file +62 -0
@@ -0,0 +1,62 @@ +From 9b9c149237ff7bf7f71db8eba7b6cc707e00e0bc Mon Sep 17 00:00:00 2001 +From: venkatchalla06 <[email protected]> +Date: Sun, 25 Oct 2026 19:48:47 +0530 +Subject: [PATCH] MD2: compute the frame-table bounds check in 64-bit (integer + overflow) (#6963) + +The header validation rejects out-of-file offsets with + offsetFrames + numFrames * frameSize >= fileSize +but numFrames is an attacker-controlled uint32 and frameSize is an unsigned +int that grows with numVertices (another uint32 field), so the product is a +32-bit multiply that can wrap. The AI_MAX_ALLOC guards above bound numFrames +only against sizeof(MD2::Frame) (~44 bytes, ceiling ~48M), while frameSize can +be far larger (e.g. numVertices=1014 -> 4096), so numFrames ~= 2^20 already +wraps numFrames*frameSize to a small value and the check passes. The frame +vertices are then read out of bounds (heap OOB read / info leak). + +Compute frameSize and the four offset+count*size checks in 64-bit so the +products cannot wrap. Reachable from Assimp::Importer::ReadFile() on a crafted +.md2 (MD2 is default-enabled). Confirmed with AddressSanitizer +(heap-buffer-overflow READ in InternReadFile); valid .md2 files +(dolphin/horse/flag/faerie) still load unchanged. + +Co-authored-by: Claude Opus 4.8 <[email protected]> +Co-authored-by: Kim Kulling <[email protected]> +(cherry picked from commit 7dbc85d9218fae017d4fad70269e7569f7b0c870) + +CVE: CVE-2026-117608 +Upstream-Status: Backport [https://github.com/assimp/assimp/commit/7dbc85d9218fae017d4fad70269e7569f7b0c870] +Signed-off-by: Ankur Tyagi <[email protected]> +--- + code/AssetLib/MD2/MD2Loader.cpp | 18 +++++++++++------- + 1 file changed, 11 insertions(+), 7 deletions(-) + +diff --git a/code/AssetLib/MD2/MD2Loader.cpp b/code/AssetLib/MD2/MD2Loader.cpp +index f7101560d..adce318f8 100644 +--- a/code/AssetLib/MD2/MD2Loader.cpp ++++ b/code/AssetLib/MD2/MD2Loader.cpp +@@ -171,13 +171,17 @@ void MD2Importer::ValidateHeader( ) + } + + // -1 because Frame already contains one +- unsigned int frameSize = sizeof (MD2::Frame) + (m_pcHeader->numVertices - 1) * sizeof(MD2::Vertex); +- +- if (m_pcHeader->offsetSkins + m_pcHeader->numSkins * sizeof (MD2::Skin) >= fileSize || +- m_pcHeader->offsetTexCoords + m_pcHeader->numTexCoords * sizeof (MD2::TexCoord) >= fileSize || +- m_pcHeader->offsetTriangles + m_pcHeader->numTriangles * sizeof (MD2::Triangle) >= fileSize || +- m_pcHeader->offsetFrames + m_pcHeader->numFrames * frameSize >= fileSize || +- m_pcHeader->offsetEnd > fileSize) ++ // Compute in 64-bit: numVertices/numFrames are attacker-controlled uint32 header ++ // fields, so numFrames * frameSize (frameSize itself grows with numVertices) overflows ++ // a 32-bit product and can wrap past the file-size check below. The AI_MAX_ALLOC guards ++ // above only bound each count against sizeof(element), not against this product. ++ const uint64_t frameSize = (uint64_t)sizeof(MD2::Frame) + (uint64_t)(m_pcHeader->numVertices - 1) * sizeof(MD2::Vertex); ++ ++ if ((uint64_t)m_pcHeader->offsetSkins + (uint64_t)m_pcHeader->numSkins * sizeof(MD2::Skin) >= fileSize || ++ (uint64_t)m_pcHeader->offsetTexCoords + (uint64_t)m_pcHeader->numTexCoords * sizeof(MD2::TexCoord) >= fileSize || ++ (uint64_t)m_pcHeader->offsetTriangles + (uint64_t)m_pcHeader->numTriangles * sizeof(MD2::Triangle) >= fileSize || ++ (uint64_t)m_pcHeader->offsetFrames + (uint64_t)m_pcHeader->numFrames * frameSize >= fileSize || ++ m_pcHeader->offsetEnd > fileSize) + { + throw DeadlyImportError("Invalid MD2 header: Some offsets are outside the file"); + }
meta-oe/recipes-graphics/assimp/assimp_git.bb +3 -1
@@ -9,7 +9,9 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=f2d38c9e0d63058b051065fb7b1102a8" DEPENDS = "zlib" -SRC_URI = "git://github.com/assimp/assimp.git;protocol=https;branch=master" +SRC_URI = "git://github.com/assimp/assimp.git;protocol=https;branch=master \ + file://CVE-2026-117608.patch \ +" SRCREV = "fe1965b3e73f7c241265e8e5b3015764936a6ce5"
PATCH 14/64 flatcc: patch CVE-2026-116733
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Details:
https://nvd.nist.gov/vuln/detail/cve-2026-116733
--- .../flatcc/flatcc/CVE-2026-116733.patch | 30 +++++++++++++++++++ .../recipes-devtools/flatcc/flatcc_0.6.4.bb | 4 ++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-devtools/flatcc/flatcc/CVE-2026-116733.patch
meta-oe/recipes-devtools/flatcc/flatcc/CVE-2026-116733.patch new file +30 -0
@@ -0,0 +1,30 @@ +From 8fcc19366aa081068d2c845084a3ffd907c88129 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Mikkel=20Fahn=C3=B8e=20J=C3=B8rgensen?= <[email protected]> +Date: Thu, 22 Oct 2026 18:59:04 +0200 +Subject: [PATCH] Guard against adversarial buffer overrun in JSON parser + +(cherry picked from commit 356792dc155a9e685acdfe0ec1e209bdadcb4ab9) + +CVE: CVE-2026-116733 +Upstream-Status: Backport [https://github.com/dvidelabs/flatcc/commit/356792dc155a9e685acdfe0ec1e209bdadcb4ab9] + +Dropped changes to the CHANGELOG file. + +Signed-off-by: Ankur Tyagi <[email protected]> +--- + src/runtime/json_parser.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/runtime/json_parser.c b/src/runtime/json_parser.c +index 4472af2..f9bc9fa 100644 +--- a/src/runtime/json_parser.c ++++ b/src/runtime/json_parser.c +@@ -538,7 +538,7 @@ static const char *__flatcc_json_parser_number(flatcc_json_parser_t *ctx, const + if (buf != end) { + if (*buf == '.') { + ++buf; +- if (*buf < '0' || *buf > '9') { ++ if (buf == end || *buf < '0' || *buf > '9') { + return flatcc_json_parser_set_error(ctx, buf, end, flatcc_json_parser_error_invalid_numeric); + } + ++buf;
meta-oe/recipes-devtools/flatcc/flatcc_0.6.4.bb +3 -1
@@ -6,7 +6,9 @@ SECTION = "devel/lib" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=b3d8fb7158bf7e2600ba3191428dc4ef" -SRC_URI = "git://github.com/dvidelabs/flatcc.git;protocol=https;branch=master;tag=v${PV}" +SRC_URI = "git://github.com/dvidelabs/flatcc.git;protocol=https;branch=master;tag=v${PV} \ + file://CVE-2026-116733.patch \ +" SRCREV = "fec0275c0d0c5b6f495ab48d51fcde521d72b5fc" inherit cmake
PATCH 15/64 flatcc: patch CVE-2026-116734
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Details:
https://nvd.nist.gov/vuln/detail/cve-2026-116734
--- .../flatcc/flatcc/CVE-2026-116734.patch | 30 +++++++++++++++++++ .../recipes-devtools/flatcc/flatcc_0.6.4.bb | 1 + 2 files changed, 31 insertions(+) create mode 100644 meta-oe/recipes-devtools/flatcc/flatcc/CVE-2026-116734.patch
meta-oe/recipes-devtools/flatcc/flatcc/CVE-2026-116734.patch new file +30 -0
@@ -0,0 +1,30 @@ +From 0bdd50b31bfaabaef9cd92c1a3da7413fc091684 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Mikkel=20Fahn=C3=B8e=20J=C3=B8rgensen?= <[email protected]> +Date: Thu, 22 Oct 2026 19:38:52 +0200 +Subject: [PATCH] Fix incorrect overflow guard in verifier + +(cherry picked from commit 0df9c097a19badc8bd22d93af8fd47bd291e5d9f) + +CVE: CVE-2026-116734 +Upstream-Status: Backport [https://github.com/dvidelabs/flatcc/commit/0df9c097a19badc8bd22d93af8fd47bd291e5d9f] + +Dropped changes to the CHANGELOG file. + +Signed-off-by: Ankur Tyagi <[email protected]> +--- + src/runtime/verifier.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/runtime/verifier.c b/src/runtime/verifier.c +index e2d1bb6..19243c1 100644 +--- a/src/runtime/verifier.c ++++ b/src/runtime/verifier.c +@@ -127,7 +127,7 @@ static inline int check_header(uoffset_t end, uoffset_t base, uoffset_t offset) + { + uoffset_t k = base + offset; + +- if (uoffset_size <= voffset_size && k + offset_size < k) { ++ if (k + offset_size < k) { + return 0; + } +
meta-oe/recipes-devtools/flatcc/flatcc_0.6.4.bb +1 -0
@@ -8,6 +8,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=b3d8fb7158bf7e2600ba3191428dc4ef" SRC_URI = "git://github.com/dvidelabs/flatcc.git;protocol=https;branch=master;tag=v${PV} \ file://CVE-2026-116733.patch \ + file://CVE-2026-116734.patch \ " SRCREV = "fec0275c0d0c5b6f495ab48d51fcde521d72b5fc"
PATCH 16/64 ndpi: patch CVE-2026-116744
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Details:
https://nvd.nist.gov/vuln/detail/cve-2026-116744
--- .../ntopng/files/CVE-2026-116744.patch | 33 +++++++++++++++++++ .../recipes-support/ntopng/ndpi_5.0.bb | 1 + 2 files changed, 34 insertions(+) create mode 100644 meta-networking/recipes-support/ntopng/files/CVE-2026-116744.patch
meta-networking/recipes-support/ntopng/files/CVE-2026-116744.patch new file +33 -0
@@ -0,0 +1,33 @@ +From 00706d4da0b7a1f9eff61e5835a0a1cc22c9c7e1 Mon Sep 17 00:00:00 2001 +From: Ivan Nardi <[email protected]> +Date: Mon, 26 Oct 2026 17:35:39 +0100 +Subject: [PATCH] softEther: fix out-of-bounds read (#3298) + +Close: #3291 + +Reported by HaiND (Nguyen Dinh Hai), Post and Telecommunication +Institute of Technology, github.com/Haind03 + +(cherry picked from commit ca9d819151606377ac53305583fe819748c69be2) + +CVE: CVE-2026-116744 +Upstream-Status: Backport [https://github.com/ntop/nDPI/commit/ca9d819151606377ac53305583fe819748c69be2] +Signed-off-by: Ankur Tyagi <[email protected]> +--- + src/lib/protocols/softether.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/src/lib/protocols/softether.c b/src/lib/protocols/softether.c +index 379e743f7..c6f5d131e 100644 +--- a/src/lib/protocols/softether.c ++++ b/src/lib/protocols/softether.c +@@ -200,7 +200,8 @@ static int dissect_softether_host_fqdn(struct ndpi_flow_struct *flow, + payload += value_siz; + payload_len -= value_siz; + +- if(strncmp(val1.value.ptr.value_str, "host_name", value_siz) == 0) ++ if(val1.value_size > 0 && ++ strncmp(val1.value.ptr.value_str, "host_name", value_siz) == 0) + got_hostname = 1; + + for (; tuple_count > 0; --tuple_count) {
meta-networking/recipes-support/ntopng/ndpi_5.0.bb +1 -0
@@ -11,6 +11,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b52f2d57d10c4f7ee67a7eb9615d5d24" SRCREV = "375f99ef9fb4999d778b57bbeece171b3fa9fba6" SRC_URI = "git://github.com/ntop/nDPI.git;branch=5.0-stable;protocol=https;tag=${PV} \ file://0001-configure-Stop-embedding-pwd-at-configure-time.patch \ + file://CVE-2026-116744.patch \ " inherit autotools pkgconfig
PATCH 17/64 cockpit: upgrade 366 -> 366.1
In reply to [email protected]From: Jason Schonberg <[email protected]>
This is a security release.
Fixes for CVE-2026-91147, CVE-2026-91149, CVE-2026-76235, CVE-2026-91148
Changelog: https://github.com/cockpit-project/cockpit/releases/tag/366.1
---
.../cockpit/{cockpit_366.bb => cockpit_366.1.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-webserver/recipes-webadmin/cockpit/{cockpit_366.bb => cockpit_366.1.bb} (98%)meta-webserver/recipes-webadmin/cockpit/cockpit_366.1.bb renamed from meta-webserver/recipes-webadmin/cockpit/cockpit_366.bb +1 -1
@@ -9,7 +9,7 @@ SRC_URI += " \ file://0001-Warn-not-error-if-xsltproc-is-not-found.patch \ file://cockpit.pam \ " -SRC_URI[sha256sum] = "bf0a8c37eca303282a85777e049fce67fe2002743fabfb3e85f9de24855b099a" +SRC_URI[sha256sum] = "514723bdac652ec1fb55d0288ae775799e784708f34a5db66b9d8984c4ac4735" UPSTREAM_CHECK_URI = "https://github.com/cockpit-project/cockpit/tags" UPSTREAM_CHECK_REGEX = "releases/tag/(?P<pver>\d+(\.\d+)*)"
PATCH 18/64 imx-cst: restore PKCS#11 signing on OpenSSL 4 via the provider
In reply to [email protected]From: Johannes Schneider <[email protected]>
0015-fix-openssl-4-engine-api-removal made CST build against OpenSSL 4 by stubbing out the removed ENGINE API, but left PKCS#11-backed signing broken:ENGINE_by_id("pkcs11") returns NULL, so engine_ctx_init() fails. Add a patch that reimplements the pkcs11 certificate and key loading on OSSL_STORE and the pkcs11 provider (pkcs11-provider), restoring HSM/token-backed signing on OpenSSL 4. OpenSSL 3 builds are unaffected.
--- ...cs11-signing-from-engine-to-provider.patch | 236 ++++++++++++++++++ .../recipes-support/imx-cst/imx-cst_4.0.1.bb | 1 + 2 files changed, 237 insertions(+) create mode 100644 meta-oe/recipes-support/imx-cst/imx-cst/0017-cst-port-pkcs11-signing-from-engine-to-provider.patch
meta-oe/recipes-support/imx-cst/imx-cst/0017-cst-port-pkcs11-signing-from-engine-to-provider.patch new file +236 -0
@@ -0,0 +1,236 @@ +From: Johannes Schneider <[email protected]> +Subject: cst: port pkcs11 signing from the OpenSSL ENGINE to a provider + +OpenSSL 4.0 removed the ENGINE API, so CST's pkcs11-backed signing stops +working: ENGINE_by_id("pkcs11") returns NULL and engine_ctx_init() fails. + +Reimplement the pkcs11 certificate and key loading on OSSL_STORE and the +pkcs11 provider. engine_ctx_init() loads the default and pkcs11 providers -- +default explicitly, because activating any provider stops OpenSSL +auto-loading default, which would drop the EVP digest and signature algorithms +the signer needs. ENGINE_load_certificate()/ENGINE_load_key() open the pkcs11 +URI through OSSL_STORE and return the X509 / EVP_PKEY, feeding the existing CMS +and EVP signing unchanged. The public entry points keep their names and +signatures; the ENGINE * argument is now vestigial. The PIN travels in the URI +(pin-value=). + +Upstream-Status: Pending +Assisted-by: Claude:claude-opus-4-8 +Signed-off-by: Johannes Schneider <[email protected]> +--- +Builds on the engine-stub change already in this recipe's series +(0015-fix-openssl-4-engine-api-removal), which only makes the file compile and +noted that pkcs11-backed signing was still unavailable on OpenSSL 4; this +restores it. +--- a/src/lib/back_end/engine.c ++++ b/src/lib/back_end/engine.c +@@ -7,8 +7,9 @@ + /* + * OpenSSL 4.0 removed the ENGINE API. <openssl/engine.h> still declares + * it for source compatibility, and defining OPENSSL_ENGINE_STUBS turns the +- * declarations into inline no-ops so this file keeps linking. The pkcs11 +- * engine simply does not exist there, which engine_ctx_init() reports. ++ * declarations into inline no-ops so this file keeps linking. Signing no ++ * longer uses an engine (see engine_ctx_init); the vestigial ENGINE * only ++ * keeps the public entry points' signatures unchanged. + */ + #define OPENSSL_ENGINE_STUBS + +@@ -19,6 +20,8 @@ + #include <openssl/err.h> + #include <openssl/x509.h> + #include <openssl/evp.h> ++#include <openssl/provider.h> ++#include <openssl/store.h> + #include <stdint.h> + + #if CST_WITH_PKCS11 +@@ -31,6 +34,76 @@ + } + #endif + ++/* Load default and pkcs11 once; "default" explicitly, or activating pkcs11 stops OpenSSL auto-loading it and the signer loses its EVP algorithms. */ ++static int load_providers(void) ++{ ++ static int loaded; ++ ++ if (loaded) ++ return 1; ++ ++ if (!OSSL_PROVIDER_load(NULL, "default")) { ++ fprintf(stderr, "ERROR: cannot load the default OpenSSL provider\n"); ++ return 0; ++ } ++ if (!OSSL_PROVIDER_load(NULL, "pkcs11")) { ++ fprintf(stderr, "ERROR: cannot load the pkcs11 OpenSSL provider; " ++ "is pkcs11-provider installed and OPENSSL_MODULES set?\n"); ++ return 0; ++ } ++ ++ loaded = 1; ++ return 1; ++} ++ ++/* Load a certificate and/or key from a PKCS#11 (or any OSSL_STORE) URI; returns 1 only if every requested object was found. */ ++static int store_load(const char *uri, X509 **cert_out, EVP_PKEY **key_out) ++{ ++ OSSL_STORE_CTX *store = NULL; ++ int ok = 0; ++ ++ if (!uri) ++ return 0; ++ ++ store = OSSL_STORE_open(uri, NULL, NULL, NULL, NULL); ++ if (!store) { ++ fprintf(stderr, "ERROR: cannot open PKCS#11 store for %s\n", uri); ++ return 0; ++ } ++ ++ while (!OSSL_STORE_eof(store)) { ++ OSSL_STORE_INFO *info = OSSL_STORE_load(store); ++ ++ if (!info) { ++ /* NULL means EOF or a non-fatal error; break on the error flag, or a bad object spins forever (eof stays 0). */ ++ if (OSSL_STORE_error(store)) ++ break; ++ continue; ++ } ++ ++ switch (OSSL_STORE_INFO_get_type(info)) { ++ case OSSL_STORE_INFO_CERT: ++ if (cert_out && !*cert_out) ++ *cert_out = OSSL_STORE_INFO_get1_CERT(info); ++ break; ++ case OSSL_STORE_INFO_PKEY: ++ if (key_out && !*key_out) ++ *key_out = OSSL_STORE_INFO_get1_PKEY(info); ++ break; ++ default: ++ break; ++ } ++ OSSL_STORE_INFO_free(info); ++ ++ if ((!cert_out || *cert_out) && (!key_out || *key_out)) ++ break; ++ } ++ ++ OSSL_STORE_close(store); ++ ok = (!cert_out || *cert_out) && (!key_out || *key_out); ++ return ok; ++} ++ + struct engine_ctx *engine_ctx_new(void) + { + struct engine_ctx *ctx = NULL; +@@ -41,16 +114,13 @@ + + int32_t engine_ctx_destroy(struct engine_ctx *ctx) + { +- if (ctx) { +- ENGINE_free(ctx->engine); ++ if (ctx) + OPENSSL_free(ctx); +- } + return 1; + } + + int32_t engine_ctx_init(struct engine_ctx *ctx) + { +- dynamic_fns fns; + /* OpenSSL Initialization */ + #if OPENSSL_VERSION_NUMBER >= 0x10100000 + OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_CIPHERS | +@@ -66,60 +136,46 @@ + + ERR_clear_error(); + +- ENGINE_load_builtin_engines(); +- +- ctx->engine = ENGINE_by_id("pkcs11"); +- +- if (!ctx->engine) { +- fprintf(stderr, "ERROR: cannot load the pkcs11 OpenSSL engine\n"); +-#if OPENSSL_VERSION_MAJOR >= 4 +- fprintf(stderr, +- "ERROR: OpenSSL 4.0 removed ENGINE support, so PKCS#11 " +- "backed signing is unavailable\n"); +-#endif ++ if (!load_providers()) + return 0; +- } + +-#ifdef DEBUG +- ENGINE_ctrl_cmd_string(ctx->engine, "VERBOSE", NULL, 0); +-#endif +- +- if (!ENGINE_init(ctx->engine)) { +- ENGINE_free(ctx->engine); +- return 0; +- } ++ ctx->engine = NULL; + + return 1; + } + + int32_t engine_ctx_finish(struct engine_ctx *ctx) + { +- if (ctx) +- ENGINE_finish(ctx->engine); ++ (void)ctx; + return 1; + } + + X509 *ENGINE_load_certificate(ENGINE *e, const char *cert_ref) + { +- struct { +- const char *s_slot_cert_id; +- X509 *cert; +- } params = {0}; ++ X509 *cert = NULL; + +- params.s_slot_cert_id = cert_ref; +- params.cert = NULL; ++ (void)e; + +- if (!ENGINE_ctrl_cmd(e, "LOAD_CERT_CTRL", 0, ¶ms, NULL, 1)) { ++ if (!store_load(cert_ref, &cert, NULL)) { + ERR_print_errors_fp(stderr); + return NULL; + } + +- return params.cert; ++ return cert; + } + + EVP_PKEY *ENGINE_load_key(ENGINE *e, const char *key_ref) + { +- return ENGINE_load_private_key(e, key_ref, 0, 0); ++ EVP_PKEY *key = NULL; ++ ++ (void)e; ++ ++ if (!store_load(key_ref, NULL, &key)) { ++ ERR_print_errors_fp(stderr); ++ return NULL; ++ } ++ ++ return key; + } + + X509 *engine_read_certificate(const char *cert_ref) +@@ -161,14 +217,8 @@ + #endif + + out: +- if (ctx) { +- /* +- * Destroy the context: ctx_finish is not called here since +- * ENGINE_finish cleanups the engine instance. Calling ctx_destroy +- * next will lead to null pointer dereference. +- */ ++ if (ctx) + engine_ctx_destroy(ctx); +- } + + if (error) + ERR_print_errors_fp(stderr);
meta-oe/recipes-support/imx-cst/imx-cst_4.0.1.bb +1 -0
@@ -29,6 +29,7 @@ SRC_URI = "\ file://0014-fix-pointer-sign-errors-with-clang.patch \ file://0015-fix-openssl-4-engine-api-removal.patch \ file://0016-fix-openssl-4-const-subject-name.patch \ + file://0017-cst-port-pkcs11-signing-from-engine-to-provider.patch \ " SRC_URI[sha256sum] = "fd92a1a9faa10fb81bbf752c7ee1e257f17e1ec4c2964f8a47adf8a3eaa7df41"
PATCH 19/64 libwebsockets: patch CVE-2026-114550
In reply to [email protected]From: Peter Marko <[email protected]>
Pick patch mentioned in NVD CVE report.
--- .../libwebsockets/CVE-2026-114550.patch | 31 +++++++++++++++++++ .../libwebsockets/libwebsockets_4.5.8.bb | 1 + 2 files changed, 32 insertions(+) create mode 100644 meta-oe/recipes-connectivity/libwebsockets/libwebsockets/CVE-2026-114550.patch
meta-oe/recipes-connectivity/libwebsockets/libwebsockets/CVE-2026-114550.patch new file +31 -0
@@ -0,0 +1,31 @@ +From c9e8e1834d7f13038c82963086b90e2ee9c5b44c Mon Sep 17 00:00:00 2001 +From: Andy Green <[email protected]> +Date: Fri, 17 Jul 2026 05:02:06 +0100 +Subject: [PATCH] ZDI-CAN-31039: enter wrong state + +When handling LMQCPP_PUBACK_PROPERTIES_LEN_VBI/COMPLETED + +This vulnerability was discovered by: +Anonymous working with TrendAI Zero Day Initiative + +CVE: CVE-2026-114550 +Upstream-Status: Backport [https://github.com/warmcat/libwebsockets/commit/c9e8e1834d7f13038c82963086b90e2ee9c5b44c] +Signed-off-by: Peter Marko <[email protected]> +--- + lib/roles/mqtt/mqtt.c | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/lib/roles/mqtt/mqtt.c b/lib/roles/mqtt/mqtt.c +index 85e984015..e743c3812 100644 +--- a/lib/roles/mqtt/mqtt.c ++++ b/lib/roles/mqtt/mqtt.c +@@ -1238,8 +1238,7 @@ _lws_mqtt_rx_parser(struct lws *wsi, lws_mqtt_parser_t *par, + * Otherwise consume the properties before + * completing the command + */ +- lws_mqtt_vbi_init(&par->vbit); +- par->state = LMQCPP_PUBACK_VH_PKT_ID; ++ par->state = LMQCPP_EAT_PROPERTIES_AND_COMPLETE; + break; + default: + lwsl_notice("%s: puback pr bad vbi\n", __func__);
meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.5.8.bb +1 -0
@@ -12,6 +12,7 @@ SRC_URI = " \ file://CVE-2026-10650.patch \ file://CVE-2026-19773.patch \ file://CVE-2026-78161.patch \ + file://CVE-2026-114550.patch \ " UPSTREAM_CHECK_URI = "https://github.com/warmcat/${BPN}/releases"
PATCH 20/64 spitools: upgrade 1.1.1 -> 1.2.0
In reply to [email protected]From: Martin Siegumfeldt <[email protected]>
---
.../spitools/{spitools_1.1.1.bb => spitools_1.2.0.bb} | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
rename meta-oe/recipes-support/spitools/{spitools_1.1.1.bb => spitools_1.2.0.bb} (86%)meta-oe/recipes-support/spitools/spitools_1.2.0.bb renamed from meta-oe/recipes-support/spitools/spitools_1.1.1.bb +1 -3
@@ -3,10 +3,8 @@ HOMEPAGE = "https://github.com/cpb-/spi-tools" LICENSE = "GPL-2.0-only" LIC_FILES_CHKSUM = "file://LICENSE;md5=8c16666ae6c159876a0ba63099614381" -SRCREV = "74ba65b19e0cf9d1eabd52d17d842200ef901d61" - +SRCREV = "57a950d2853aeac3e69c4f79873c0ab9930e4f7f" SRC_URI = "git://github.com/cpb-/spi-tools.git;protocol=https;branch=master;tag=${PV}" - inherit autotools
PATCH 21/64 hdf5: patch CVE-2026-19026, CVE-2026-19027 and CVE-2026-19028
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Details:
https://nvd.nist.gov/vuln/detail/cve-2026-19026
https://nvd.nist.gov/vuln/detail/cve-2026-19027
https://nvd.nist.gov/vuln/detail/cve-2026-19028
--- ...-19026-CVE-2026-19027-CVE-2026-19028.patch | 579 ++++++++++++++++++ meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb | 1 + 2 files changed, 580 insertions(+) create mode 100644 meta-oe/recipes-support/hdf5/files/CVE-2026-19026-CVE-2026-19027-CVE-2026-19028.patch
meta-oe/recipes-support/hdf5/files/CVE-2026-19026-CVE-2026-19027-CVE-2026-19028.patch new file +579 -0
@@ -0,0 +1,579 @@ +From 8623863e172662af94d30842e1f735219b682852 Mon Sep 17 00:00:00 2001 +From: Matt L <[email protected]> +Date: Fri, 25 Sep 2026 17:15:06 -0500 +Subject: [PATCH] Fix CVE issues related to Nbit/Fletcher32 decode paths + (#6497) + +* Fix h5ls SIGSEGVs in Nbit and Fletcher32 filter decode paths + +This PR fixes three related issues which could cause crashes when +crafted files were provided to h5ls. As it happens, all three are reachable from +any reader via H5Z_pipeline() during a chunked H5Dread(), so the root issues +affect the library itself. + +1. Nbit NULL/short parameter array (#6489, "Null_Pointer") + + H5Z__filter_nbit() dereferenced cd_values[0] before validating the + parameter array. A file storing the filter with zero client-data + values produced cd_values=NULL / cd_nelmts=0 and a NULL dereference. + + Fix is to reject a NULL cd_values or a cd_nelmts < 5 (the header at indices + 0..4 is always read) before any access. + +2. Nbit compressed-input buffer over-read (#6489, "Heap_Corruption_1") + + The H5Z__nbit_decompress* family walked the compressed input via + index *j with no bound against the input size, and nbytes was never + even passed in. Malformed parameters (e.g. d_nelmts=67108876 over a + 31-byte chunk) drove *j past the end, reading out of bounds in + H5Z__nbit_decompress_one_byte(). + + Fix is thread the input size through the whole decompress call chain, + convert the void helpers (_one_byte, _one_nooptype, _one_atomic) + to return herr_t, and bounds-check *j against buffer_size before every + buffer[*j] read, propagating a filter error up the stack. + +3. Fletcher32 checksum length underflow (#6490, "Heap_Corruption_2") + + The read path computed `src_nbytes = nbytes - FLETCHER_LEN` with no + lower-bound check. A corrupt 0-byte chunk underflowed src_nbytes to + SIZE_MAX-3, which was passed straight to H5_checksum_fletcher32(), + causing an out-of-bounds read. + + Fix is to reject nbytes<FLETCHER_LEN up + front, since a valid Fletcher32 buffer must contain at least the + trailing 4-byte checksum. + +All three now fail gracefully with an error instead of crashing. + +Fixes #6489 +Fixes #6490 + +* Add regression tests for Nbit/Fletcher32 filter decode crashes + +Added regression tests for the core library to guard against +the patched issues. + +These files were produced with the new generator test/gen_bad_filters.c, +which writes each dataset via the public API (using earliest library +version bounds so the pipeline message lands in a version-1, +un-checksummed object header) and then patches the specific bytes. + +* Committing clang-format changes + +* Address PR #6497 review: nbit size guard, comment, CHANGELOG + +* Bound the nbit filter's walk through its own parameters + +H5Z__nbit_decompress() and the array and compound helpers previously read the +parameter list at offsets taken from the datatype description held in +that same list, advancing a running index as they recursed, and never +compared the index against the number of parameters they were given. A +list that stopped short of the datatype it described left the walk +reading past the end of it. H5O__pline_decode() allocates the list at +exactly the stored count once it exceeds H5Z_COMMON_CD_VALUES, so past +the end is past the allocation. + +This commit threads the parameter count through decompression and checks it before +each step of the walk. The check has to sit at each step rather than +being measured once up front, because how far the walk runs is itself +read out of the parameters. + +Only the read path is bounded. The write path walks the same +parameters, but they are built by H5Z__set_local_nbit() rather than read +from a file. + +* Update CHANGELOG + +* Correct bad CHANGELOG merge + +--------- + +Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> +Co-authored-by: H. Joe Lee <[email protected]> + +CVE: CVE-2026-19026 CVE-2026-19027 CVE-2026-19028 +Upstream-Status: Backport [https://github.com/HDFGroup/hdf5/commit/a3cf1ea82cc7a66e50029a688121e1b105a7ce88] + +Dropped changes to the test and CHANGELOG file. + +Signed-off-by: Ankur Tyagi <[email protected]> +--- + src/H5Zfletcher32.c | 8 ++ + src/H5Znbit.c | 211 +++++++++++++++++++++++++++++++++----------- + 2 files changed, 166 insertions(+), 53 deletions(-) + +diff --git a/src/H5Zfletcher32.c b/src/H5Zfletcher32.c +index c3ec5f7ccb0..b89724ad0a3 100644 +--- a/src/H5Zfletcher32.c ++++ b/src/H5Zfletcher32.c +@@ -62,6 +62,14 @@ H5Z__filter_fletcher32(unsigned flags, size_t H5_ATTR_UNUSED cd_nelmts, + assert(sizeof(uint32_t) >= 4); + + if (flags & H5Z_FLAG_REVERSE) { /* Read */ ++ /* A Fletcher32-filtered buffer must contain at least the trailing ++ * checksum. Reject anything smaller to avoid a size_t underflow ++ * when computing the data length. ++ */ ++ if (nbytes < FLETCHER_LEN) ++ HGOTO_ERROR(H5E_STORAGE, H5E_OVERFLOW, 0, ++ "fletcher32 filter input buffer too small to contain checksum"); ++ + /* Do checksum if it's enabled for read; otherwise skip it + * to save performance. */ + if (!(flags & H5Z_FLAG_SKIP_EDC)) { +diff --git a/src/H5Znbit.c b/src/H5Znbit.c +index fed86a1a3bd..ce8c726370a 100644 +--- a/src/H5Znbit.c ++++ b/src/H5Znbit.c +@@ -51,26 +51,29 @@ static herr_t H5Z__set_parms_compound(const H5T_t *type, unsigned *cd_values_ind + bool *need_not_compress); + + static void H5Z__nbit_next_byte(size_t *j, size_t *buf_len); +-static void H5Z__nbit_decompress_one_byte(unsigned char *data, size_t data_offset, unsigned k, ++static herr_t H5Z__nbit_decompress_one_byte(unsigned char *data, size_t data_offset, unsigned k, + unsigned begin_i, unsigned end_i, const unsigned char *buffer, +- size_t *j, size_t *buf_len, const parms_atomic *p, +- size_t datatype_len); ++ size_t buffer_size, size_t *j, size_t *buf_len, ++ const parms_atomic *p, size_t datatype_len); + static void H5Z__nbit_compress_one_byte(const unsigned char *data, size_t data_offset, unsigned k, + unsigned begin_i, unsigned end_i, unsigned char *buffer, size_t *j, + size_t *buf_len, const parms_atomic *p, size_t datatype_len); +-static void H5Z__nbit_decompress_one_nooptype(unsigned char *data, size_t data_offset, +- const unsigned char *buffer, size_t *j, size_t *buf_len, +- unsigned size); +-static void H5Z__nbit_decompress_one_atomic(unsigned char *data, size_t data_offset, unsigned char *buffer, +- size_t *j, size_t *buf_len, const parms_atomic *p); ++static herr_t H5Z__nbit_decompress_one_nooptype(unsigned char *data, size_t data_offset, ++ const unsigned char *buffer, size_t buffer_size, size_t *j, ++ size_t *buf_len, unsigned size); ++static herr_t H5Z__nbit_decompress_one_atomic(unsigned char *data, size_t data_offset, unsigned char *buffer, ++ size_t buffer_size, size_t *j, size_t *buf_len, ++ const parms_atomic *p); + static herr_t H5Z__nbit_decompress_one_array(unsigned char *data, size_t data_offset, unsigned char *buffer, +- size_t *j, size_t *buf_len, const unsigned parms[], ++ size_t buffer_size, size_t *j, size_t *buf_len, ++ const unsigned parms[], size_t parms_nelmts, + unsigned *parms_index); + static herr_t H5Z__nbit_decompress_one_compound(unsigned char *data, size_t data_offset, +- unsigned char *buffer, size_t *j, size_t *buf_len, +- const unsigned parms[], unsigned *parms_index); ++ unsigned char *buffer, size_t buffer_size, size_t *j, ++ size_t *buf_len, const unsigned parms[], size_t parms_nelmts, ++ unsigned *parms_index); + static herr_t H5Z__nbit_decompress(unsigned char *data, unsigned d_nelmts, unsigned char *buffer, +- const unsigned parms[]); ++ size_t buffer_size, const unsigned parms[], size_t parms_nelmts); + static void H5Z__nbit_compress_one_nooptype(const unsigned char *data, size_t data_offset, + unsigned char *buffer, size_t *j, size_t *buf_len, unsigned size); + static void H5Z__nbit_compress_one_array(unsigned char *data, size_t data_offset, unsigned char *buffer, +@@ -100,8 +103,15 @@ H5Z_class2_t H5Z_NBIT[1] = {{ + #define H5Z_NBIT_COMPOUND 3 /* Compound datatype class */ + #define H5Z_NBIT_NOOPTYPE 4 /* Other datatype class: nbit does no compression */ + #define H5Z_NBIT_MAX_NPARMS 4096 /* Max number of parameters for filter */ +-#define H5Z_NBIT_ORDER_LE 0 /* Little endian for datatype byte order */ +-#define H5Z_NBIT_ORDER_BE 1 /* Big endian for datatype byte order */ ++ ++/* Whether the parameter list holds N more values starting at IDX. The ++ * datatype description that drives the walk through the parameters is held in ++ * those same parameters, so a list that stops short of the datatype it ++ * describes has to be caught at each step rather than measured up front. ++ */ ++#define H5Z_NBIT_PARMS_AVAIL(idx, n, nelmts) (((nelmts) >= (n)) && ((size_t)(idx) <= (nelmts) - (n))) ++#define H5Z_NBIT_ORDER_LE 0 /* Little endian for datatype byte order */ ++#define H5Z_NBIT_ORDER_BE 1 /* Big endian for datatype byte order */ + + /* Local variables */ + +@@ -931,7 +941,16 @@ H5Z__filter_nbit(unsigned flags, size_t cd_nelmts, const unsigned cd_values[], s + + /* check arguments + * cd_values[0] stores actual number of parameters in cd_values[] ++ * ++ * The filter header always occupies cd_values[0..4] (number of ++ * parameters, no-compression flag, number of elements, datatype class ++ * and datatype size), all of which are read unconditionally below. ++ * Reject a NULL array or one shorter than that to avoid a bad ++ * dereference. + */ ++ if (cd_values == NULL || cd_nelmts < 5) ++ HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, 0, "invalid nbit parameters"); ++ + if (cd_nelmts != cd_values[0]) + HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, 0, "invalid nbit aggression level"); + +@@ -944,6 +963,18 @@ H5Z__filter_nbit(unsigned flags, size_t cd_nelmts, const unsigned cd_values[], s + /* copy a filter parameter to d_nelmts */ + d_nelmts = cd_values[2]; + ++ /* cd_values[4] stores the datatype size, which is used together with ++ * d_nelmts to size the (de)compression buffer. A zero size is invalid, ++ * and a d_nelmts * size product that overflows size_t would produce an ++ * undersized allocation and out-of-bounds accesses (this matters on ++ * platforms with a 32-bit size_t). Reject both, as they can only arise ++ * from a corrupted or crafted file. ++ */ ++ if (cd_values[4] == 0) ++ HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, 0, "invalid nbit datatype size"); ++ if (d_nelmts != 0 && (size_t)cd_values[4] > SIZE_MAX / d_nelmts) ++ HGOTO_ERROR(H5E_ARGS, H5E_OVERFLOW, 0, "nbit (de)compression buffer size overflow"); ++ + /* input; decompress */ + if (flags & H5Z_FLAG_REVERSE) { + size_out = d_nelmts * (size_t)cd_values[4]; /* cd_values[4] stores datatype size */ +@@ -953,7 +984,7 @@ H5Z__filter_nbit(unsigned flags, size_t cd_nelmts, const unsigned cd_values[], s + HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, 0, "memory allocation failed for nbit decompression"); + + /* decompress the buffer */ +- if (H5Z__nbit_decompress(outbuf, d_nelmts, (unsigned char *)*buf, cd_values) < 0) { ++ if (H5Z__nbit_decompress(outbuf, d_nelmts, (unsigned char *)*buf, nbytes, cd_values, cd_nelmts) < 0) { + H5MM_xfree(outbuf); + HGOTO_ERROR(H5E_PLINE, H5E_CANTFILTER, 0, "can't decompress buffer"); + } +@@ -999,15 +1030,19 @@ H5Z__nbit_next_byte(size_t *j, size_t *buf_len) + *buf_len = 8 * sizeof(unsigned char); + } + +-static void ++static herr_t + H5Z__nbit_decompress_one_byte(unsigned char *data, size_t data_offset, unsigned k, unsigned begin_i, +- unsigned end_i, const unsigned char *buffer, size_t *j, size_t *buf_len, +- const parms_atomic *p, size_t datatype_len) ++ unsigned end_i, const unsigned char *buffer, size_t buffer_size, size_t *j, ++ size_t *buf_len, const parms_atomic *p, size_t datatype_len) + { + size_t dat_len; /* dat_len is the number of bits to be copied in each data byte */ + size_t dat_offset; + unsigned char val; /* value to be copied in each data byte */ + ++ /* Ensure the byte to be read is within the bounds of the compressed buffer */ ++ if (*j >= buffer_size) ++ return FAIL; ++ + /* initialize value and bits of unsigned char to be copied */ + val = buffer[*j]; + dat_offset = 0; +@@ -1039,25 +1074,33 @@ H5Z__nbit_decompress_one_byte(unsigned char *data, size_t data_offset, unsigned + dat_len -= *buf_len; + H5Z__nbit_next_byte(j, buf_len); + if (dat_len == 0) +- return; ++ return SUCCEED; + ++ if (*j >= buffer_size) ++ return FAIL; + val = buffer[*j]; + data[data_offset + k] |= (unsigned char)(((unsigned)(val >> (*buf_len - dat_len)) & + (unsigned)(~((unsigned)(~0) << dat_len))) + << dat_offset); + *buf_len -= dat_len; + } ++ ++ return SUCCEED; + } + +-static void ++static herr_t + H5Z__nbit_decompress_one_nooptype(unsigned char *data, size_t data_offset, const unsigned char *buffer, +- size_t *j, size_t *buf_len, unsigned size) ++ size_t buffer_size, size_t *j, size_t *buf_len, unsigned size) + { + unsigned i; /* index */ + size_t dat_len; /* dat_len is the number of bits to be copied in each data byte */ + unsigned char val; /* value to be copied in each data byte */ + + for (i = 0; i < size; i++) { ++ /* Ensure the byte to be read is within the bounds of the compressed buffer */ ++ if (*j >= buffer_size) ++ return FAIL; ++ + /* initialize value and bits of unsigned char to be copied */ + val = buffer[*j]; + dat_len = sizeof(unsigned char) * 8; +@@ -1069,16 +1112,20 @@ H5Z__nbit_decompress_one_nooptype(unsigned char *data, size_t data_offset, const + if (dat_len == 0) + continue; + ++ if (*j >= buffer_size) ++ return FAIL; + val = buffer[*j]; + data[data_offset + i] |= (unsigned char)((unsigned)(val >> (*buf_len - dat_len)) & + (unsigned)(~((unsigned)(~0) << dat_len))); + *buf_len -= dat_len; + } ++ ++ return SUCCEED; + } + +-static void +-H5Z__nbit_decompress_one_atomic(unsigned char *data, size_t data_offset, unsigned char *buffer, size_t *j, +- size_t *buf_len, const parms_atomic *p) ++static herr_t ++H5Z__nbit_decompress_one_atomic(unsigned char *data, size_t data_offset, unsigned char *buffer, ++ size_t buffer_size, size_t *j, size_t *buf_len, const parms_atomic *p) + { + /* begin_i: the index of byte having first significant bit + end_i: the index of byte having last significant bit */ +@@ -1097,8 +1144,9 @@ H5Z__nbit_decompress_one_atomic(unsigned char *data, size_t data_offset, unsigne + end_i = p->offset / 8; + + for (k = (int)begin_i; k >= (int)end_i; k--) +- H5Z__nbit_decompress_one_byte(data, data_offset, (unsigned)k, begin_i, end_i, buffer, j, buf_len, +- p, datatype_len); ++ if (H5Z__nbit_decompress_one_byte(data, data_offset, (unsigned)k, begin_i, end_i, buffer, ++ buffer_size, j, buf_len, p, datatype_len) < 0) ++ return FAIL; + } + else { /* big endian */ + /* Sanity check */ +@@ -1112,14 +1160,18 @@ H5Z__nbit_decompress_one_atomic(unsigned char *data, size_t data_offset, unsigne + end_i = ((unsigned)datatype_len - p->offset) / 8 - 1; + + for (k = (int)begin_i; k <= (int)end_i; k++) +- H5Z__nbit_decompress_one_byte(data, data_offset, (unsigned)k, begin_i, end_i, buffer, j, buf_len, +- p, datatype_len); ++ if (H5Z__nbit_decompress_one_byte(data, data_offset, (unsigned)k, begin_i, end_i, buffer, ++ buffer_size, j, buf_len, p, datatype_len) < 0) ++ return FAIL; + } ++ ++ return SUCCEED; + } + + static herr_t +-H5Z__nbit_decompress_one_array(unsigned char *data, size_t data_offset, unsigned char *buffer, size_t *j, +- size_t *buf_len, const unsigned parms[], unsigned *parms_index) ++H5Z__nbit_decompress_one_array(unsigned char *data, size_t data_offset, unsigned char *buffer, ++ size_t buffer_size, size_t *j, size_t *buf_len, const unsigned parms[], ++ size_t parms_nelmts, unsigned *parms_index) + { + unsigned i, total_size, base_class, base_size, n, begin_index; + parms_atomic p; +@@ -1127,11 +1179,19 @@ H5Z__nbit_decompress_one_array(unsigned char *data, size_t data_offset, unsigned + + FUNC_ENTER_PACKAGE + ++ if (!H5Z_NBIT_PARMS_AVAIL(*parms_index, 2, parms_nelmts)) ++ HGOTO_ERROR(H5E_PLINE, H5E_OVERFLOW, FAIL, ++ "parameter list is shorter than the datatype it describes"); ++ + total_size = parms[(*parms_index)++]; + base_class = parms[(*parms_index)++]; + + switch (base_class) { + case H5Z_NBIT_ATOMIC: ++ if (!H5Z_NBIT_PARMS_AVAIL(*parms_index, 4, parms_nelmts)) ++ HGOTO_ERROR(H5E_PLINE, H5E_OVERFLOW, FAIL, ++ "parameter list is shorter than the datatype it describes"); ++ + p.size = parms[(*parms_index)++]; + p.order = parms[(*parms_index)++]; + p.precision = parms[(*parms_index)++]; +@@ -1143,37 +1203,54 @@ H5Z__nbit_decompress_one_array(unsigned char *data, size_t data_offset, unsigned + + n = total_size / p.size; + for (i = 0; i < n; i++) +- H5Z__nbit_decompress_one_atomic(data, data_offset + i * (size_t)p.size, buffer, j, buf_len, +- &p); ++ if (H5Z__nbit_decompress_one_atomic(data, data_offset + i * (size_t)p.size, buffer, ++ buffer_size, j, buf_len, &p) < 0) ++ HGOTO_ERROR(H5E_PLINE, H5E_CANTFILTER, FAIL, "can't decompress atomic"); + break; + + case H5Z_NBIT_ARRAY: ++ if (!H5Z_NBIT_PARMS_AVAIL(*parms_index, 1, parms_nelmts)) ++ HGOTO_ERROR(H5E_PLINE, H5E_OVERFLOW, FAIL, ++ "parameter list is shorter than the datatype it describes"); ++ + base_size = parms[*parms_index]; /* read in advance */ + n = total_size / base_size; /* number of base_type elements inside the array datatype */ + begin_index = *parms_index; + for (i = 0; i < n; i++) { +- if (H5Z__nbit_decompress_one_array(data, data_offset + i * (size_t)base_size, buffer, j, +- buf_len, parms, parms_index) < 0) ++ if (H5Z__nbit_decompress_one_array(data, data_offset + i * (size_t)base_size, buffer, ++ buffer_size, j, buf_len, parms, parms_nelmts, ++ parms_index) < 0) + HGOTO_ERROR(H5E_PLINE, H5E_CANTFILTER, FAIL, "can't decompress array"); + *parms_index = begin_index; + } + break; + + case H5Z_NBIT_COMPOUND: ++ if (!H5Z_NBIT_PARMS_AVAIL(*parms_index, 1, parms_nelmts)) ++ HGOTO_ERROR(H5E_PLINE, H5E_OVERFLOW, FAIL, ++ "parameter list is shorter than the datatype it describes"); ++ + base_size = parms[*parms_index]; /* read in advance */ + n = total_size / base_size; /* number of base_type elements inside the array datatype */ + begin_index = *parms_index; + for (i = 0; i < n; i++) { +- if (H5Z__nbit_decompress_one_compound(data, data_offset + i * (size_t)base_size, buffer, j, +- buf_len, parms, parms_index) < 0) ++ if (H5Z__nbit_decompress_one_compound(data, data_offset + i * (size_t)base_size, buffer, ++ buffer_size, j, buf_len, parms, parms_nelmts, ++ parms_index) < 0) + HGOTO_ERROR(H5E_PLINE, H5E_CANTFILTER, FAIL, "can't decompress compound"); + *parms_index = begin_index; + } + break; + + case H5Z_NBIT_NOOPTYPE: ++ if (!H5Z_NBIT_PARMS_AVAIL(*parms_index, 1, parms_nelmts)) ++ HGOTO_ERROR(H5E_PLINE, H5E_OVERFLOW, FAIL, ++ "parameter list is shorter than the datatype it describes"); ++ + (*parms_index)++; /* skip size of no-op type */ +- H5Z__nbit_decompress_one_nooptype(data, data_offset, buffer, j, buf_len, total_size); ++ if (H5Z__nbit_decompress_one_nooptype(data, data_offset, buffer, buffer_size, j, buf_len, ++ total_size) < 0) ++ HGOTO_ERROR(H5E_PLINE, H5E_CANTFILTER, FAIL, "can't decompress no-op type"); + break; + + default: +@@ -1185,8 +1262,9 @@ done: + } + + static herr_t +-H5Z__nbit_decompress_one_compound(unsigned char *data, size_t data_offset, unsigned char *buffer, size_t *j, +- size_t *buf_len, const unsigned parms[], unsigned *parms_index) ++H5Z__nbit_decompress_one_compound(unsigned char *data, size_t data_offset, unsigned char *buffer, ++ size_t buffer_size, size_t *j, size_t *buf_len, const unsigned parms[], ++ size_t parms_nelmts, unsigned *parms_index) + { + unsigned i, nmembers, member_offset, member_class, member_size, used_size = 0, prev_used_size, size; + parms_atomic p; +@@ -1194,10 +1272,18 @@ H5Z__nbit_decompress_one_compound(unsigned char *data, size_t data_offset, unsig + + FUNC_ENTER_PACKAGE + ++ if (!H5Z_NBIT_PARMS_AVAIL(*parms_index, 2, parms_nelmts)) ++ HGOTO_ERROR(H5E_PLINE, H5E_OVERFLOW, FAIL, ++ "parameter list is shorter than the datatype it describes"); ++ + size = parms[(*parms_index)++]; + nmembers = parms[(*parms_index)++]; + + for (i = 0; i < nmembers; i++) { ++ if (!H5Z_NBIT_PARMS_AVAIL(*parms_index, 3, parms_nelmts)) ++ HGOTO_ERROR(H5E_PLINE, H5E_OVERFLOW, FAIL, ++ "parameter list is shorter than the datatype it describes"); ++ + member_offset = parms[(*parms_index)++]; + member_class = parms[(*parms_index)++]; + +@@ -1213,6 +1299,10 @@ H5Z__nbit_decompress_one_compound(unsigned char *data, size_t data_offset, unsig + HGOTO_ERROR(H5E_PLINE, H5E_BADRANGE, FAIL, "compound member offset overflowed compound size"); + switch (member_class) { + case H5Z_NBIT_ATOMIC: ++ if (!H5Z_NBIT_PARMS_AVAIL(*parms_index, 4, parms_nelmts)) ++ HGOTO_ERROR(H5E_PLINE, H5E_OVERFLOW, FAIL, ++ "parameter list is shorter than the datatype it describes"); ++ + p.size = member_size; + /* Advance past member size */ + (*parms_index)++; +@@ -1224,26 +1314,29 @@ H5Z__nbit_decompress_one_compound(unsigned char *data, size_t data_offset, unsig + if (p.precision > p.size * 8 || (p.precision + p.offset) > p.size * 8) + HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "invalid datatype precision/offset"); + +- H5Z__nbit_decompress_one_atomic(data, data_offset + member_offset, buffer, j, buf_len, &p); ++ if (H5Z__nbit_decompress_one_atomic(data, data_offset + member_offset, buffer, buffer_size, j, ++ buf_len, &p) < 0) ++ HGOTO_ERROR(H5E_PLINE, H5E_CANTFILTER, FAIL, "can't decompress atomic"); + break; + + case H5Z_NBIT_ARRAY: +- if (H5Z__nbit_decompress_one_array(data, data_offset + member_offset, buffer, j, buf_len, +- parms, parms_index) < 0) ++ if (H5Z__nbit_decompress_one_array(data, data_offset + member_offset, buffer, buffer_size, j, ++ buf_len, parms, parms_nelmts, parms_index) < 0) + HGOTO_ERROR(H5E_PLINE, H5E_CANTFILTER, FAIL, "can't decompress array"); + break; + + case H5Z_NBIT_COMPOUND: +- if (H5Z__nbit_decompress_one_compound(data, data_offset + member_offset, buffer, j, buf_len, +- parms, parms_index) < 0) ++ if (H5Z__nbit_decompress_one_compound(data, data_offset + member_offset, buffer, buffer_size, ++ j, buf_len, parms, parms_nelmts, parms_index) < 0) + HGOTO_ERROR(H5E_PLINE, H5E_CANTFILTER, FAIL, "can't decompress compound"); + break; + + case H5Z_NBIT_NOOPTYPE: +- /* Advance past member size */ ++ /* Advance past member size (already checked above) */ + (*parms_index)++; +- H5Z__nbit_decompress_one_nooptype(data, data_offset + member_offset, buffer, j, buf_len, +- member_size); ++ if (H5Z__nbit_decompress_one_nooptype(data, data_offset + member_offset, buffer, buffer_size, ++ j, buf_len, member_size) < 0) ++ HGOTO_ERROR(H5E_PLINE, H5E_CANTFILTER, FAIL, "can't decompress no-op type"); + break; + + default: +@@ -1256,7 +1349,8 @@ done: + } + + static herr_t +-H5Z__nbit_decompress(unsigned char *data, unsigned d_nelmts, unsigned char *buffer, const unsigned parms[]) ++H5Z__nbit_decompress(unsigned char *data, unsigned d_nelmts, unsigned char *buffer, size_t buffer_size, ++ const unsigned parms[], size_t parms_nelmts) + { + /* i: index of data, j: index of buffer, + buf_len: number of bits to be filled in current byte */ +@@ -1269,6 +1363,11 @@ H5Z__nbit_decompress(unsigned char *data, unsigned d_nelmts, unsigned char *buff + + FUNC_ENTER_PACKAGE + ++ /* The datatype class and its size are read before the walk begins */ ++ if (!H5Z_NBIT_PARMS_AVAIL(0, 5, parms_nelmts)) ++ HGOTO_ERROR(H5E_PLINE, H5E_OVERFLOW, FAIL, ++ "parameter list is shorter than the datatype it describes"); ++ + /* may not have to initialize to zeros */ + memset(data, 0, d_nelmts * (size_t)parms[4]); + +@@ -1278,6 +1377,10 @@ H5Z__nbit_decompress(unsigned char *data, unsigned d_nelmts, unsigned char *buff + + switch (parms[3]) { + case H5Z_NBIT_ATOMIC: ++ if (!H5Z_NBIT_PARMS_AVAIL(0, 8, parms_nelmts)) ++ HGOTO_ERROR(H5E_PLINE, H5E_OVERFLOW, FAIL, ++ "parameter list is shorter than the datatype it describes"); ++ + p.size = parms[4]; + p.order = parms[5]; + p.precision = parms[6]; +@@ -1288,15 +1391,17 @@ H5Z__nbit_decompress(unsigned char *data, unsigned d_nelmts, unsigned char *buff + HGOTO_ERROR(H5E_PLINE, H5E_BADTYPE, FAIL, "invalid datatype precision/offset"); + + for (i = 0; i < d_nelmts; i++) +- H5Z__nbit_decompress_one_atomic(data, i * (size_t)p.size, buffer, &j, &buf_len, &p); ++ if (H5Z__nbit_decompress_one_atomic(data, i * (size_t)p.size, buffer, buffer_size, &j, ++ &buf_len, &p) < 0) ++ HGOTO_ERROR(H5E_PLINE, H5E_CANTFILTER, FAIL, "can't decompress atomic"); + break; + + case H5Z_NBIT_ARRAY: + size = parms[4]; + parms_index = 4; /* set the index before goto function call */ + for (i = 0; i < d_nelmts; i++) { +- if (H5Z__nbit_decompress_one_array(data, i * size, buffer, &j, &buf_len, parms, +- &parms_index) < 0) ++ if (H5Z__nbit_decompress_one_array(data, i * size, buffer, buffer_size, &j, &buf_len, parms, ++ parms_nelmts, &parms_index) < 0) + HGOTO_ERROR(H5E_PLINE, H5E_CANTFILTER, FAIL, "can't decompress array"); + parms_index = 4; + } +@@ -1306,8 +1411,8 @@ H5Z__nbit_decompress(unsigned char *data, unsigned d_nelmts, unsigned char *buff + size = parms[4]; + parms_index = 4; /* set the index before goto function call */ + for (i = 0; i < d_nelmts; i++) { +- if (H5Z__nbit_decompress_one_compound(data, i * size, buffer, &j, &buf_len, parms, +- &parms_index) < 0) ++ if (H5Z__nbit_decompress_one_compound(data, i * size, buffer, buffer_size, &j, &buf_len, ++ parms, parms_nelmts, &parms_index) < 0) + HGOTO_ERROR(H5E_PLINE, H5E_CANTFILTER, FAIL, "can't decompress compound"); + parms_index = 4; + }
meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb +1 -0
@@ -22,6 +22,7 @@ SRC_URI = "https://support.hdfgroup.org/releases/hdf5/v2_0/v2_0_0/downloads/${BP file://CVE-2026-17573.patch \ file://CVE-2026-17574.patch \ file://CVE-2026-19025.patch \ + file://CVE-2026-19026-CVE-2026-19027-CVE-2026-19028.patch \ " SRC_URI[sha256sum] = "f4c2edc5668fb846627182708dbe1e16c60c467e63177a75b0b9f12c19d7efed"
PATCH 22/64 hdf5: patch CVE-2026-19023 and CVE-2026-19024
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Details:
https://nvd.nist.gov/vuln/detail/cve-2026-19023
https://nvd.nist.gov/vuln/detail/cve-2026-19024
--- .../files/CVE-2026-19023-CVE-2026-19024.patch | 176 ++++++++++++++++++ meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb | 1 + 2 files changed, 177 insertions(+) create mode 100644 meta-oe/recipes-support/hdf5/files/CVE-2026-19023-CVE-2026-19024.patch
meta-oe/recipes-support/hdf5/files/CVE-2026-19023-CVE-2026-19024.patch new file +176 -0
@@ -0,0 +1,176 @@ +From e7e85949865b771b2b0b73ac1edaf54ce14cd894 Mon Sep 17 00:00:00 2001 +From: Matt L <[email protected]> +Date: Wed, 7 Oct 2026 11:03:55 -0500 +Subject: [PATCH] Fix CVEs related to vlen binary output and malformed fill + values in h5dump (#6507) + +* Fix h5dump SIGSEGVs on vlen binary output and malformed fill value + +Fixes two crafted-file crashes in h5dump (GitHub issues #6486 and #6487). +A third report (#6488) is the Fletcher32 checksum-length underflow already +fixed for h5ls in PR #6497, so it is not addressed again here. + +Issue #6486 (tools) - render_bin_output() SIGSEGV with "-b" on a +variable-length string dataset. The H5T_STRING branch reused the local +"size" variable both as the per-element stride and as the string length +returned by strlen(), so after the first element the stride became that +string's length and subsequent elements were read from misaligned +addresses, dereferencing a garbage pointer. This affected any multi-element +vlen-string dataset, not just crafted files. A separate str_len variable is +now used for the write length so "size" stays the datatype stride. As this +is a tools bug, the regression test is a tools test: tools/test/h5dump adds +the tbinvlstr case (binary dump of a vlen-string dataset, file +tbinvlstr.h5, generated by h5dumpgentest.c/gent_binvlstr), which crashes on +develop and passes with the fix. + +Issue #6487 (library) - H5Pget_fill_value() SIGSEGV via H5T_path_find(). +A crafted version-1/2 fill value message can have "fill defined" set with a +negative size field; H5O_fill_old_decode() leaves fill.size negative and +fill.buf/type NULL instead of normalizing to the "undefined" sentinel. +That value is neither 0 nor -1, so H5P_get_fill_value() fell through to +H5T_path_find() with a NULL source type and crashed. H5P_get_fill_value() +now rejects a NULL fill datatype and returns an error, keeping the dataset +itself readable. h5dump's XML fill-value renderer (xml_dump_fill_value) is +also hardened: it checks the buffer allocation and the H5Pget_fill_value() +return value and emits an empty fill value element instead of dereferencing +an unallocated or unretrievable buffer. + +Regression test (library): test/fillval.c test_bad_fill_value() reads a +crafted file (generated by test/gen_bad_fill.c, committed as +test/testfiles/bad_fill_value.h5) and verifies that the dataset data is +still readable while H5Pget_fill_value() fails cleanly instead of crashing. + +Verified: both PoCs exit cleanly with the fix (SIGSEGV without it); the +committed fixtures crash the pre-fix library/tools and pass post-fix; the +fillval suite, the new tbinvlstr h5dump test, and the non-XML h5dump suite +pass. + +Co-Authored-By: Claude Opus 4.8 <[email protected]> + +* Update CHANGELOG to list CVEs/GH issues + +* Renumber tbinvlstr.h5 generator macro to FILE114 + +--------- + +Co-authored-by: Claude Opus 4.8 <[email protected]> +Co-authored-by: Larry Knox <[email protected]> + +CVE: CVE-2026-19023 CVE-2026-19024 +Upstream-Status: Backport [https://github.com/HDFGroup/hdf5/commit/cfcd7fe7421cc94e0527d043f2d1b271986e7b09] + +Dropped changes to the test and CHANGELOG file. + +Signed-off-by: Ankur Tyagi <[email protected]> +--- + src/H5Pdcpl.c | 7 +++++++ + tools/lib/h5tools.c | 9 ++++++--- + tools/src/h5dump/h5dump_xml.c | 33 ++++++++++++++++++++++++++++----- + 3 files changed, 41 insertions(+), 8 deletions(-) + +diff --git a/src/H5Pdcpl.c b/src/H5Pdcpl.c +index 2317c317f73..a1a33d52c7b 100644 +--- a/src/H5Pdcpl.c ++++ b/src/H5Pdcpl.c +@@ -3207,6 +3207,13 @@ H5P_get_fill_value(H5P_genplist_t *plist, const H5T_t *type, void *value /*out*/ + HGOTO_DONE(SUCCEED); + } /* end if */ + ++ /* ++ * A fill value with a nonzero size must have an associated datatype in ++ * order to be converted to the destination type. ++ */ ++ if (NULL == fill.type) ++ HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, FAIL, "fill value has no datatype"); ++ + /* + * Can we convert between the source and destination datatypes? + */ +diff --git a/tools/lib/h5tools.c b/tools/lib/h5tools.c +index b1a2aa0de4c..3e028504f7c 100644 +--- a/tools/lib/h5tools.c ++++ b/tools/lib/h5tools.c +@@ -1825,24 +1825,27 @@ render_bin_output(FILE *stream, hid_t container, hid_t tid, void *_mem, hsize_t + H5T_str_t pad; + char *s = NULL; + unsigned char tempuchar; ++ size_t str_len; /* # of bytes to write for this element */ + + H5TOOLS_DEBUG("H5T_STRING"); + pad = H5Tget_strpad(tid); + + for (block_index = 0; block_index < block_nelmts; block_index++) { ++ /* Advance by the datatype size */ + mem = ((unsigned char *)_mem) + block_index * size; + + if (H5Tis_variable_str(tid)) { + s = *(char **)((void *)mem); + if (s != NULL) +- size = strlen(s); ++ str_len = strlen(s); + else + H5TOOLS_THROW((-1), "NULL string"); + } + else { +- s = (char *)mem; ++ s = (char *)mem; ++ str_len = size; + } +- for (i = 0; i < size && (s[i] || pad != H5T_STR_NULLTERM); i++) { ++ for (i = 0; i < str_len && (s[i] || pad != H5T_STR_NULLTERM); i++) { + memcpy(&tempuchar, &s[i], sizeof(unsigned char)); + if (1 != fwrite(&tempuchar, sizeof(unsigned char), 1, stream)) + H5TOOLS_THROW((-1), "fwrite failed"); +diff --git a/tools/src/h5dump/h5dump_xml.c b/tools/src/h5dump/h5dump_xml.c +index f1a34870f4a..6f3e00a27df 100644 +--- a/tools/src/h5dump/h5dump_xml.c ++++ b/tools/src/h5dump/h5dump_xml.c +@@ -3534,8 +3534,9 @@ xml_dump_fill_value(hid_t dcpl, hid_t type) + hid_t n_type = H5I_INVALID_HID; + void *buf; + char *name; +- h5tools_str_t buffer; /* string into which to render */ +- h5tools_context_t ctx; /* print context */ ++ herr_t fill_ret = FAIL; /* status of retrieving the fill value */ ++ h5tools_str_t buffer; /* string into which to render */ ++ h5tools_context_t ctx; /* print context */ + h5tool_format_t *outputformat = &xml_dataformat; + h5tool_format_t string_dataformat; + hsize_t curr_pos = 0; /* total data element position */ +@@ -3593,11 +3594,33 @@ xml_dump_fill_value(hid_t dcpl, hid_t type) + n_type = type; + + space = H5Tget_size(n_type); +- buf = malloc((size_t)space); ++ /* Zero-initialize so a partially-filled buffer never contains ++ * uninitialized memory for the rendering code below. */ ++ buf = calloc((size_t)space, 1); ++ ++ /* Retrieve the fill value. This can fail on a corrupted or crafted file ++ * whose fill value has no datatype. Any errors are suppressed and handled ++ * later. */ ++ if (buf != NULL) { ++ H5E_BEGIN_TRY ++ { ++ fill_ret = H5Pget_fill_value(dcpl, n_type, buf); ++ } ++ H5E_END_TRY ++ } + +- H5Pget_fill_value(dcpl, n_type, buf); ++ if (buf == NULL || fill_ret < 0) { ++ /* No usable fill value: emit an empty element rather than ++ * dereferencing an unallocated or unretrievable buffer. */ ++ ctx.need_prefix = true; + +- if (H5Tget_class(n_type) == H5T_REFERENCE) { ++ /* Render the element */ ++ h5tools_str_reset(&buffer); ++ h5tools_str_append(&buffer, "<%sNoData />", xmlnsprefix); ++ h5tools_render_element(rawoutstream, outputformat, &ctx, &buffer, &curr_pos, ++ (size_t)outputformat->line_ncols, (hsize_t)0, (hsize_t)0); ++ } ++ else if (H5Tget_class(n_type) == H5T_REFERENCE) { + const char *path = lookup_ref_path(*(H5R_ref_t *)buf); + + ctx.need_prefix = true;
meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb +1 -0
@@ -23,6 +23,7 @@ SRC_URI = "https://support.hdfgroup.org/releases/hdf5/v2_0/v2_0_0/downloads/${BP file://CVE-2026-17574.patch \ file://CVE-2026-19025.patch \ file://CVE-2026-19026-CVE-2026-19027-CVE-2026-19028.patch \ + file://CVE-2026-19023-CVE-2026-19024.patch \ " SRC_URI[sha256sum] = "f4c2edc5668fb846627182708dbe1e16c60c467e63177a75b0b9f12c19d7efed"
PATCH 23/64 hdf5: patch CVE-2026-120689
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Details:
https://nvd.nist.gov/vuln/detail/cve-2026-120689
--- .../hdf5/files/CVE-2026-120689.patch | 60 +++++++++++++++++++ meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb | 1 + 2 files changed, 61 insertions(+) create mode 100644 meta-oe/recipes-support/hdf5/files/CVE-2026-120689.patch
meta-oe/recipes-support/hdf5/files/CVE-2026-120689.patch new file +60 -0
@@ -0,0 +1,60 @@ +From 0472315404dc03d0e89eec4513eb80930f9b176e Mon Sep 17 00:00:00 2001 +From: PGZXB <[email protected]> +Date: Fri, 9 Oct 2026 02:52:55 +0800 +Subject: [PATCH] Fix StackOverflow when calling `H5Gget_info` (#6685) + +Verify B-tree node level when an expected level value is provided + +(cherry picked from commit 5933130b610c7bd6e66fe93c2798b97e3f3188c8) + +CVE: CVE-2026-120689 +Upstream-Status: Backport [https://github.com/HDFGroup/hdf5/commit/5933130b610c7bd6e66fe93c2798b97e3f3188c8] + +Signed-off-by: Ankur Tyagi <[email protected]> +--- + release_docs/CHANGELOG.md | 6 ++++++ + src/H5B.c | 14 ++++++++++++++ + 2 files changed, 20 insertions(+) + +diff --git a/release_docs/CHANGELOG.md b/release_docs/CHANGELOG.md +index c181f174bbb..b5c99cd4b16 100644 +--- a/release_docs/CHANGELOG.md ++++ b/release_docs/CHANGELOG.md +@@ -778,6 +778,12 @@ Added Fortran wrapper `h5fdsubfiling_get_file_mapping_f()` for the subfiling fil + + A malformed HDF5 file could have an attribute with a recorded name length of zero.This would lead to an overflow and an invalid memory access. An integrity check has been added to detect this case and safely stop file decoding. + ++### Fixed a stack overflow when iterating a corrupted B-tree ++ ++ `H5B__iterate_helper()` now verifies that a B-tree node it has just protected has the level the traversal expects, when the expected level is known. The equivalent check in `H5B__cache_deserialize()` only runs when a node is first loaded into the metadata cache, so a corrupted B-tree whose child pointer revisits a node that is already cached (for example, a node that points to itself) could bypass that check and recurse without bound until the stack was exhausted. Such a file is now rejected with an error instead of crashing. This was observed through `H5Gget_info()`. ++ ++ Fixes GitHub issue #6403 ++ + ## Java Library + + ### Renamed the Callbacks.java file to H5Callbacks.java +diff --git a/src/H5B.c b/src/H5B.c +index c9571708b73..4c6b1a55480 100644 +--- a/src/H5B.c ++++ b/src/H5B.c +@@ -1140,6 +1140,20 @@ H5B__iterate_helper(H5F_t *f, const H5B_class_t *type, haddr_t addr, int exp_lev + if (NULL == (bt = (H5B_t *)H5AC_protect(f, H5AC_BT, addr, &cache_udata, H5AC__READ_ONLY_FLAG))) + HGOTO_ERROR(H5E_BTREE, H5E_CANTPROTECT, H5_ITER_ERROR, "unable to load B-tree node"); + ++ /* Check for a corrupted B-tree node. If the caller has told us what ++ * level to expect, verify that the node we just protected actually has ++ * that level. This check must be performed here rather than relying ++ * solely on the equivalent check in H5B__cache_deserialize, because ++ * that deserialize callback only runs when a node is first loaded into ++ * the metadata cache. A corrupted B-tree whose child pointer revisits ++ * a node that is already cached (e.g. a node that points to itself) ++ * bypasses the deserialize callback entirely, so without this check the ++ * recursion below would never terminate and would overflow the stack. ++ */ ++ if (exp_level != H5B_UNKNOWN_NODELEVEL && bt->level != (unsigned)exp_level) ++ HGOTO_ERROR(H5E_BTREE, H5E_BADVALUE, H5_ITER_ERROR, ++ "B-tree node level is not as expected, possibly corrupted"); ++ + /* Iterate over node's children */ + for (u = 0; u < bt->nchildren && ret_value == H5_ITER_CONT; u++) { + if (bt->level > 0)
meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb +1 -0
@@ -24,6 +24,7 @@ SRC_URI = "https://support.hdfgroup.org/releases/hdf5/v2_0/v2_0_0/downloads/${BP file://CVE-2026-19025.patch \ file://CVE-2026-19026-CVE-2026-19027-CVE-2026-19028.patch \ file://CVE-2026-19023-CVE-2026-19024.patch \ + file://CVE-2026-120689.patch \ " SRC_URI[sha256sum] = "f4c2edc5668fb846627182708dbe1e16c60c467e63177a75b0b9f12c19d7efed"
PATCH 24/64 hdf5: patch CVE-2026-120754 and CVE-2026-120755
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Details:
https://nvd.nist.gov/vuln/detail/cve-2026-120754
https://nvd.nist.gov/vuln/detail/cve-2026-120755
--- .../CVE-2026-120754-CVE-2026-120755.patch | 172 ++++++++++++++++++ meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb | 1 + 2 files changed, 173 insertions(+) create mode 100644 meta-oe/recipes-support/hdf5/files/CVE-2026-120754-CVE-2026-120755.patch
meta-oe/recipes-support/hdf5/files/CVE-2026-120754-CVE-2026-120755.patch new file +172 -0
@@ -0,0 +1,172 @@ +From 78672660618de8cca7c804f465886af02a89e79b Mon Sep 17 00:00:00 2001 +From: Matt L <[email protected]> +Date: Wed, 21 Oct 2026 13:52:39 -0500 +Subject: [PATCH] Bound filter header reads to the stored chunk length (#6585) + +* bound scaleoffset and fletcher32 reads to the chunk buffer + +* Bound filter header reads to the stored chunk length + +This PR is an expansion of #6579. + +The scaleoffset bounds checks measured against *buf_size, the size of the +chunk buffer, rather than nbytes, the number of bytes the pipeline read from +the file. H5D__chunk_lock() sizes a filtered chunk buffer to MAX(stored size, +unfiltered size) so filters have room to expand into, and fills only the +stored bytes, so the buffer is routinely longer than the data in it. A +truncated chunk therefore passed the header check and decompressed out of the +uninitialized remainder of the allocation, returning unrelated heap contents +as dataset data. Because the reads stay inside the allocation, the address +sanitizer does not see them. + +This PR switches every read-side check in H5Z__filter_scaleoffset() +to bound against nbytes and pass the stored length to +H5Z__scaleoffset_decompress(). + +Similar short-chunk checks are added to szip and fletcher32. + +The direct chunk test has been extended to cover a chunk whose unfiltered size is +larger than the bytes stored for it, and to cover szip. + +* Correct potential invalid pointer usage + +* update CHANGELOG + +* Update CHANGELOG comment + +* Guard scaleoffset output size against multiplication overflow + +--------- + +Co-authored-by: Nayyar <[email protected]> +Co-authored-by: Larry Knox <[email protected]> + +CVE: CVE-2026-120754 CVE-2026-120755 +Upstream-Status: Backport [https://github.com/HDFGroup/hdf5/commit/cdb13c4de9c7edbbae180f384e2e610a3b3cf185] + +Dropped changes to the test and CHANGELOG file. + +Signed-off-by: Ankur Tyagi <[email protected]> +--- + src/H5Zfletcher32.c | 13 +++++++------ + src/H5Zscaleoffset.c | 15 +++++++++++---- + src/H5Zszip.c | 18 ++++++++++++++---- + 3 files changed, 32 insertions(+), 14 deletions(-) + +diff --git a/src/H5Zfletcher32.c b/src/H5Zfletcher32.c +index b89724ad0a3..5ef3b04cbcf 100644 +--- a/src/H5Zfletcher32.c ++++ b/src/H5Zfletcher32.c +@@ -62,13 +62,14 @@ H5Z__filter_fletcher32(unsigned flags, size_t H5_ATTR_UNUSED cd_nelmts, + assert(sizeof(uint32_t) >= 4); + + if (flags & H5Z_FLAG_REVERSE) { /* Read */ +- /* A Fletcher32-filtered buffer must contain at least the trailing +- * checksum. Reject anything smaller to avoid a size_t underflow +- * when computing the data length. ++ /* The checksum is stored at the end of the chunk, so anything shorter ++ * than the checksum itself makes the length arithmetic below wrap. A ++ * chunk of exactly FLETCHER_LEN bytes holds no data and would return a ++ * filtered size of zero, which the pipeline reports as a filter failure, ++ * so reject it here where the reason can be stated. + */ +- if (nbytes < FLETCHER_LEN) +- HGOTO_ERROR(H5E_STORAGE, H5E_OVERFLOW, 0, +- "fletcher32 filter input buffer too small to contain checksum"); ++ if (nbytes <= FLETCHER_LEN) ++ HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, 0, "buffer too short"); + + /* Do checksum if it's enabled for read; otherwise skip it + * to save performance. */ +diff --git a/src/H5Zscaleoffset.c b/src/H5Zscaleoffset.c +index d39b4f40403..d506e5203a0 100644 +--- a/src/H5Zscaleoffset.c ++++ b/src/H5Zscaleoffset.c +@@ -1205,10 +1205,18 @@ H5Z__filter_scaleoffset(unsigned flags, size_t cd_nelmts, const unsigned cd_valu + unsigned long long minval_mask = 0; + unsigned minval_size = 0; + +- minbits = 0; +- if (H5_IS_BUFFER_OVERFLOW((unsigned char *)*buf, 5, (unsigned char *)*buf + *buf_size - 1)) ++ /* Bound every read below by nbytes rather than *buf_size. The caller may ++ * provide a buffer larger than the data it holds, so restrict the read ++ * to the valid nbytes. ++ */ ++ /* The minbits and minval-size fields are the first five bytes of the ++ * stream, so validate that length before deriving an end-of-buffer ++ * pointer from nbytes ++ */ ++ if (nbytes < 5) + HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, 0, "buffer too short"); + ++ minbits = 0; + for (i = 0; i < 4; i++) { + minbits_mask = ((unsigned char *)*buf)[i]; + minbits_mask <<= i * 8; +@@ -1224,8 +1232,7 @@ H5Z__filter_scaleoffset(unsigned flags, size_t cd_nelmts, const unsigned cd_valu + minval_size = sizeof(unsigned long long) <= ((unsigned char *)*buf)[4] ? sizeof(unsigned long long) + : ((unsigned char *)*buf)[4]; + minval = 0; +- if (H5_IS_BUFFER_OVERFLOW((unsigned char *)*buf, 5 + minval_size, +- (unsigned char *)*buf + *buf_size - 1)) ++ if (H5_IS_BUFFER_OVERFLOW((unsigned char *)*buf, 5 + minval_size, (unsigned char *)*buf + nbytes - 1)) + HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, 0, "buffer too short"); + for (i = 0; i < minval_size; i++) { + minval_mask = ((unsigned char *)*buf)[5 + i]; +diff --git a/src/H5Zszip.c b/src/H5Zszip.c +index 9b37035374f..dd6c3619873 100644 +--- a/src/H5Zszip.c ++++ b/src/H5Zszip.c +@@ -28,6 +28,9 @@ + #include "szlib.h" + #endif + ++/* Size of the uncompressed-length header stored in front of the szip stream */ ++#define SZIP_HEADER_LEN 4 ++ + /* Local function prototypes */ + static htri_t H5Z__can_apply_szip(hid_t dcpl_id, hid_t type_id, hid_t space_id); + static herr_t H5Z__set_local_szip(hid_t dcpl_id, hid_t type_id, hid_t space_id); +@@ -284,6 +287,13 @@ H5Z__filter_szip(unsigned flags, size_t cd_nelmts, const unsigned cd_values[], s + uint32_t stored_nalloc; /* Number of bytes the compressed block will expand into */ + size_t nalloc; /* Number of bytes the compressed block will expand into */ + ++ /* The uncompressed length is stored in front of the compressed stream, so ++ * a chunk shorter than that header makes the length arithmetic below wrap. ++ * A chunk of exactly SZIP_HEADER_LEN bytes holds no compressed data. ++ */ ++ if (nbytes <= SZIP_HEADER_LEN) ++ HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, 0, "buffer too short"); ++ + /* Get the size of the uncompressed buffer */ + newbuf = (unsigned char *)(*buf); + UINT32DECODE(newbuf, stored_nalloc); +@@ -295,7 +305,7 @@ H5Z__filter_szip(unsigned flags, size_t cd_nelmts, const unsigned cd_values[], s + + /* Decompress the buffer */ + size_out = nalloc; +- if (SZ_BufftoBuffDecompress(outbuf, &size_out, newbuf, nbytes - 4, &sz_param) != SZ_OK) ++ if (SZ_BufftoBuffDecompress(outbuf, &size_out, newbuf, nbytes - SZIP_HEADER_LEN, &sz_param) != SZ_OK) + HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, 0, "szip_filter: decompression failed"); + assert(size_out == nalloc); + +@@ -313,7 +323,7 @@ H5Z__filter_szip(unsigned flags, size_t cd_nelmts, const unsigned cd_values[], s + unsigned char *dst = NULL; /* Temporary pointer to new output buffer */ + + /* Allocate space for the compressed buffer & header (assume data won't get bigger) */ +- if (NULL == (dst = outbuf = (unsigned char *)H5MM_malloc(nbytes + 4))) ++ if (NULL == (dst = outbuf = (unsigned char *)H5MM_malloc(nbytes + SZIP_HEADER_LEN))) + HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, 0, "unable to allocate szip destination buffer"); + + /* Encode the uncompressed length */ +@@ -332,8 +342,8 @@ H5Z__filter_szip(unsigned flags, size_t cd_nelmts, const unsigned cd_values[], s + /* Set return values */ + *buf = outbuf; + outbuf = NULL; +- *buf_size = nbytes + 4; +- ret_value = size_out + 4; ++ *buf_size = nbytes + SZIP_HEADER_LEN; ++ ret_value = size_out + SZIP_HEADER_LEN; + } + + done:
meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb +1 -0
@@ -25,6 +25,7 @@ SRC_URI = "https://support.hdfgroup.org/releases/hdf5/v2_0/v2_0_0/downloads/${BP file://CVE-2026-19026-CVE-2026-19027-CVE-2026-19028.patch \ file://CVE-2026-19023-CVE-2026-19024.patch \ file://CVE-2026-120689.patch \ + file://CVE-2026-120754-CVE-2026-120755.patch \ " SRC_URI[sha256sum] = "f4c2edc5668fb846627182708dbe1e16c60c467e63177a75b0b9f12c19d7efed"
PATCH 25/64 hdf5: patch CVE-2026-120756
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Details:
https://nvd.nist.gov/vuln/detail/cve-2026-120756
--- .../hdf5/files/CVE-2026-120756.patch | 45 +++++++++++++++++++ meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb | 1 + 2 files changed, 46 insertions(+) create mode 100644 meta-oe/recipes-support/hdf5/files/CVE-2026-120756.patch
meta-oe/recipes-support/hdf5/files/CVE-2026-120756.patch new file +45 -0
@@ -0,0 +1,45 @@ +From 43855883c1ea10a072b7e7cf2dbc5a29ab411a8f Mon Sep 17 00:00:00 2001 +From: Nayyar <[email protected]> +Date: Sat, 12 Sep 2026 16:37:49 +0530 +Subject: [PATCH] check object header message size after decoding its header + (#6589) + +(cherry picked from commit 10f1af5528168c5a71a58eba0b486e0677f3aaa3) + +CVE: CVE-2026-120756 +Upstream-Status: Backport [https://github.com/HDFGroup/hdf5/commit/10f1af5528168c5a71a58eba0b486e0677f3aaa3] + +Dropped changes to the test and CHANGELOG file. +Signed-off-by: Ankur Tyagi <[email protected]> +--- + src/H5Ocache.c | 10 +++++++--- + 1 file changed, 7 insertions(+), 3 deletions(-) + +diff --git a/src/H5Ocache.c b/src/H5Ocache.c +index 8f0928f290e..9dc6a2e21bb 100644 +--- a/src/H5Ocache.c ++++ b/src/H5Ocache.c +@@ -1270,9 +1270,6 @@ H5O__chunk_deserialize(H5O_t *oh, haddr_t addr, size_t chunk_size, const uint8_t + if (mesg_size != H5O_ALIGN_OH(oh, mesg_size)) + HGOTO_ERROR(H5E_OHDR, H5E_CANTLOAD, FAIL, "message not aligned"); + +- if (H5_IS_BUFFER_OVERFLOW(chunk_image, mesg_size, p_end)) +- HGOTO_ERROR(H5E_OHDR, H5E_BADVALUE, FAIL, "message size exceeds buffer end"); +- + /* Message flags */ + if (H5_IS_BUFFER_OVERFLOW(chunk_image, 1, p_end)) + HGOTO_ERROR(H5E_OHDR, H5E_OVERFLOW, FAIL, "ran off end of input buffer while decoding"); +@@ -1305,6 +1302,13 @@ H5O__chunk_deserialize(H5O_t *oh, haddr_t addr, size_t chunk_size, const uint8_t + } + } + ++ /* The message body starts after the message header, so its size can ++ * only be checked against the buffer once the whole header has been ++ * decoded ++ */ ++ if (H5_IS_BUFFER_OVERFLOW(chunk_image, mesg_size, p_end)) ++ HGOTO_ERROR(H5E_OHDR, H5E_BADVALUE, FAIL, "message size exceeds buffer end"); ++ + /* Increment count of null messages */ + if (H5O_NULL_ID == id) + nullcnt++;
meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb +1 -0
@@ -26,6 +26,7 @@ SRC_URI = "https://support.hdfgroup.org/releases/hdf5/v2_0/v2_0_0/downloads/${BP file://CVE-2026-19023-CVE-2026-19024.patch \ file://CVE-2026-120689.patch \ file://CVE-2026-120754-CVE-2026-120755.patch \ + file://CVE-2026-120756.patch \ " SRC_URI[sha256sum] = "f4c2edc5668fb846627182708dbe1e16c60c467e63177a75b0b9f12c19d7efed"
PATCH 26/64 hdf5: patch CVE-2026-120757
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Details:
https://nvd.nist.gov/vuln/detail/cve-2026-120757
--- .../hdf5/files/CVE-2026-120757.patch | 63 +++++++++++++++++++ meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb | 1 + 2 files changed, 64 insertions(+) create mode 100644 meta-oe/recipes-support/hdf5/files/CVE-2026-120757.patch
meta-oe/recipes-support/hdf5/files/CVE-2026-120757.patch new file +63 -0
@@ -0,0 +1,63 @@ +From fa4c737d41c1c86638525a290b5576c8966090d0 Mon Sep 17 00:00:00 2001 +From: Nayyar <[email protected]> +Date: Thu, 8 Oct 2026 18:57:14 +0530 +Subject: [PATCH] reject malformed external link data in H5L__extern_traverse + (#6708) + +* validate external link data before parsing in traversal + +(cherry picked from commit 8117f4c75fdfb5e759ad73ce62d7ef4584130acd) + +CVE: CVE-2026-120757 +Upstream-Status: Backport [https://github.com/HDFGroup/hdf5/commit/8117f4c75fdfb5e759ad73ce62d7ef4584130acd] + +Dropped changes to the test and CHANGELOG file. + +Signed-off-by: Ankur Tyagi <[email protected]> +--- + src/H5Lexternal.c | 18 ++++++++++++++++-- + 1 file changed, 16 insertions(+), 2 deletions(-) + +diff --git a/src/H5Lexternal.c b/src/H5Lexternal.c +index 793825d1c3d..5f874d53177 100644 +--- a/src/H5Lexternal.c ++++ b/src/H5Lexternal.c +@@ -93,7 +93,7 @@ static const H5L_class_t H5L_EXTERN_LINK_CLASS[1] = {{ + */ + static hid_t + H5L__extern_traverse(const char H5_ATTR_UNUSED *link_name, hid_t cur_group, const void *_udata, +- size_t H5_ATTR_UNUSED udata_size, hid_t lapl_id, hid_t H5_ATTR_UNUSED dxpl_id) ++ size_t udata_size, hid_t lapl_id, hid_t H5_ATTR_UNUSED dxpl_id) + { + H5P_genplist_t *plist; /* Property list pointer */ + H5G_loc_t root_loc; /* Location of root group in external file */ +@@ -121,6 +121,18 @@ H5L__extern_traverse(const char H5_ATTR_UNUSED *link_name, hid_t cur_group, cons + /* Sanity checks */ + assert(p); + ++ /* The udata holds a version/flags byte followed by two NULL-terminated ++ * strings (file name and object path). The strings are located below with ++ * strlen(), so validate the buffer against udata_size first: it must have ++ * room for both strings and end on a NULL terminator. A malformed link ++ * from a corrupted file would otherwise read past the udata buffer. This ++ * matches the checks in H5Lunpack_elink_val(). ++ */ ++ if (udata_size <= 2) ++ HGOTO_ERROR(H5E_LINK, H5E_CANTDECODE, H5I_INVALID_HID, "external link data too small"); ++ if (p[udata_size - 1] != '\0') ++ HGOTO_ERROR(H5E_LINK, H5E_CANTDECODE, H5I_INVALID_HID, "external link data is not NULL-terminated"); ++ + /* Check external link version & flags */ + if (((*p >> 4) & 0x0F) > H5L_EXT_VERSION) + HGOTO_ERROR(H5E_LINK, H5E_CANTDECODE, H5I_INVALID_HID, "bad version number for external link"); +@@ -131,7 +143,9 @@ H5L__extern_traverse(const char H5_ATTR_UNUSED *link_name, hid_t cur_group, cons + /* Gather some information from the external link's user data */ + file_name = (const char *)p; + fname_len = strlen(file_name); +- obj_name = (const char *)p + fname_len + 1; ++ if ((fname_len + 1) >= (udata_size - 1)) ++ HGOTO_ERROR(H5E_LINK, H5E_CANTDECODE, H5I_INVALID_HID, "external link data has no object path"); ++ obj_name = (const char *)p + fname_len + 1; + + /* Get the plist structure */ + if (NULL == (plist = H5P_object_verify(lapl_id, H5P_LINK_ACCESS, true)))
meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb +1 -0
@@ -27,6 +27,7 @@ SRC_URI = "https://support.hdfgroup.org/releases/hdf5/v2_0/v2_0_0/downloads/${BP file://CVE-2026-120689.patch \ file://CVE-2026-120754-CVE-2026-120755.patch \ file://CVE-2026-120756.patch \ + file://CVE-2026-120757.patch \ " SRC_URI[sha256sum] = "f4c2edc5668fb846627182708dbe1e16c60c467e63177a75b0b9f12c19d7efed"
PATCH 27/64 hdf5: patch CVE-2026-120758
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Details:
https://nvd.nist.gov/vuln/detail/cve-2026-120758
--- .../hdf5/files/CVE-2026-120758.patch | 143 ++++++++++++++++++ meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb | 1 + 2 files changed, 144 insertions(+) create mode 100644 meta-oe/recipes-support/hdf5/files/CVE-2026-120758.patch
meta-oe/recipes-support/hdf5/files/CVE-2026-120758.patch new file +143 -0
@@ -0,0 +1,143 @@ +From 277a6bbfdb8e852b7bbd08ae002907fc559e0194 Mon Sep 17 00:00:00 2001 +From: tbeu <[email protected]> +Date: Sat, 3 Oct 2026 07:43:53 +0200 +Subject: [PATCH] Fix NULL pointer dereferences in H5HL_protect and + H5HL_unprotect (#6377) + +* Fix NULL pointer dereferences in H5HL_protect and H5HL_unprotect + +When reading corrupted HDF5 files, H5HL_protect can encounter a heap +where prfx->heap is NULL or heap->dblk_image is NULL. Similarly, +H5HL_unprotect can encounter a heap where heap->prfx or heap->dblk has +been set to NULL by H5HL__prfx_dest during cache eviction of corrupted +entries. In both cases, the code proceeded to dereference NULL pointers, +causing a segfault (found by OSS-Fuzz via matio). + +Replace the assert in H5HL_unprotect with proper NULL checks and +HGOTO_ERROR, and add equivalent guards in H5HL_protect, so corrupted +files are rejected gracefully instead of crashing. + +* Address review: drop speculative H5HL_protect NULL checks, add regression test + changelog + +- Remove the NULL checks in H5HL_protect for prfx->heap and heap->dblk_image. + prfx->heap is set in H5HL__prfx_new and only cleared in H5HL__prfx_dest (which + frees the prefix in the same call), so the check is unreachable and could leak + prfx via the done block. heap->dblk_image is NULL by design whenever the data + block is not contiguous with the prefix, so that check was a false positive. +- Keep the H5HL_unprotect NULL checks for heap->prfx and heap->dblk, which are the + actual fix for the reported crash (OSS-Fuzz 504827191). +- Add a regression test (corrupt_heap_unprotect) in test/lheap.c using the + minimized fuzzer file heap_corrupt_prfx.h5, asserting the corrupted file fails + gracefully instead of crashing in H5HL_unprotect. +- Document the fix in release_docs/CHANGELOG.md. + +* Improve lheap regression test for H5HL_unprotect NULL deref + +Replace the file-based traversal (which does not deterministically reach +the cache-eviction path that nulls heap->prfx) with a white-box check that +protects a local heap, simulates the corrupted/evicted condition by nulling +the heap's prfx/dblk pointers, and verifies H5HL_unprotect() returns an +error instead of dereferencing NULL. Keep a best-effort open/traverse of the +OSS-Fuzz minimized file (issue 504827191) as a smoke test. + +Verified: without the fix the test aborts (H5AC_unpin_entry(NULL)); with the +fix it passes. + +* Improve lheap regression test to consider review comments + +* Fix formatting + +* test: improve lheap regression test for reviewer comments + +- Use H5L_info2_t in visitor (matches H5L_iterate2_t signature) +- Use H5O_info2_t with H5Oget_info_by_name3 +- Replicate matio's exact traversal: H5Literate2 + H5Gopen2/H5Dopen2 + + H5Lvisit2 recursion, H5Aiterate2 attribute reads, skip #refs#/#subsystem# +- Keep white-box deterministic NULL-pointer guard (fuzzer file does not + deterministically crash via public API alone; original crash required + matio fuzzer's specific cache-pressure environment) +- Add CORRUPT_HEAP_TESTFILE define back for white-box test + +* Fix formatting + +* Reject a local heap unprotect when its pinned cache entry is gone + +H5HL_unprotect() now reports an error instead of dereferencing NULL when the +cache entry that H5HL_protect() pinned is no longer linked to the heap, and it +checks for that before decrementing the protect count so a rejected call leaves +the heap unchanged. The regression test as written couldn't fail, since its cleanup +label was after passed and every failure path still returned 0 (success). +It also only ever built single-cache-object heaps, and didn't reach the branch the crash +came from. It now grows a heap into a separate data block to cover both +branches and uses the standard error reporting. + +--------- + +Co-authored-by: Matthew Larson <[email protected]> +Co-authored-by: Matt L <[email protected]> +Co-authored-by: Larry Knox <[email protected]> + +CVE: CVE-2026-120758 +Upstream-Status: Backport [https://github.com/HDFGroup/hdf5/commit/91fc37c3325264e67699408e3a190fe4f329bf85] + +Dropped changes to the test and CHANGELOG file. + +Signed-off-by: Ankur Tyagi <[email protected]> +--- + src/H5HL.c | 34 +++++++++++++++++++++------------- + 1 file changed, 21 insertions(+), 13 deletions(-) + +diff --git a/src/H5HL.c b/src/H5HL.c +index b55b3690617..838426406a9 100644 +--- a/src/H5HL.c ++++ b/src/H5HL.c +@@ -416,28 +416,36 @@ H5HL_unprotect(H5HL_t *heap) + /* Check arguments */ + assert(heap); + +- /* Decrement # of times heap is protected */ +- heap->prots--; +- + /* Check for last unprotection of heap */ +- if (heap->prots == 0) { +- /* Check for separate heap data block */ ++ if (heap->prots == 1) { ++ void *pin_obj; /* Pointer to local heap object to unpin */ ++ ++ /* Get the object that H5HL_protect() pinned. It is unlinked from the ++ * heap when the cache destroys it, which a damaged file can provoke, ++ * so check for it before the protect count is decremented. ++ */ + if (heap->single_cache_obj) { +- /* Mark local heap prefix as evictable again */ +- if (FAIL == H5AC_unpin_entry(heap->prfx)) +- HGOTO_ERROR(H5E_HEAP, H5E_CANTUNPIN, FAIL, "unable to unpin local heap data block"); ++ if (NULL == heap->prfx) ++ HGOTO_ERROR(H5E_HEAP, H5E_CANTUNPIN, FAIL, "local heap prefix is not in the cache"); ++ ++ pin_obj = heap->prfx; + } + else { +- /* Sanity check */ +- assert(heap->dblk); ++ if (NULL == heap->dblk) ++ HGOTO_ERROR(H5E_HEAP, H5E_CANTUNPIN, FAIL, "local heap data block is not in the cache"); + +- /* Mark local heap data block as evictable again */ + /* (data block still pins prefix) */ +- if (FAIL == H5AC_unpin_entry(heap->dblk)) +- HGOTO_ERROR(H5E_HEAP, H5E_CANTUNPIN, FAIL, "unable to unpin local heap data block"); ++ pin_obj = heap->dblk; + } ++ ++ /* Mark local heap object as evictable again */ ++ if (FAIL == H5AC_unpin_entry(pin_obj)) ++ HGOTO_ERROR(H5E_HEAP, H5E_CANTUNPIN, FAIL, "unable to unpin local heap object"); + } + ++ /* Decrement # of times heap is protected */ ++ heap->prots--; ++ + done: + FUNC_LEAVE_NOAPI(ret_value) + } /* end H5HL_unprotect() */
meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb +1 -0
@@ -28,6 +28,7 @@ SRC_URI = "https://support.hdfgroup.org/releases/hdf5/v2_0/v2_0_0/downloads/${BP file://CVE-2026-120754-CVE-2026-120755.patch \ file://CVE-2026-120756.patch \ file://CVE-2026-120757.patch \ + file://CVE-2026-120758.patch \ " SRC_URI[sha256sum] = "f4c2edc5668fb846627182708dbe1e16c60c467e63177a75b0b9f12c19d7efed"
PATCH 28/64 libgphoto2: patch CVE-2026-120451
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Details:
https://nvd.nist.gov/vuln/detail/cve-2026-120451
--- .../gphoto2/libgphoto2/CVE-2026-120451.patch | 43 +++++++++++++++++++ .../gphoto2/libgphoto2_2.5.34.bb | 1 + 2 files changed, 44 insertions(+) create mode 100644 meta-oe/recipes-graphics/gphoto2/libgphoto2/CVE-2026-120451.patch
meta-oe/recipes-graphics/gphoto2/libgphoto2/CVE-2026-120451.patch new file +43 -0
@@ -0,0 +1,43 @@ +From 5924549b4750f0b17369f82e98959b779880400a Mon Sep 17 00:00:00 2001 +From: TheProtagonist07 <[email protected]> +Date: Wed, 28 Oct 2026 18:51:05 +0530 +Subject: [PATCH] jl2005c: reject an allocation table that does not fit the + buffers + +jl2005c_init() computes alloc_table_size from the entry count reported by +the camera and then reads that many bytes into the 0x4020 byte info[] stack +buffer and copies them into priv->table[0x4000]. For nb_entries >= 1022 both +operations write past the end of their destination. + +Return GP_ERROR_CORRUPTED_DATA if the table would not fit. + +Addresses findings 1 and 2 of #1326. + +(cherry picked from commit 6a3393dd996502457ab965432cf0b2035278825e) + +CVE: CVE-2026-120451 +Upstream-Status: Backport [https://github.com/gphoto/libgphoto2/commit/6a3393dd996502457ab965432cf0b2035278825e] +Signed-off-by: Ankur Tyagi <[email protected]> +--- + camlibs/jl2005c/jl2005c.c | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/camlibs/jl2005c/jl2005c.c b/camlibs/jl2005c/jl2005c.c +index c447a2300..12c106acb 100644 +--- a/camlibs/jl2005c/jl2005c.c ++++ b/camlibs/jl2005c/jl2005c.c +@@ -144,6 +144,14 @@ restart: + alloc_table_size = priv->nb_entries * 0x10 + 0x30; + if (alloc_table_size%0x200) + alloc_table_size += 0x200 - (alloc_table_size%0x200); ++ /* nb_entries comes from the camera. The table has to fit into the ++ * local info buffer as well as into priv->table. */ ++ if ((size_t)alloc_table_size > sizeof(info) || ++ (size_t)alloc_table_size - 0x30 > sizeof(priv->table)) { ++ GP_DEBUG("alloc_table_size 0x%x is too large for %d entries\n", ++ alloc_table_size, priv->nb_entries); ++ return GP_ERROR_CORRUPTED_DATA; ++ } + /* However, we have already just now downloaded 0x200 bytes, so + * when downloading the rest of the table we correct for that and + * just download whatever remains of the information block.
meta-oe/recipes-graphics/gphoto2/libgphoto2_2.5.34.bb +1 -0
@@ -12,6 +12,7 @@ DEPENDS = "libtool jpeg virtual/libusb0 libexif zlib libxml2" SRC_URI = "${SOURCEFORGE_MIRROR}/gphoto/${BP}.tar.xz;name=libgphoto2 \ file://40-libgphoto2.rules \ file://0001-configure-Filter-out-buildpaths-from-CC.patch \ + file://CVE-2026-120451.patch \ " SRC_URI[libgphoto2.sha256sum] = "51993f5d9bfb6b4e5925cbbe5883085791bff6f81bcacb8ffe1b783ce76d586a"
PATCH 29/64 libgphoto2: patch CVE-2026-120452
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Details:
https://nvd.nist.gov/vuln/detail/cve-2026-120452
--- .../gphoto2/libgphoto2/CVE-2026-120452.patch | 40 +++++++++++++++++++ .../gphoto2/libgphoto2_2.5.34.bb | 1 + 2 files changed, 41 insertions(+) create mode 100644 meta-oe/recipes-graphics/gphoto2/libgphoto2/CVE-2026-120452.patch
meta-oe/recipes-graphics/gphoto2/libgphoto2/CVE-2026-120452.patch new file +40 -0
@@ -0,0 +1,40 @@ +From 9fe9a565d4755d99255e34384bbb19f2a439b242 Mon Sep 17 00:00:00 2001 +From: TheProtagonist07 <[email protected]> +Date: Wed, 28 Oct 2026 19:19:32 +0530 +Subject: [PATCH] jl2005c: bound thumbnail conversion by the real input length + +jl2005bcd_decompress() picks thumbnail_width/height from a device header +byte and then byte-swaps that many RGB565 samples starting at input+16. +When the device claims a 128x120 thumbnail but the input buffer is smaller, +the loop reads and writes about 30 KB past the heap buffer. + +Reject the conversion with GP_ERROR_CORRUPTED_DATA when the input is too +small. Addresses finding 3 of #1326. + +(cherry picked from commit 30bf7ace6d47cfe1232ea73bde2aceb95aba4bfb) + +CVE: CVE-2026-120452 +Upstream-Status: Backport [https://github.com/gphoto/libgphoto2/commit/30bf7ace6d47cfe1232ea73bde2aceb95aba4bfb] +Signed-off-by: Ankur Tyagi <[email protected]> +--- + camlibs/jl2005c/jl2005bcd_decompress.c | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/camlibs/jl2005c/jl2005bcd_decompress.c b/camlibs/jl2005c/jl2005bcd_decompress.c +index 8c3307fd6..1c8a73c5b 100644 +--- a/camlibs/jl2005c/jl2005bcd_decompress.c ++++ b/camlibs/jl2005c/jl2005bcd_decompress.c +@@ -123,6 +123,13 @@ jl2005bcd_decompress (unsigned char *output, unsigned char *input, + GP_DEBUG("No thumbnail is present!\n"); + return GP_ERROR_NOT_SUPPORTED; + } else { ++ /* thumbnail_width/height come from a device header byte; the ++ * RGB565 payload that follows the 16-byte header must actually ++ * be large enough for that many samples. */ ++ if (inputsize < 16 + 2 * thumbnail_width * thumbnail_height) { ++ GP_DEBUG("thumbnail larger than input\n"); ++ return GP_ERROR_CORRUPTED_DATA; ++ } + out = malloc(thumbnail_width * thumbnail_height * 3); + thumb = (uint16_t *)(input + 16); + for (i = 0; i < thumbnail_width * thumbnail_height;
meta-oe/recipes-graphics/gphoto2/libgphoto2_2.5.34.bb +1 -0
@@ -13,6 +13,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/gphoto/${BP}.tar.xz;name=libgphoto2 \ file://40-libgphoto2.rules \ file://0001-configure-Filter-out-buildpaths-from-CC.patch \ file://CVE-2026-120451.patch \ + file://CVE-2026-120452.patch \ " SRC_URI[libgphoto2.sha256sum] = "51993f5d9bfb6b4e5925cbbe5883085791bff6f81bcacb8ffe1b783ce76d586a"
PATCH 30/64 python3-django: upgrade 5.2.18 -> 5.2.19
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Changelog:
https://docs.djangoproject.com/en/dev/releases/5.2.19/
---
.../{python3-django_5.2.18.bb => python3-django_5.2.19.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-django_5.2.18.bb => python3-django_5.2.19.bb} (61%)meta-python/recipes-devtools/python/python3-django_5.2.19.bb renamed from meta-python/recipes-devtools/python/python3-django_5.2.18.bb +1 -1
@@ -2,4 +2,4 @@ require python3-django.inc inherit python_setuptools_build_meta SRC_URI += "file://0001-fix-test_msgfmt_error_including_non_ascii-test.patch" -SRC_URI[sha256sum] = "461c5dd06d2ea16bd5ca37d3f46e4def1d6b0fe7588c6f4e2119517bb0af8b2d" +SRC_URI[sha256sum] = "ad03d8abc51dbff95ebf34b27123cf0c26a3b62db7ba0cd520783686362533d1"
PATCH 31/64 python3-django: upgrade 6.0.9 -> 6.0.10
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Changelog:
https://docs.djangoproject.com/en/dev/releases/6.0.10/
---
.../{python3-django_6.0.9.bb => python3-django_6.0.10.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-django_6.0.9.bb => python3-django_6.0.10.bb} (75%)meta-python/recipes-devtools/python/python3-django_6.0.10.bb renamed from meta-python/recipes-devtools/python/python3-django_6.0.9.bb +1 -1
@@ -1,7 +1,7 @@ require python3-django.inc inherit python_setuptools_build_meta -SRC_URI[sha256sum] = "8ce037c971f421cfb47d38c097ca233a8f6dd42d9e9501a37e02dd7d08c5cb3f" +SRC_URI[sha256sum] = "6005d030df924f85088454c18bd35dcf082b058aa355ad3df520d8de9aef9f41" # Set DEFAULT_PREFERENCE so that the LTS version of django is built by # default. To build the 6.x branch,
PATCH 32/64 uriparser: upgrade 1.0.2 -> 1.0.3
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Changelog:
https://github.com/uriparser/uriparser/blob/uriparser-1.0.3/ChangeLog
---
.../uriparser/{uriparser_1.0.2.bb => uriparser_1.0.3.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-oe/recipes-support/uriparser/{uriparser_1.0.2.bb => uriparser_1.0.3.bb} (91%)meta-oe/recipes-support/uriparser/uriparser_1.0.3.bb renamed from meta-oe/recipes-support/uriparser/uriparser_1.0.2.bb +1 -1
@@ -10,7 +10,7 @@ LIC_FILES_CHKSUM = "file://src/COPYING;md5=fcc5a53146c2401f4b4f6a3bdf3f0168 \ SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/${BP}/${BP}.tar.gz \ file://run-ptest" -SRC_URI[sha256sum] = "963554c32d40fb6cba5644f1ba63e6dd7a182b2948bd71ee448c532f53b07f1e" +SRC_URI[sha256sum] = "b5014a630e61e085787f760c83675a35ef8e719972b05e8f61ff2f48692b15dc" inherit cmake github-releases ptest
PATCH 33/64 libmikmod: Upgrade 3.3.15 -> 3.3.16
In reply to [email protected]From: Leon Anavi <[email protected]>
Upgrade to release 3.3.16:
- Fix out-of-bounds reads in MTM loader (CVE-2026-111165.)
- Fix out-of-bounds reads in IMF loader (CVE-2026-111166.)
---
.../mikmod/{libmikmod_3.3.15.bb => libmikmod_3.3.16.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-oe/recipes-multimedia/mikmod/{libmikmod_3.3.15.bb => libmikmod_3.3.16.bb} (90%)meta-oe/recipes-multimedia/mikmod/libmikmod_3.3.16.bb renamed from meta-oe/recipes-multimedia/mikmod/libmikmod_3.3.15.bb +1 -1
@@ -8,7 +8,7 @@ DEPENDS = "alsa-lib texinfo" SRC_URI = "\ ${SOURCEFORGE_MIRROR}/project/mikmod/${BPN}/${PV}/${BPN}-${PV}.tar.gz \ " -SRC_URI[sha256sum] = "dc27b338154b8f88dc9e6317196d42c6abc13bf63c4e055257a18d4e38e1afa2" +SRC_URI[sha256sum] = "7b24e41468b0dfe7fae1104ae6a0d7c52e04a65e1851b268c7074e4d06685a53" UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/mikmod/files/libmikmod/" UPSTREAM_CHECK_REGEX = "/(?P<pver>\d+(\.\d+)+)/"
PATCH 34/64 weechat: upgrade 4.10.1 -> 4.10.2
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Changelog:
https://github.com/weechat/weechat/releases/tag/v4.10.2
---
.../weechat/{weechat_4.10.1.bb => weechat_4.10.2.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-networking/recipes-irc/weechat/{weechat_4.10.1.bb => weechat_4.10.2.bb} (95%)meta-networking/recipes-irc/weechat/weechat_4.10.2.bb renamed from meta-networking/recipes-irc/weechat/weechat_4.10.1.bb +1 -1
@@ -8,7 +8,7 @@ DEPENDS = "zlib libgcrypt gnutls curl aspell zstd cjson gettext-native" SRC_URI = "https://weechat.org/files/src/weechat-${PV}.tar.xz" -SRC_URI[sha256sum] = "b8744c6f5dc5543062791f563e0516dbc96a36161e1a03c468b3b7dcc8be5aff" +SRC_URI[sha256sum] = "6fcd05f350c808a4206d6951af36a9eec11b145b6a1a2a8a2b29dd3502e07022" inherit cmake pkgconfig python3targetconfig
PATCH 35/64 libopenmpt: upgrade 0.8.9 -> 0.8.10
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Changelog:
https://lib.openmpt.org/libopenmpt/2026/10/31/security-updates-0.8.10-0.7.22-0.6.31/
---
.../libopenmpt/{libopenmpt_0.8.9.bb => libopenmpt_0.8.10.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-multimedia/recipes-multimedia/libopenmpt/{libopenmpt_0.8.9.bb => libopenmpt_0.8.10.bb} (97%)meta-multimedia/recipes-multimedia/libopenmpt/libopenmpt_0.8.10.bb renamed from meta-multimedia/recipes-multimedia/libopenmpt/libopenmpt_0.8.9.bb +1 -1
@@ -14,7 +14,7 @@ DEPENDS = "virtual/libiconv" SRC_URI = "https://lib.openmpt.org/files/libopenmpt/src/libopenmpt-${PV}+release.autotools.tar.gz \ file://run-ptest \ " -SRC_URI[sha256sum] = "d7ce84fd05d686c4bcf66af40eae857afa371442db60eeda3f874bd6cf6fc318" +SRC_URI[sha256sum] = "976d259288c40cd285771f77d09eff3d02514511d5677ecfcfb53be5013317e2" UPSTREAM_CHECK_REGEX = "${BPN}-(?P<pver>\d+(\.\d+)+)\+release\.autotools\.tar\.gz"
PATCH 36/64 mctp: upgrade 2.6.1 -> 2.6.2
In reply to [email protected]From: James Lee <[email protected]>
mctp 2.6.2 is a bugfix release that corrects mctpd's dbus policy file. Users need access to the org.freedesktop.DBus.Properties interface to view the properties of the objects managed by mctpd. There is a misspelling in the v2.6.1 policy file that prevents this.
Bump mctp and mctpd to version 2.6.2 to correct this.
Changelog:
https://github.com/CodeConstruct/mctp/blob/v2.6.2/CHANGELOG.md
---
meta-networking/recipes-support/mctp/mctp.inc | 2 +-
.../recipes-support/mctp/{mctp_2.6.1.bb => mctp_2.6.2.bb} | 0
.../recipes-support/mctp/{mctpd_2.6.1.bb => mctpd_2.6.2.bb} | 0
3 files changed, 1 insertion(+), 1 deletion(-)
rename meta-networking/recipes-support/mctp/{mctp_2.6.1.bb => mctp_2.6.2.bb} (100%)
rename meta-networking/recipes-support/mctp/{mctpd_2.6.1.bb => mctpd_2.6.2.bb} (100%)meta-networking/recipes-support/mctp/mctp.inc +1 -1
@@ -4,7 +4,7 @@ LICENSE = "GPL-2.0-only" LIC_FILES_CHKSUM = "file://LICENSE;md5=4cc91856b08b094b4f406a29dc61db21" SRC_URI = "git://github.com/CodeConstruct/mctp;branch=stable/2.6.x;protocol=https;tag=v${PV}" -SRCREV = "ea1dfa9e59681c42d02ed3bf91cb150161481403" +SRCREV = "96a3d47ae30df7bd47fa57cd88f69d5317d68ef0" inherit meson pkgconfig
meta-networking/recipes-support/mctp/mctp_2.6.2.bb renamed from meta-networking/recipes-support/mctp/mctp_2.6.1.bb +0 -0
meta-networking/recipes-support/mctp/mctpd_2.6.2.bb renamed from meta-networking/recipes-support/mctp/mctpd_2.6.1.bb +0 -0
PATCH 37/64 7zip: upgrade 26.05 -> 26.06
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Changelog:
https://github.com/ip7z/7zip/releases/tag/26.06
---
meta-oe/recipes-extended/7zip/{7zip_26.05.bb => 7zip_26.06.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-oe/recipes-extended/7zip/{7zip_26.05.bb => 7zip_26.06.bb} (98%)meta-oe/recipes-extended/7zip/7zip_26.06.bb renamed from meta-oe/recipes-extended/7zip/7zip_26.05.bb +1 -1
@@ -12,7 +12,7 @@ SRC_URI = "git://github.com/ip7z/7zip.git;protocol=https;branch=main;tag=${PV} \ file://0001-Remove-treating-warning-as-errors.patch \ file://7z_wrapper.sh \ " -SRCREV = "b88c6bc09339de32f7d18bbab900686b244f42ba" +SRCREV = "d3296e39e1f1f92c7b41c0c3848e65640428d42d" UPSTREAM_CHECK_URI = "https://github.com/ip7z/7zip/releases/latest"
PATCH 38/64 apitrace: patch CVE-2026-126050
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Details:
https://nvd.nist.gov/vuln/detail/cve-2026-126050
--- .../apitrace/apitrace/CVE-2026-126050.patch | 39 +++++++++++++++++++ .../apitrace/apitrace_14.0.bb | 1 + 2 files changed, 40 insertions(+) create mode 100644 meta-oe/recipes-devtools/apitrace/apitrace/CVE-2026-126050.patch
meta-oe/recipes-devtools/apitrace/apitrace/CVE-2026-126050.patch new file +39 -0
@@ -0,0 +1,39 @@ +From a7c7db06b56f22235eeea2da608ef84dd401f3b6 Mon Sep 17 00:00:00 2001 +From: Deus Rex research team <[email protected]> +Date: Tue, 10 Nov 2026 13:05:32 +0000 +Subject: [PATCH] trace: Fix heap out-of-bounds write in + SnappyFile::flushReadCache(). + +The Snappy trace reader takes each chunk's compressed length from a +4-byte field in the file and reads that many bytes into +m_compressedCache, a heap buffer allocated once with a fixed size of +snappy::MaxCompressedLength(1 MiB) = 1223370 bytes. The length is never +compared with that size, so a .trace file that declares and supplies a +longer chunk makes the read write past the end of the buffer. + +(cherry picked from commit 3890c5a448addfd75ccbe1bd09e3075de6fb3395) +CVE: CVE-2026-126050.patch +Upstream-Status: Backport [https://github.com/apitrace/apitrace/commit/3890c5a448addfd75ccbe1bd09e3075de6fb3395] +Signed-off-by: Ankur Tyagi <[email protected]> +--- + lib/trace/trace_file_snappy.cpp | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/lib/trace/trace_file_snappy.cpp b/lib/trace/trace_file_snappy.cpp +index 5b60ec9d..9b0a681d 100644 +--- a/lib/trace/trace_file_snappy.cpp ++++ b/lib/trace/trace_file_snappy.cpp +@@ -224,6 +224,13 @@ void SnappyFile::flushReadCache(size_t skipLength) + return; + } + ++ if (compressedLength > snappy::MaxCompressedLength(SNAPPY_CHUNK_SIZE)) { ++ std::cerr << "error: invalid compressed chunk length in trace\n"; ++ m_stream.setstate(std::ios_base::failbit); ++ createCache(0); ++ return; ++ } ++ + m_stream.read((char*)m_compressedCache, compressedLength); + if (m_stream.fail()) { + std::cerr << "warning: unexpected end of file while reading trace\n";
meta-oe/recipes-devtools/apitrace/apitrace_14.0.bb +1 -0
@@ -8,6 +8,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=aeb969185a143c3c25130bc2c3ef9a50 \ SRCREV = "18cfd388ac47a9e00978b34d6c20341f3e2cdb56" SRC_URI = "gitsm://github.com/${BPN}/${BPN}.git;branch=master;protocol=https;tag=${PV} \ file://0001-zstd-disable-the-x86-64-BMI2-assembly-fast-loops.patch \ + file://CVE-2026-126050.patch \ " DEPENDS += "zlib libpng python3-native"
PATCH 39/64 cockpit: mark CVE-2024-2947 fixed
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Commit[1] also identified by Debian[2]
Details:
https://nvd.nist.gov/vuln/detail/cve-2024-2947
[1]https://github.com/cockpit-project/cockpit/commit/9c4cc9b6df632082538b53bdc8ee9ec1c5cad4da [2]https://security-tracker.debian.org/tracker/CVE-2024-2947
--- meta-webserver/recipes-webadmin/cockpit/cockpit_366.1.bb | 1 + 1 file changed, 1 insertion(+)
meta-webserver/recipes-webadmin/cockpit/cockpit_366.1.bb +1 -0
@@ -202,3 +202,4 @@ do_install:append() { } CVE_PRODUCT = "cockpit-project:cockpit" +CVE_STATUS[CVE-2024-2947] = "fixed-version: fixed since v314"
PATCH 40/64 brotli: set CVE_PRODUCT to "google:brotli"
In reply to [email protected]From: Ankur Tyagi <[email protected]>
cve-check class is setting default CVE_PRODUCT to 'brotli' which ignores the CVEs from NVD Database.
Reference:
CVE-2026-111497
https://nvd.nist.gov/vuln/detail/cve-2026-111497
--- meta-oe/recipes-extended/brotli/brotli_1.2.1.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-oe/recipes-extended/brotli/brotli_1.2.1.bb +2 -0
@@ -20,3 +20,5 @@ do_install:append () { } BBCLASSEXTEND = "native nativesdk" + +CVE_PRODUCT = "google:brotli"
PATCH 41/64 ettercap: patch CVEs CVE-2026-125400 - CVE-2026-125406
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Also backport commits[1][2][3] to cherry pick commit identified by NVD.
Details:
https://nvd.nist.gov/vuln/detail/cve-2026-125400
[1]https://github.com/Ettercap/ettercap/commit/593a11ff49e61293fcf4ed24f8b017df0aeac6fd [2]https://github.com/Ettercap/ettercap/commit/feeae6fa366e01a3dd9f1857ec6aae847b2ae00c [3]https://github.com/Ettercap/ettercap/commit/ffd9e06c3cdab9c056f7e729b5083ed81126315e
--- .../ettercap/ettercap_0.8.4.1.bb | 4 + .../ettercap/files/CVE-2026-125400-06_1.patch | 121 +++ .../ettercap/files/CVE-2026-125400-06_2.patch | 149 ++++ .../ettercap/files/CVE-2026-125400-06_3.patch | 92 ++ .../ettercap/files/CVE-2026-125400-06_4.patch | 807 ++++++++++++++++++ 5 files changed, 1173 insertions(+) create mode 100644 meta-networking/recipes-support/ettercap/files/CVE-2026-125400-06_1.patch create mode 100644 meta-networking/recipes-support/ettercap/files/CVE-2026-125400-06_2.patch create mode 100644 meta-networking/recipes-support/ettercap/files/CVE-2026-125400-06_3.patch create mode 100644 meta-networking/recipes-support/ettercap/files/CVE-2026-125400-06_4.patch
meta-networking/recipes-support/ettercap/ettercap_0.8.4.1.bb +4 -0
@@ -23,6 +23,10 @@ RDEPENDS:${PN} += "bash ethtool libgcc" SRC_URI = "gitsm://github.com/Ettercap/ettercap;branch=master;protocol=https;tag=v${PV} \ file://0001-ec.h-do-not-strip-a-pre-existing-_GNU_SOURCE-define.patch \ + file://CVE-2026-125400-06_1.patch \ + file://CVE-2026-125400-06_2.patch \ + file://CVE-2026-125400-06_3.patch \ + file://CVE-2026-125400-06_4.patch \ " SRCREV = "0dc8409779f3a09cbfff4434b9a4d7b33480d88d"
meta-networking/recipes-support/ettercap/files/CVE-2026-125400-06_1.patch new file +121 -0
121 lines not on this page · raw message
meta-networking/recipes-support/ettercap/files/CVE-2026-125400-06_2.patch new file +149 -0
149 lines not on this page · raw message
meta-networking/recipes-support/ettercap/files/CVE-2026-125400-06_3.patch new file +92 -0
92 lines not on this page · raw message
meta-networking/recipes-support/ettercap/files/CVE-2026-125400-06_4.patch new file +807 -0
807 lines not on this page · raw message
PATCH 42/64 tinyproxy: patch CVE-2026-125371
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Details:
https://nvd.nist.gov/vuln/detail/cve-2026-125371
--- .../tinyproxy/tinyproxy/CVE-2026-125371.patch | 70 +++++++++++++++++++ .../tinyproxy/tinyproxy_1.11.3.bb | 1 + 2 files changed, 71 insertions(+) create mode 100644 meta-networking/recipes-support/tinyproxy/tinyproxy/CVE-2026-125371.patch
meta-networking/recipes-support/tinyproxy/tinyproxy/CVE-2026-125371.patch new file +70 -0
@@ -0,0 +1,70 @@ +From 8c8463fb1a0bf7db82d3dfc6f363d5b339e96cd3 Mon Sep 17 00:00:00 2001 +From: rofl0r <[email protected]> +Date: Tue, 15 Sep 2026 06:42:05 +0000 +Subject: [PATCH] acl: use hostspec parser to disallow suffix hostname matches + +the existing ad-hoc parsing in acl.c allowed an attacker to +use e.g. an "untrusted.net" domain name to access a reachable +tinyproxy instance if it had an allow list entry for "trusted.net". + +exploiting it would require that the attacker has prior knowledge +of the instance's configuration or is damn good at guessing and +well-budgeted to register lots of potentially matching domains. + +fix by re-using the existing hardened hostspec parser. + +closes #627 + +(cherry picked from commit 3991ac8f98c6a9f05b3265018b812dbf2ca92c28) +CVE: CVE-2026-125371 +Upstream-Status: Backport [https://github.com/tinyproxy/tinyproxy/commit/3991ac8f98c6a9f05b3265018b812dbf2ca92c28] +Signed-off-by: Ankur Tyagi <[email protected]> +--- + src/acl.c | 25 +++++++++---------------- + 1 file changed, 9 insertions(+), 16 deletions(-) + +diff --git a/src/acl.c b/src/acl.c +index 2d141ba..db526db 100644 +--- a/src/acl.c ++++ b/src/acl.c +@@ -105,7 +105,6 @@ acl_string_processing (struct acl_s *acl, const char *ip_address, + { + int match; + struct addrinfo hints, *res, *ressave; +- size_t test_length, match_length; + char ipbuf[512]; + + assert (acl && acl->h.type == HST_STRING); +@@ -153,23 +152,17 @@ STRING_TEST: + return -1; + } + +- test_length = strlen (string_addr); +- match_length = strlen (acl->h.address.string); +- + /* +- * If the string length is shorter than AC string, return a -1 so +- * that the "driver" will skip onto the next control in the list. ++ * compare the reverse-resolved client hostname against the ACL ++ * entry, using the shared hostspec matcher so that hostname ++ * entries are matched at label boundaries: plain entries match ++ * the whole hostname exactly, and leading-dot entries match the ++ * apex host plus every subdomain below it. This prevents ++ * suffix-collision bypasses, e.g. "Allow trusted.net" must not ++ * admit "untrusted.net" (GH issue #627). + */ +- if (test_length < match_length) +- return -1; +- +- if (strcasecmp +- (string_addr + (test_length - match_length), +- acl->h.address.string) == 0) { +- if (acl->access == ACL_DENY) +- return 0; +- else +- return 1; ++ if (hostspec_match (string_addr, &acl->h) != 0) { ++ return acl->access != ACL_DENY; + } + + /* Indicate that no tests succeeded, so skip to next control. */
meta-networking/recipes-support/tinyproxy/tinyproxy_1.11.3.bb +1 -0
@@ -13,6 +13,7 @@ SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/${PV}/${BP}.tar.gz file://CVE-2026-54387.patch \ file://CVE-2026-55202.patch \ file://CVE-2026-54388.patch \ + file://CVE-2026-125371.patch \ " SRC_URI[sha256sum] = "9bcf46db1a2375ff3e3d27a41982f1efec4706cce8899ff9f33323a8218f7592"
PATCH 43/64 webmin: patch CVE-2026-125391
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Details:
https://nvd.nist.gov/vuln/detail/cve-2026-125391
--- .../webmin/files/CVE-2026-125391.patch | 37 +++++++++++++++++++ .../recipes-webadmin/webmin/webmin_2.653.bb | 1 + 2 files changed, 38 insertions(+) create mode 100644 meta-webserver/recipes-webadmin/webmin/files/CVE-2026-125391.patch
meta-webserver/recipes-webadmin/webmin/files/CVE-2026-125391.patch new file +37 -0
@@ -0,0 +1,37 @@ +From 86791cd2bd1848b3967dc86ae0909493e768db7e Mon Sep 17 00:00:00 2001 +From: Ilia Ross <[email protected]> +Date: Sun, 8 Nov 2026 17:38:12 +0100 +Subject: [PATCH] Fix Samba account option command injection + +(cherry picked from commit 18cab89b1fc74ab7e8b1b8b90bbccbe5aba99154) +CVE: CVE-2026-125391 +Upstream-Status: Backport [https://github.com/webmin/webmin/commit/18cab89b1fc74ab7e8b1b8b90bbccbe5aba99154] +Signed-off-by: Ankur Tyagi <[email protected]> +--- + samba/samba-lib.pl | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/samba/samba-lib.pl b/samba/samba-lib.pl +index bafd03b8b..2bd90ba26 100755 +--- a/samba/samba-lib.pl ++++ b/samba/samba-lib.pl +@@ -656,7 +656,8 @@ if ($has_pdbedit) { + "cd / && $config{'pdbedit'} -a -s $config{'smb_conf'} -t -u ". + quotemeta($user->{'name'}). + ($config{'sync_gid'} ? " -g $config{'sync_gid'}" : ""). +- " -c '[".join("", @opts)."]' $ws <$temp 2>&1"); ++ " -c ".quotemeta("[".join("", @opts)."]"). ++ " $ws <$temp 2>&1"); + $? && &error("$config{'pdbedit'} failed : <pre>$out</pre>"); + } + else { +@@ -700,7 +701,8 @@ if ($has_pdbedit) { + $out = &backquote_logged( + "cd / && $config{'pdbedit'} -r -s $config{'smb_conf'} -u ". + quotemeta($_[0]->{'name'}). +- " -c '[".join("", @opts)."]' 2>&1"); ++ " -c ".quotemeta("[".join("", @opts)."]"). ++ " 2>&1"); + $? && &error("$config{'pdbedit'} failed : <pre>$out</pre>"); + } + }
meta-webserver/recipes-webadmin/webmin/webmin_2.653.bb +1 -0
@@ -17,6 +17,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/webadmin/webmin-${PV}.tar.gz \ file://media-tomb.patch \ file://mysql-config-fix.patch \ file://webmin.service \ + file://CVE-2026-125391.patch \ " SRC_URI[sha256sum] = "9acc680d3d45cee876f36fc8810ce68bb6e44a0365e245a4298a180e0d016696" UPSTREAM_CHECK_URI = "http://www.webmin.com/download.html"
PATCH 44/64 webmin: patch CVE-2026-125392
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Details:
https://nvd.nist.gov/vuln/detail/cve-2026-125392
--- .../webmin/files/CVE-2026-125392.patch | 26 +++++++++++++++++++ .../recipes-webadmin/webmin/webmin_2.653.bb | 1 + 2 files changed, 27 insertions(+) create mode 100644 meta-webserver/recipes-webadmin/webmin/files/CVE-2026-125392.patch
meta-webserver/recipes-webadmin/webmin/files/CVE-2026-125392.patch new file +26 -0
@@ -0,0 +1,26 @@ +From 261c858c1f09b734add7239b835c1085eab3106c Mon Sep 17 00:00:00 2001 +From: Jamie Cameron <[email protected]> +Date: Sun, 8 Nov 2026 17:20:57 -0800 +Subject: [PATCH] Add HTML escaping in all-records mode + +(cherry picked from commit 224cbd91467c98c3147df695fe9abc8149183356) +CVE: CVE-2026-125392 +Upstream-Status: Backport [https://github.com/webmin/webmin/commit/224cbd91467c98c3147df695fe9abc8149183356] +Signed-off-by: Ankur Tyagi <[email protected]> +--- + bind8/edit_recs.cgi | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/bind8/edit_recs.cgi b/bind8/edit_recs.cgi +index 2141c0a12..627143b37 100755 +--- a/bind8/edit_recs.cgi ++++ b/bind8/edit_recs.cgi +@@ -268,7 +268,7 @@ for(my $i=0; $i<@_; $i++) { + if (length($joined) > 80) { + $joined = substr($joined, 0, 80)." ..."; + } +- push(@cols, $joined); ++ push(@cols, &html_escape($joined)); + } + if ($config{'allow_comments'} && $in{'type'} ne "WKS") { + push(@cols, &html_escape($r->{'comment'}));
meta-webserver/recipes-webadmin/webmin/webmin_2.653.bb +1 -0
@@ -18,6 +18,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/webadmin/webmin-${PV}.tar.gz \ file://mysql-config-fix.patch \ file://webmin.service \ file://CVE-2026-125391.patch \ + file://CVE-2026-125392.patch \ " SRC_URI[sha256sum] = "9acc680d3d45cee876f36fc8810ce68bb6e44a0365e245a4298a180e0d016696" UPSTREAM_CHECK_URI = "http://www.webmin.com/download.html"
PATCH 45/64 python3-aiohttp: patch CVE-2026-111063
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Details:
https://nvd.nist.gov/vuln/detail/cve-2026-111063
--- .../python3-aiohttp/CVE-2026-111063.patch | 136 ++++++++++++++++++ .../python/python3-aiohttp_3.14.3.bb | 2 + 2 files changed, 138 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-aiohttp/CVE-2026-111063.patch
meta-python/recipes-devtools/python/python3-aiohttp/CVE-2026-111063.patch new file +136 -0
@@ -0,0 +1,136 @@ +From 2dcbe838baee9938cdf4f0b7a8c682b92913bb76 Mon Sep 17 00:00:00 2001 +From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> +Date: Sun, 27 Sep 2026 21:27:34 +0100 +Subject: [PATCH] [PR #13830/e11d2836 backport][3.14] Fix secure shared cookie + (#13832) + +**This is a backport of PR #13830 as merged into master +(e11d2836203a21bec59095498e578d37801027e7).** + +Co-authored-by: Sam Bull <[email protected]> +(cherry picked from commit 999c356d61e966faffa97b06ab0d0455226d36c5) + +CVE: CVE-2026-111063 +Upstream-Status: Backport [https://github.com/aio-libs/aiohttp/commit/999c356d61e966faffa97b06ab0d0455226d36c5] + +Signed-off-by: Ankur Tyagi <[email protected]> +--- + CHANGES/13830.bugfix.rst | 1 + + aiohttp/cookiejar.py | 3 +++ + docs/client_reference.rst | 3 ++- + docs/spelling_wordlist.txt | 1 + + tests/test_client_functional.py | 9 +++++++-- + tests/test_cookiejar.py | 28 ++++++++++++++++++++++++++++ + 6 files changed, 42 insertions(+), 3 deletions(-) + create mode 100644 CHANGES/13830.bugfix.rst + +diff --git a/CHANGES/13830.bugfix.rst b/CHANGES/13830.bugfix.rst +new file mode 100644 +index 000000000..2a3976924 +--- /dev/null ++++ b/CHANGES/13830.bugfix.rst +@@ -0,0 +1 @@ ++Fixed ``CookieJar.filter_cookies()`` sending shared cookies (cookies without a ``Domain`` attribute) marked ``Secure`` over unencrypted connections -- by :user:`Dreamsorcerer`. +diff --git a/aiohttp/cookiejar.py b/aiohttp/cookiejar.py +index 2b9722470..0d2f3e05c 100644 +--- a/aiohttp/cookiejar.py ++++ b/aiohttp/cookiejar.py +@@ -478,6 +478,9 @@ class CookieJar(AbstractCookieJar): + # Send shared cookie + key = ("", "") + for c in self._cookies[key].values(): ++ if is_not_secure and c["secure"]: ++ continue ++ + # Check cache first + if c.key in self._morsel_cache[key]: + filtered[c.key] = self._morsel_cache[key][c.key] +diff --git a/docs/client_reference.rst b/docs/client_reference.rst +index 734201128..a237fb64b 100644 +--- a/docs/client_reference.rst ++++ b/docs/client_reference.rst +@@ -2544,7 +2544,8 @@ Utilities + :param ~yarl.URL response_url: URL of response, ``None`` for *shared + cookies*. Regular cookies are coupled with server's URL and + are sent only to this server, shared ones are sent in every +- client request. ++ client request (except that shared cookies marked ``Secure`` ++ are only sent over encrypted connections). + + .. method:: filter_cookies(request_url) + +diff --git a/docs/spelling_wordlist.txt b/docs/spelling_wordlist.txt +index 24561f52d..88638bf12 100644 +--- a/docs/spelling_wordlist.txt ++++ b/docs/spelling_wordlist.txt +@@ -369,6 +369,7 @@ un + unawaited + unclosed + undercounting ++unencrypted + unescaped + unhandled + unicode +diff --git a/tests/test_client_functional.py b/tests/test_client_functional.py +index 9470876d0..639ca4606 100644 +--- a/tests/test_client_functional.py ++++ b/tests/test_client_functional.py +@@ -2909,12 +2909,17 @@ async def test_morsel_with_attributes(aiohttp_client) -> None: + c = http.cookies.Morsel() + c.set("test3", "456", "456") + c["httponly"] = True +- c["secure"] = True + c["max-age"] = 1000 + ++ # A Secure shared cookie must be withheld entirely: the test server ++ # is plain http, so it must not reach the handler at all. ++ c2: http.cookies.Morsel[str] = http.cookies.Morsel() ++ c2.set("test4", "789", "789") ++ c2["secure"] = True ++ + app = web.Application() + app.router.add_get("/", handler) +- client = await aiohttp_client(app, cookies={"test2": c}) ++ client = await aiohttp_client(app, cookies={"test2": c, "test4": c2}) + + async with client.get("/") as resp: + assert 200 == resp.status +diff --git a/tests/test_cookiejar.py b/tests/test_cookiejar.py +index 9276ff252..9f279801b 100644 +--- a/tests/test_cookiejar.py ++++ b/tests/test_cookiejar.py +@@ -1206,6 +1206,34 @@ async def test_treat_as_secure_origin() -> None: + assert len(filtered_cookies) == 1 + + ++async def test_treat_as_secure_origin_sends_secure_shared_cookie() -> None: ++ endpoint = URL("http://127.0.0.1/") ++ ++ jar = CookieJar(unsafe=True, treat_as_secure_origin=[endpoint]) ++ jar.update_cookies(SimpleCookie("shared-secure-cookie=first; Secure;")) ++ ++ filtered_cookies = jar.filter_cookies(request_url=endpoint) ++ assert "shared-secure-cookie" in filtered_cookies ++ ++ ++async def test_filter_cookies_with_secure_shared_cookie() -> None: ++ """Secure shared cookies (no Domain attribute) must not be sent over cleartext.""" ++ jar = CookieJar() ++ jar.update_cookies( ++ SimpleCookie("shared-secure-cookie=first; Secure; shared-cookie=second;") ++ ) ++ ++ filtered = jar.filter_cookies(URL("http://example.com/")) ++ assert set(filtered.keys()) == {"shared-cookie"} ++ ++ filtered = jar.filter_cookies(URL("https://example.com/")) ++ assert set(filtered.keys()) == {"shared-cookie", "shared-secure-cookie"} ++ ++ # The morsel cached by the https request must not bypass the Secure check. ++ filtered = jar.filter_cookies(URL("http://example.com/")) ++ assert set(filtered.keys()) == {"shared-cookie"} ++ ++ + async def test_filter_cookies_does_not_leak_memory() -> None: + """Test that filter_cookies doesn't create empty cookie entries. +
meta-python/recipes-devtools/python/python3-aiohttp_3.14.3.bb +2 -0
@@ -6,6 +6,8 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b5e9e27554f71f0f132919037cb967b2" SRC_URI[sha256sum] = "9491196535a88924a60afd5b5f434b5b203b6cc616250878dbdb223a8f7844bc" +SRC_URI += "file://CVE-2026-111063.patch" + CVE_PRODUCT = "aiohttp:aiohttp" CVE_STATUS_GROUPS = "CVE_AIOHTTP_FIX_3_13_4" CVE_AIOHTTP_FIX_3_13_4[status] = "fixed-version: fixed in 3.13.4"
PATCH 46/64 python3-aiohttp: patch CVE-2026-111065
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Details:
https://nvd.nist.gov/vuln/detail/cve-2026-111065
--- .../python3-aiohttp/CVE-2026-111065.patch | 172 ++++++++++++++++++ .../python/python3-aiohttp_3.14.3.bb | 4 +- 2 files changed, 175 insertions(+), 1 deletion(-) create mode 100644 meta-python/recipes-devtools/python/python3-aiohttp/CVE-2026-111065.patch
meta-python/recipes-devtools/python/python3-aiohttp/CVE-2026-111065.patch new file +172 -0
@@ -0,0 +1,172 @@ +From 16a92b236b34f86d3873e29292b78159dd3ff19f Mon Sep 17 00:00:00 2001 +From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> +Date: Wed, 9 Sep 2026 14:43:30 +0100 +Subject: [PATCH] [PR #13677/9e08ba02 backport][3.14] Fix cookie overflow + (#13679) + +**This is a backport of PR #13677 as merged into master +(9e08ba02abe573ce9e4cc541d4e3c3646adb43a7).** + +--------- + +Co-authored-by: Sam Bull <[email protected]> +(cherry picked from commit 9dd8eaf4e31f1237ef2c1574a8c82a739fca5805) + +CVE: CVE-2026-111065 +Upstream-Status: Backport [https://github.com/aio-libs/aiohttp/commit/9dd8eaf4e31f1237ef2c1574a8c82a739fca5805] + +Signed-off-by: Ankur Tyagi <[email protected]> +--- + CHANGES/13677.bugfix.rst | 1 + + aiohttp/client.py | 5 ++++ + aiohttp/cookiejar.py | 10 ++++++- + tests/test_client_functional.py | 46 ++++++++++++++++++++++++++++++++- + tests/test_cookiejar.py | 22 ++++++++++++++++ + 5 files changed, 82 insertions(+), 2 deletions(-) + create mode 100644 CHANGES/13677.bugfix.rst + +diff --git a/CHANGES/13677.bugfix.rst b/CHANGES/13677.bugfix.rst +new file mode 100644 +index 000000000..bea67cba7 +--- /dev/null ++++ b/CHANGES/13677.bugfix.rst +@@ -0,0 +1 @@ ++Fixed a possible ``OverflowError`` on cookies and a connection not being closed properly -- by :user:`Dreamsorcerer`. +diff --git a/aiohttp/client.py b/aiohttp/client.py +index 12f236d6c..df9fbd8c9 100644 +--- a/aiohttp/client.py ++++ b/aiohttp/client.py +@@ -697,6 +697,7 @@ class ClientSession: + + timer = tm.timer() + req: ClientRequest | None = None ++ resp: ClientResponse | None = None + try: + with timer: + # https://www.rfc-editor.org/rfc/rfc9112.html#name-retrying-requests +@@ -1020,6 +1021,10 @@ class ClientSession: + handle.cancel() + handle = None + ++ if resp is not None: ++ # A failure occurred after the response was received. ++ resp.close() ++ + if req is not None and req._body is not None: + await req._body.close() + +diff --git a/aiohttp/cookiejar.py b/aiohttp/cookiejar.py +index 0d2f3e05c..b949cc118 100644 +--- a/aiohttp/cookiejar.py ++++ b/aiohttp/cookiejar.py +@@ -425,7 +425,15 @@ class CookieJar(AbstractCookieJar): + if max_age := cookie["max-age"]: + try: + delta_seconds = int(max_age) +- max_age_expiration = min(time.time() + delta_seconds, self.MAX_TIME) ++ # https://datatracker.ietf.org/doc/html/rfc6265#section-5.2.2 ++ if delta_seconds <= 0: ++ max_age_expiration = 0.0 ++ else: ++ # Cap first to protect against OverflowError on next line. ++ delta_seconds = min(delta_seconds, self.MAX_TIME) ++ max_age_expiration = min( ++ time.time() + delta_seconds, self.MAX_TIME ++ ) + self._expire_cookie(max_age_expiration, domain, path, name) + except ValueError: + cookie["max-age"] = "" +diff --git a/tests/test_client_functional.py b/tests/test_client_functional.py +index 639ca4606..f07104b81 100644 +--- a/tests/test_client_functional.py ++++ b/tests/test_client_functional.py +@@ -15,7 +15,7 @@ import tarfile + import time + import zipfile + import zlib +-from collections.abc import AsyncIterator, Awaitable, Callable ++from collections.abc import AsyncIterator, Awaitable, Callable, Sequence + from contextlib import suppress + from typing import Any, NoReturn + from unittest import mock +@@ -3050,6 +3050,50 @@ async def test_set_cookies_max_age_overflow(aiohttp_client) -> None: + assert int(cookie["max-age"]) == int(overflow) + + ++async def test_connection_released_when_cookie_processing_fails( ++ aiohttp_client: AiohttpClient, ++) -> None: ++ class EvilJar(aiohttp.CookieJar): ++ def update_cookies_from_headers( ++ self, headers: Sequence[str], response_url: URL ++ ) -> None: ++ raise RuntimeError("boom") ++ ++ hold = asyncio.Event() ++ ++ async def hostile(request: web.Request) -> web.StreamResponse: ++ ret = web.StreamResponse() ++ ret.content_length = 2 ++ ret.set_cookie("sid", "x") ++ await ret.prepare(request) ++ await ret.write(b"x") ++ await hold.wait() ++ assert False ++ ++ async def clean(request: web.Request) -> web.Response: ++ return web.Response() ++ ++ app = web.Application() ++ app.router.add_get("/hostile", hostile) ++ app.router.add_get("/clean", clean) ++ connector = aiohttp.TCPConnector(limit=1) ++ client = await aiohttp_client(app, connector=connector, cookie_jar=EvilJar()) ++ ++ try: ++ for _ in range(2): ++ with pytest.raises(RuntimeError, match="boom") as excinfo: ++ await client.get("/hostile") ++ assert not connector._acquired ++ del excinfo ++ ++ # The single connector slot is free again: an unaffected request ++ # succeeds instead of waiting forever for a connection. ++ async with client.get("/clean") as resp: ++ assert resp.status == 200 ++ finally: ++ hold.set() ++ ++ + async def test_request_conn_error() -> None: + client = aiohttp.ClientSession() + with pytest.raises(aiohttp.ClientConnectionError): +diff --git a/tests/test_cookiejar.py b/tests/test_cookiejar.py +index 9f279801b..be6da2a5f 100644 +--- a/tests/test_cookiejar.py ++++ b/tests/test_cookiejar.py +@@ -2069,3 +2069,25 @@ async def test_cookie_jar_unsafe_property() -> None: + + jar_unsafe = CookieJar(unsafe=True) + assert jar_unsafe.unsafe is True ++ ++ ++async def test_update_cookies_max_age_beyond_float_range_is_clamped() -> None: ++ """A hostile Max-Age larger than float max must clamp, not raise OverflowError.""" ++ url = URL("https://example.com/") ++ jar = CookieJar() ++ ++ jar.update_cookies_from_headers([f"sid=x; Max-Age={'9' * 309}"], url) ++ ++ assert "sid" in jar.filter_cookies(url) ++ assert jar._expirations[("example.com", "", "sid")] == CookieJar.MAX_TIME ++ ++ ++async def test_update_cookies_negative_max_age_beyond_float_range_expires() -> None: ++ """A negative Max-Age below float min must expire the cookie, not raise.""" ++ url = URL("https://example.com/") ++ jar = CookieJar() ++ ++ jar.update_cookies_from_headers([f"sid=x; Max-Age=-{'9' * 309}"], url) ++ ++ assert "sid" not in jar.filter_cookies(url) ++ assert len(jar) == 0
meta-python/recipes-devtools/python/python3-aiohttp_3.14.3.bb +3 -1
@@ -6,7 +6,9 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b5e9e27554f71f0f132919037cb967b2" SRC_URI[sha256sum] = "9491196535a88924a60afd5b5f434b5b203b6cc616250878dbdb223a8f7844bc" -SRC_URI += "file://CVE-2026-111063.patch" +SRC_URI += "file://CVE-2026-111063.patch \ + file://CVE-2026-111065.patch \ +" CVE_PRODUCT = "aiohttp:aiohttp" CVE_STATUS_GROUPS = "CVE_AIOHTTP_FIX_3_13_4"
PATCH 47/64 python3-aiohttp: patch CVE-2026-111066
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Details:
https://nvd.nist.gov/vuln/detail/cve-2026-111066
--- .../python3-aiohttp/CVE-2026-111066.patch | 382 ++++++++++++++++++ .../python/python3-aiohttp_3.14.3.bb | 1 + 2 files changed, 383 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-aiohttp/CVE-2026-111066.patch
meta-python/recipes-devtools/python/python3-aiohttp/CVE-2026-111066.patch new file +382 -0
@@ -0,0 +1,382 @@ +From a45985a1dba1aaacad2b12724b450496a6ab0903 Mon Sep 17 00:00:00 2001 +From: Sam Bull <[email protected]> +Date: Tue, 18 Aug 2026 21:54:45 +0100 +Subject: [PATCH] Reduce number of file descriptors needed in multipart + messages (#13426) (#13475) + +(cherry picked from commit c92ed4c48dafd40d5ed4c86587af9e081ac7d971) +(cherry picked from commit 2d94633b7f1b4c1ba07d647b629a8440652b2d09) + +CVE: CVE-2026-111066 +Upstream-Status: Backport [https://github.com/aio-libs/aiohttp/commit/2d94633b7f1b4c1ba07d647b629a8440652b2d09] + +Signed-off-by: Ankur Tyagi <[email protected]> +--- + CHANGES/13426.bugfix.rst | 1 + + aiohttp/web_request.py | 91 ++++++++++++++----- + tests/test_web_functional.py | 166 ++++++++++++++++++++++++++++++++++- + 3 files changed, 234 insertions(+), 24 deletions(-) + create mode 100644 CHANGES/13426.bugfix.rst + +diff --git a/CHANGES/13426.bugfix.rst b/CHANGES/13426.bugfix.rst +new file mode 100644 +index 000000000..8b9ee295f +--- /dev/null ++++ b/CHANGES/13426.bugfix.rst +@@ -0,0 +1 @@ ++Switched multipart handling to use spooled temporary files to reduce number of file descriptors needed -- by :user:`Dreamsorcerer`. +diff --git a/aiohttp/web_request.py b/aiohttp/web_request.py +index ca925e2ac..eaed708eb 100644 +--- a/aiohttp/web_request.py ++++ b/aiohttp/web_request.py +@@ -3,13 +3,13 @@ import datetime + import io + import re + import string +-import tempfile ++import sys + import types + import warnings + from collections.abc import Iterator, Mapping, MutableMapping + from re import Pattern + from types import MappingProxyType +-from typing import TYPE_CHECKING, Any, Final, Optional, TypeVar, cast, overload ++from typing import IO, TYPE_CHECKING, Any, Final, Optional, TypeVar, cast, overload + from urllib.parse import parse_qsl + + import attr +@@ -54,6 +54,30 @@ from .typedefs import ( + from .web_exceptions import HTTPRequestEntityTooLarge, NotAppKeyWarning + from .web_response import StreamResponse + ++if sys.version_info >= (3, 11): ++ from tempfile import SpooledTemporaryFile ++else: ++ import tempfile ++ ++ class SpooledTemporaryFile(tempfile.SpooledTemporaryFile[bytes], io.IOBase): ++ """Make the spooled file satisfy the documented `FileField.file` type. ++ ++ `tempfile.SpooledTemporaryFile` only became an `io.IOBase` subclass in ++ 3.11 (python/cpython#70363), and never grew the three capability ++ predicates before then. Both underlying files (`io.BytesIO` before ++ rollover, a `w+b` temp file after) are readable, writable and seekable. ++ """ ++ ++ def readable(self) -> bool: ++ return True ++ ++ def writable(self) -> bool: ++ return True ++ ++ def seekable(self) -> bool: ++ return True ++ ++ + __all__ = ("BaseRequest", "FileField", "Request") + + +@@ -66,11 +90,18 @@ if TYPE_CHECKING: + _T = TypeVar("_T") + + ++# Multipart file parts are buffered in memory and only spilled to a temporary ++# file once they outgrow this size. A temp file per part would let a body made ++# of many tiny parts exhaust the process's file descriptors; spooling bounds ++# that at ``client_max_size // _FILE_SPOOL_MAX_SIZE`` descriptors per request. ++_FILE_SPOOL_MAX_SIZE: Final[int] = 1024**2 ++ ++ + @attr.s(auto_attribs=True, frozen=True, slots=True) + class FileField: + name: str + filename: str +- file: io.BufferedReader ++ file: IO[bytes] + content_type: str + headers: CIMultiDictProxy[str] + +@@ -754,8 +785,13 @@ class BaseRequest(MutableMapping[str | RequestKey[Any], Any], HeadersMixin): + multipart = await self.multipart() + max_size = self._client_max_size + +- size = 0 ++ payload = self._payload + while (field := await multipart.next()) is not None: ++ # This check is needed for empty payloads, which still add ++ # overhead without entering the loop and the check below. ++ if 0 < max_size < payload.total_bytes: ++ raise HTTPRequestEntityTooLarge(max_size) ++ + field_ct = field.headers.get(hdrs.CONTENT_TYPE) + + if isinstance(field, BodyPartReader): +@@ -767,20 +803,35 @@ class BaseRequest(MutableMapping[str | RequestKey[Any], Any], HeadersMixin): + # present. + # https://tools.ietf.org/html/rfc7578#section-4.4 + if field.filename: +- # store file in temp file +- tmp = await self._loop.run_in_executor( +- None, tempfile.TemporaryFile +- ) ++ tmp = SpooledTemporaryFile(_FILE_SPOOL_MAX_SIZE) ++ # rolled means the temp file now uses the disk, at ++ # which point we want to run in the executor. ++ rolled = False + while chunk := await field.read_chunk(size=DEFAULT_CHUNK_SIZE): ++ # Bounds one part, mid-read. ++ if 0 < max_size < payload.total_bytes: ++ if rolled: ++ await self._loop.run_in_executor(None, tmp.close) ++ else: ++ tmp.close() ++ raise HTTPRequestEntityTooLarge(max_size) + async for decoded_chunk in field.decode_iter(chunk): +- await self._loop.run_in_executor( +- None, tmp.write, decoded_chunk ++ # Update before writing, so we know if next ++ # write is going to hit the disk. ++ rolled = rolled or ( ++ tmp.tell() + len(decoded_chunk) ++ > _FILE_SPOOL_MAX_SIZE + ) +- size += len(decoded_chunk) +- if 0 < max_size < size: +- await self._loop.run_in_executor(None, tmp.close) +- raise HTTPRequestEntityTooLarge(max_size) +- await self._loop.run_in_executor(None, tmp.seek, 0) ++ if rolled: ++ await self._loop.run_in_executor( ++ None, tmp.write, decoded_chunk ++ ) ++ else: ++ tmp.write(decoded_chunk) ++ if rolled: ++ await self._loop.run_in_executor(None, tmp.seek, 0) ++ else: ++ tmp.seek(0) + + if field_ct is None: + field_ct = "application/octet-stream" +@@ -788,7 +839,7 @@ class BaseRequest(MutableMapping[str | RequestKey[Any], Any], HeadersMixin): + ff = FileField( + field.name, + field.filename, +- cast(io.BufferedReader, tmp), ++ tmp, + field_ct, + field.headers, + ) +@@ -797,8 +848,7 @@ class BaseRequest(MutableMapping[str | RequestKey[Any], Any], HeadersMixin): + # deal with ordinary data + raw_data = bytearray() + while chunk := await field.read_chunk(): +- size += len(chunk) +- if 0 < max_size < size: ++ if 0 < max_size < payload.total_bytes: + raise HTTPRequestEntityTooLarge(max_size) + raw_data.extend(chunk) + +@@ -865,10 +915,7 @@ class BaseRequest(MutableMapping[str | RequestKey[Any], Any], HeadersMixin): + if self._post is None or self.content_type != "multipart/form-data": + return + +- # NOTE: Release file descriptors for the +- # NOTE: `tempfile.Temporaryfile`-created `_io.BufferedRandom` +- # NOTE: instances of files sent within multipart request body +- # NOTE: via HTTP POST request. ++ # Release the temp files created within multipart request body. + for file_name, file_field_object in self._post.items(): + if isinstance(file_field_object, FileField): + file_field_object.file.close() +diff --git a/tests/test_web_functional.py b/tests/test_web_functional.py +index d126347aa..78304a72c 100644 +--- a/tests/test_web_functional.py ++++ b/tests/test_web_functional.py +@@ -1,6 +1,8 @@ + import asyncio ++import base64 + import io + import json ++import os + import pathlib + import socket + import sys +@@ -31,6 +33,7 @@ from aiohttp.pytest_plugin import AiohttpClient, AiohttpServer + from aiohttp.streams import StreamReader + from aiohttp.typedefs import Handler + from aiohttp.web_protocol import MAX_MSG_QUEUE_SIZE, RequestHandler ++from aiohttp.web_request import _FILE_SPOOL_MAX_SIZE + + try: + import brotlicffi as brotli +@@ -2072,8 +2075,167 @@ async def test_post_max_client_size_for_file(aiohttp_client) -> None: + await resp.release() + + +-async def test_response_with_bodypart(aiohttp_client) -> None: +- async def handler(request): ++def _multipart_file_parts(count: int, body: bytes = b"") -> bytes: ++ """Raw multipart/form-data body of ``count`` file parts, boundary ``b``.""" ++ return ( ++ b"".join( ++ b'--b\r\nContent-Disposition: form-data; name="f%d"; ' ++ b'filename="x"\r\n\r\n' % index + body + b"\r\n" ++ for index in range(count) ++ ) ++ + b"--b--\r\n" ++ ) ++ ++ ++async def test_post_max_client_size_counts_multipart_headers( ++ aiohttp_client: AiohttpClient, ++) -> None: ++ async def handler(request: web.Request) -> NoReturn: ++ await request.post() ++ assert False ++ ++ app = web.Application(client_max_size=1) ++ app.router.add_post("/", handler) ++ client = await aiohttp_client(app) ++ ++ body = _multipart_file_parts(55) ++ assert len(body) > 1 ++ async with client.post( ++ "/", data=body, headers={CONTENT_TYPE: "multipart/form-data; boundary=b"} ++ ) as resp: ++ assert resp.status == 413 ++ ++ [email protected]( ++ "max_size", ++ (_FILE_SPOOL_MAX_SIZE, 2 * _FILE_SPOOL_MAX_SIZE), ++ ids=("spooled", "rolled-over"), ++) ++async def test_post_max_client_size_within_single_part( ++ aiohttp_client: AiohttpClient, max_size: int ++) -> None: ++ async def handler(request: web.Request) -> NoReturn: ++ await request.post() ++ assert False ++ ++ app = web.Application(client_max_size=max_size) ++ app.router.add_post("/", handler) ++ client = await aiohttp_client(app) ++ ++ # A sole oversized part is never followed by a boundary, so only the ++ # per-chunk check can reject it, and it must do so before buffering. The ++ # larger limit lets the part reach the disk first, so the spool is then ++ # closed off the event loop too. ++ data = FormData() ++ with io.BytesIO(b"x" * (3 * _FILE_SPOOL_MAX_SIZE)) as file_handle: ++ data.add_field("file", file_handle, filename="x.bin") ++ async with client.post("/", data=data) as resp: ++ assert resp.status == 413 ++ ++ [email protected]("filename", (b"", b'; filename="x"'), ids=("field", "file")) ++async def test_post_max_client_size_counts_undecoded_bytes( ++ aiohttp_client: AiohttpClient, filename: bytes ++) -> None: ++ async def handler(request: web.Request) -> NoReturn: ++ await request.post() ++ assert False ++ ++ limit = 64 * 1024 ++ app = web.Application(client_max_size=limit) ++ app.router.add_post("/", handler) ++ client = await aiohttp_client(app) ++ ++ # base64 decodes to exactly the limit but arrives 4/3 larger. The limit is ++ # on the request body, so both kinds of part must reject it alike. ++ encoded = base64.b64encode(b"A" * limit) ++ assert len(encoded) > limit ++ body = ( ++ b'--b\r\nContent-Disposition: form-data; name="f"' + filename + b"\r\n" ++ b"Content-Transfer-Encoding: base64\r\n\r\n" + encoded + b"\r\n--b--\r\n" ++ ) ++ async with client.post( ++ "/", data=body, headers={CONTENT_TYPE: "multipart/form-data; boundary=b"} ++ ) as resp: ++ assert resp.status == 413 ++ ++ [email protected](not os.path.isdir("/dev/fd"), reason="needs /dev/fd to count fds") [email protected]( ++ ("parts", "part_body", "expected_fds"), ++ ( ++ (55, b"payload", 0), ++ (1, b"x" * (_FILE_SPOOL_MAX_SIZE + 1), 1), ++ ), ++ ids=("many-small-parts", "one-oversized-part"), ++) ++async def test_post_file_fields_descriptor_cost( ++ aiohttp_client: AiohttpClient, parts: int, part_body: bytes, expected_fds: int ++) -> None: ++ """Only a part past the spool size may cost a descriptor.""" ++ ++ async def handler(request: web.Request) -> web.Response: ++ before = set(await asyncio.to_thread(os.listdir, "/dev/fd")) ++ data = await request.post() ++ after = set(await asyncio.to_thread(os.listdir, "/dev/fd")) ++ assert len(data) == parts ++ return web.Response(text=str(len(after - before))) ++ ++ app = web.Application(client_max_size=8 * 1024**2) ++ app.router.add_post("/", handler) ++ client = await aiohttp_client(app) ++ ++ with io.BytesIO(_multipart_file_parts(parts, part_body)) as body: ++ async with client.post( ++ "/", ++ data=body, ++ headers={CONTENT_TYPE: "multipart/form-data; boundary=b"}, ++ ) as resp: ++ assert resp.status == 200 ++ assert await resp.text() == str(expected_fds) ++ ++ [email protected]( ++ "size", ++ ( ++ 0, ++ 1, ++ _FILE_SPOOL_MAX_SIZE - 1, ++ _FILE_SPOOL_MAX_SIZE, ++ _FILE_SPOOL_MAX_SIZE + 1, ++ ), ++) ++async def test_post_file_field_spool_rollover( ++ aiohttp_client: AiohttpClient, size: int ++) -> None: ++ """A part is byte-identical either side of the spool/temp-file boundary.""" ++ payload = (b"0123456789abcdef" * (size // 16 + 1))[:size] ++ ++ async def handler(request: web.Request) -> web.Response: ++ field = (await request.post())["file"] ++ assert isinstance(field, aiohttp.web_request.FileField) ++ assert isinstance(field.file, io.IOBase) ++ assert field.file.readable() ++ assert field.file.writable() ++ assert field.file.seekable() ++ content = await asyncio.to_thread(field.file.read) ++ assert len(content) == size ++ assert content == payload ++ return web.Response() ++ ++ app = web.Application(client_max_size=8 * 1024**2) ++ app.router.add_post("/", handler) ++ client = await aiohttp_client(app) ++ ++ data = FormData() ++ with io.BytesIO(payload) as file_handle: ++ data.add_field("file", file_handle, filename="x.bin") ++ async with client.post("/", data=data) as resp: ++ assert resp.status == 200 ++ ++ ++async def test_response_with_bodypart(aiohttp_client: AiohttpClient) -> None: ++ async def handler(request: web.Request) -> web.Response: + reader = await request.multipart() + part = await reader.next() + return web.Response(body=part)
meta-python/recipes-devtools/python/python3-aiohttp_3.14.3.bb +1 -0
@@ -8,6 +8,7 @@ SRC_URI[sha256sum] = "9491196535a88924a60afd5b5f434b5b203b6cc616250878dbdb223a8f SRC_URI += "file://CVE-2026-111063.patch \ file://CVE-2026-111065.patch \ + file://CVE-2026-111066.patch \ " CVE_PRODUCT = "aiohttp:aiohttp"
PATCH 48/64 python3-aiohttp: patch CVE-2026-111748
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Details:
https://nvd.nist.gov/vuln/detail/cve-2026-111748
--- .../python3-aiohttp/CVE-2026-111748.patch | 170 ++++++++++++++++++ .../python/python3-aiohttp_3.14.3.bb | 1 + 2 files changed, 171 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-aiohttp/CVE-2026-111748.patch
meta-python/recipes-devtools/python/python3-aiohttp/CVE-2026-111748.patch new file +170 -0
@@ -0,0 +1,170 @@ +From 75abab9fcf5382fb46947fe9f53142f6aa60abbc Mon Sep 17 00:00:00 2001 +From: Sam Bull <[email protected]> +Date: Sun, 27 Sep 2026 18:11:00 +0100 +Subject: [PATCH] Use protocol scheme for absolute-form requests (#13821) + (#13827) (#13828) + +(cherry picked from commit a921cfd0fec28d5a9e5bf8d6f4372b8fa63c49df) +(cherry picked from commit 93d91e37e7c6035d09e89646b3de737735ed91b5) +(cherry picked from commit 6d4e7b01f9b951aa084a75d7356e907d4ee80411) + +CVE: CVE-2026-111748 +Upstream-Status: Backport [https://github.com/aio-libs/aiohttp/commit/6d4e7b01f9b951aa084a75d7356e907d4ee80411] + +Dropped tests changes during the backport + +Signed-off-by: Ankur Tyagi <[email protected]> +--- + CHANGES/13821.bugfix.rst | 1 + + aiohttp/_cparser.pxd | 3 ++- + aiohttp/_http_parser.pyx | 29 +++++++++++++++++++++++++---- + aiohttp/http_parser.py | 26 ++++++++++++++++++++++---- + aiohttp/web_request.py | 7 ++++++- + 5 files changed, 56 insertions(+), 10 deletions(-) + create mode 100644 CHANGES/13821.bugfix.rst + +diff --git a/CHANGES/13821.bugfix.rst b/CHANGES/13821.bugfix.rst +new file mode 100644 +index 000000000..f35418d2d +--- /dev/null ++++ b/CHANGES/13821.bugfix.rst +@@ -0,0 +1 @@ ++Fixed the web server trusting the scheme of an absolute-form request-target -- by :user:`Dreamsorcerer`. +diff --git a/aiohttp/_cparser.pxd b/aiohttp/_cparser.pxd +index 903f35c45..3a427002d 100644 +--- a/aiohttp/_cparser.pxd ++++ b/aiohttp/_cparser.pxd +@@ -67,7 +67,8 @@ cdef extern from "llhttp.h": + HTTP_RESPONSE + + enum llhttp_method: +- HTTP_CONNECT ++ HTTP_CONNECT, ++ HTTP_OPTIONS + + void llhttp_settings_init(llhttp_settings_t* settings) + void llhttp_init(llhttp_t* parser, llhttp_type type, +diff --git a/aiohttp/_http_parser.pyx b/aiohttp/_http_parser.pyx +index 0fe6084e5..4660a0c90 100644 +--- a/aiohttp/_http_parser.pyx ++++ b/aiohttp/_http_parser.pyx +@@ -722,12 +722,20 @@ cdef class HttpRequestParser(HttpParser): + return + self._path = self._buf.decode('utf-8', 'surrogateescape') + try: +- idx3 = len(self._path) + if self._cparser.method == cparser.HTTP_CONNECT: + # authority-form, + # https://datatracker.ietf.org/doc/html/rfc7230#section-5.3.3 +- self._url = URL.build(authority=self._path, encoded=True) +- elif idx3 > 1 and self._path[0] == '/': ++ try: ++ self._url = URL.build(authority=self._path, encoded=True) ++ host = self._url.raw_host ++ except ValueError: ++ host = None ++ if host is None: ++ raise InvalidURLError( ++ self._path.encode(errors="surrogateescape") ++ .decode("latin1") ++ ) ++ elif self._path[0] == '/': + # origin-form, + # https://datatracker.ietf.org/doc/html/rfc7230#section-5.3.1 + idx1 = self._path.find("?") +@@ -758,10 +766,23 @@ cdef class HttpRequestParser(HttpParser): + fragment=fragment, + encoded=True, + ) ++ elif self._path == '*' and self._cparser.method == cparser.HTTP_OPTIONS: ++ # asterisk-form, ++ self._url = URL(self._path, encoded=True) + else: + # absolute-form for proxy maybe, + # https://datatracker.ietf.org/doc/html/rfc7230#section-5.3.2 +- self._url = URL(self._path, encoded=True) ++ try: ++ self._url = URL(self._path, encoded=True) ++ host = self._url.raw_host ++ except ValueError: ++ host = None ++ # https://www.rfc-editor.org/rfc/rfc9110#section-4.2.1-4 ++ if host is None: ++ raise InvalidURLError( ++ self._path.encode(errors="surrogateescape") ++ .decode("latin1") ++ ) + finally: + PyByteArray_Resize(self._buf, 0) + +diff --git a/aiohttp/http_parser.py b/aiohttp/http_parser.py +index 0c9fd086b..678aee020 100644 +--- a/aiohttp/http_parser.py ++++ b/aiohttp/http_parser.py +@@ -685,7 +685,18 @@ class HttpRequestParser(HttpParser[RawRequestMessage]): + if method == "CONNECT": + # authority-form, + # https://datatracker.ietf.org/doc/html/rfc7230#section-5.3.3 +- url = URL.build(authority=path, encoded=True) ++ try: ++ url = URL.build(authority=path, encoded=True) ++ host = url.raw_host ++ except ValueError: ++ # Duplicated so mypy understands that url must be defined below. ++ raise InvalidURLError( ++ path.encode(errors="surrogateescape").decode("latin1") ++ ) ++ if host is None: ++ raise InvalidURLError( ++ path.encode(errors="surrogateescape").decode("latin1") ++ ) + elif path.startswith("/"): + # origin-form, + # https://datatracker.ietf.org/doc/html/rfc7230#section-5.3.1 +@@ -708,9 +719,16 @@ class HttpRequestParser(HttpParser[RawRequestMessage]): + else: + # absolute-form for proxy maybe, + # https://datatracker.ietf.org/doc/html/rfc7230#section-5.3.2 +- url = URL(path, encoded=True) +- if url.scheme == "": +- # not absolute-form ++ try: ++ url = URL(path, encoded=True) ++ host = url.raw_host ++ except ValueError: ++ # Duplicated so mypy understands that url must be defined below. ++ raise InvalidURLError( ++ path.encode(errors="surrogateescape").decode("latin1") ++ ) ++ # https://www.rfc-editor.org/rfc/rfc9110#section-4.2.1-4 ++ if host is None: + raise InvalidURLError( + path.encode(errors="surrogateescape").decode("latin1") + ) +diff --git a/aiohttp/web_request.py b/aiohttp/web_request.py +index eaed708eb..5f6c92333 100644 +--- a/aiohttp/web_request.py ++++ b/aiohttp/web_request.py +@@ -196,8 +196,14 @@ class BaseRequest(MutableMapping[str | RequestKey[Any], Any], HeadersMixin): + self._cache: dict[str, Any] = {} + url = message.url + if url.absolute: ++ if scheme is None and url.scheme: ++ # Absolute URL is peer-controlled, use the protocol. ++ scheme = "https" if protocol.ssl_context else "http" + if scheme is not None: ++ # Authority-form (CONNECT) has no scheme: leave the target ++ # unchanged unless clone(scheme=...) overrides it. + url = url.with_scheme(scheme) ++ self._cache["scheme"] = scheme + if host is not None: + url = url.with_host(host) + # absolute URL is given, +@@ -205,7 +211,6 @@ class BaseRequest(MutableMapping[str | RequestKey[Any], Any], HeadersMixin): + # all other properties should be good + self._cache["url"] = url + self._cache["host"] = url.host +- self._cache["scheme"] = url.scheme + self._rel_url = url.relative() + else: + self._rel_url = url
meta-python/recipes-devtools/python/python3-aiohttp_3.14.3.bb +1 -0
@@ -9,6 +9,7 @@ SRC_URI[sha256sum] = "9491196535a88924a60afd5b5f434b5b203b6cc616250878dbdb223a8f SRC_URI += "file://CVE-2026-111063.patch \ file://CVE-2026-111065.patch \ file://CVE-2026-111066.patch \ + file://CVE-2026-111748.patch \ " CVE_PRODUCT = "aiohttp:aiohttp"
PATCH 49/64 python3-aiohttp: patch CVE-2026-111749
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Details:
https://nvd.nist.gov/vuln/detail/cve-2026-111749
--- .../python3-aiohttp/CVE-2026-111749.patch | 262 ++++++++++++++++++ .../python/python3-aiohttp_3.14.3.bb | 1 + 2 files changed, 263 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-aiohttp/CVE-2026-111749.patch
meta-python/recipes-devtools/python/python3-aiohttp/CVE-2026-111749.patch new file +262 -0
@@ -0,0 +1,262 @@ +From 66405536d4410c7456a52d2b6780e827f4e56d44 Mon Sep 17 00:00:00 2001 +From: Sam Bull <[email protected]> +Date: Wed, 9 Sep 2026 02:21:06 +0100 +Subject: [PATCH] Fix host-only state on cookie expiration (#13674) (#13676) + +(cherry picked from commit 9332972cfcb0f5a2b6677e7307819ab8f13b5d09) +(cherry picked from commit 6a07c171ef9f3be583e2907dcd1931372efca8d6) + +CVE: CVE-2026-111749 +Upstream-Status: Backport [https://github.com/aio-libs/aiohttp/commit/6a07c171ef9f3be583e2907dcd1931372efca8d6] + +Signed-off-by: Ankur Tyagi <[email protected]> +--- + CHANGES/13674.bugfix.rst | 1 + + aiohttp/abc.py | 2 +- + aiohttp/cookiejar.py | 29 ++++++++-------- + docs/client_reference.rst | 10 ++++-- + tests/test_client_session.py | 2 +- + tests/test_cookiejar.py | 64 ++++++++++++++++++++++++++++++++++-- + 6 files changed, 89 insertions(+), 19 deletions(-) + create mode 100644 CHANGES/13674.bugfix.rst + +diff --git a/CHANGES/13674.bugfix.rst b/CHANGES/13674.bugfix.rst +new file mode 100644 +index 000000000..5152bceae +--- /dev/null ++++ b/CHANGES/13674.bugfix.rst +@@ -0,0 +1 @@ ++Fixed host-only cookie state being lost on expiration -- by :user:`Dreamsorcerer`. +diff --git a/aiohttp/abc.py b/aiohttp/abc.py +index b67287318..74ca7216e 100644 +--- a/aiohttp/abc.py ++++ b/aiohttp/abc.py +@@ -181,7 +181,7 @@ class AbstractCookieJar(Sized, IterableBase): + + @property + @abstractmethod +- def host_only_cookies(self) -> frozenset[tuple[str, str]]: ++ def host_only_cookies(self) -> frozenset[tuple[str, str, str]]: + """Return the host-only cookies stored in this jar.""" + + @abstractmethod +diff --git a/aiohttp/cookiejar.py b/aiohttp/cookiejar.py +index b949cc118..1af02144e 100644 +--- a/aiohttp/cookiejar.py ++++ b/aiohttp/cookiejar.py +@@ -134,7 +134,8 @@ class CookieJar(AbstractCookieJar): + self._morsel_cache: defaultdict[tuple[str, str], dict[str, Morsel[str]]] = ( + defaultdict(dict) + ) +- self._host_only_cookies: set[tuple[str, str]] = set() ++ # Cookie identity is (domain, path, name). ++ self._host_only_cookies: set[tuple[str, str, str]] = set() + self._unsafe = unsafe + self._quote_cookie = quote_cookie + if treat_as_secure_origin is None: +@@ -166,7 +167,7 @@ class CookieJar(AbstractCookieJar): + return MappingProxyType(self._cookies) + + @property +- def host_only_cookies(self) -> frozenset[tuple[str, str]]: ++ def host_only_cookies(self) -> frozenset[tuple[str, str, str]]: + """Return the host-only cookies stored in this jar.""" + return frozenset(self._host_only_cookies) + +@@ -195,7 +196,7 @@ class CookieJar(AbstractCookieJar): + if attr_val: + morsel_data[attr] = attr_val + # Persist or it reloads as a domain cookie and leaks to subdomains. +- if (domain, name) in self._host_only_cookies: ++ if (domain, path, name) in self._host_only_cookies: + morsel_data["host_only"] = True + if (exp := self._expirations.get((domain, path, name))) is not None: + morsel_data["expires_timestamp"] = exp +@@ -358,7 +359,7 @@ class CookieJar(AbstractCookieJar): + + def _delete_cookies(self, to_del: list[tuple[str, str, str]]) -> None: + for domain, path, name in to_del: +- self._host_only_cookies.discard((domain, name)) ++ self._host_only_cookies.discard((domain, path, name)) + self._cookies[(domain, path)].pop(name, None) + self._morsel_cache[(domain, path)].pop(name, None) + self._expirations.pop((domain, path, name), None) +@@ -395,18 +396,12 @@ class CookieJar(AbstractCookieJar): + domain = "" + del cookie["domain"] + +- if not domain and hostname is not None: +- # Set the cookie's domain to the response hostname +- # and set its host-only-flag +- self._host_only_cookies.add((hostname, name)) +- domain = cookie["domain"] = hostname +- + if domain and domain[0] == ".": + # Remove leading dot + domain = domain[1:] + cookie["domain"] = domain + +- if hostname and not self._is_domain_match(domain, hostname): ++ if domain and hostname and not self._is_domain_match(domain, hostname): + # Setting cookies for different domains is not allowed + continue + +@@ -422,6 +417,14 @@ class CookieJar(AbstractCookieJar): + cookie["path"] = path + path = path.rstrip("/") + ++ if not domain and hostname is not None: ++ self._host_only_cookies.add((hostname, path, name)) ++ domain = cookie["domain"] = hostname ++ else: ++ # A cookie with an explicit Domain attribute replaces any ++ # host-only cookie with the same (domain, path, name) identity. ++ self._host_only_cookies.discard((domain, path, name)) ++ + if max_age := cookie["max-age"]: + try: + delta_seconds = int(max_age) +@@ -522,7 +525,7 @@ class CookieJar(AbstractCookieJar): + for name, cookie in self._cookies[p].items(): + domain = cookie["domain"] + +- if (domain, name) in self._host_only_cookies and domain != hostname: ++ if domain != hostname and p + (name,) in self._host_only_cookies: + continue + + # Skip edge case when the cookie has a trailing slash but request doesn't. +@@ -672,7 +675,7 @@ class DummyCookieJar(AbstractCookieJar): + return MappingProxyType({}) + + @property +- def host_only_cookies(self) -> frozenset[tuple[str, str]]: ++ def host_only_cookies(self) -> frozenset[tuple[str, str, str]]: + """Return an empty frozenset.""" + return frozenset() + +diff --git a/docs/client_reference.rst b/docs/client_reference.rst +index a237fb64b..476e6e81f 100644 +--- a/docs/client_reference.rst ++++ b/docs/client_reference.rst +@@ -2611,11 +2611,17 @@ Utilities + + .. attribute:: host_only_cookies + +- A :class:`frozenset` of ``(domain, name)`` tuples indicating which +- cookies are host-only (not sent to subdomains). ++ A :class:`frozenset` of ``(domain, path, name)`` tuples indicating ++ which cookies are host-only (not sent to subdomains). + + .. versionadded:: 3.14 + ++ .. versionchanged:: 3.14.4 ++ ++ The tuples gained the *path* element; host-only state is tracked ++ per ``(domain, path, name)`` cookie identity so that same-named ++ cookies on other paths cannot affect it. ++ + + .. class:: DummyCookieJar(*, loop=None) + +diff --git a/tests/test_client_session.py b/tests/test_client_session.py +index 6b3516879..4481a4bf8 100644 +--- a/tests/test_client_session.py ++++ b/tests/test_client_session.py +@@ -758,7 +758,7 @@ async def test_cookie_jar_usage(loop: Any, aiohttp_client: Any) -> None: + return MappingProxyType({}) + + @property +- def host_only_cookies(self) -> frozenset[tuple[str, str]]: ++ def host_only_cookies(self) -> frozenset[tuple[str, str, str]]: + return frozenset() + + def clear(self, predicate: abc.ClearCookiePredicate | None = None) -> None: +diff --git a/tests/test_cookiejar.py b/tests/test_cookiejar.py +index be6da2a5f..4fd2959e1 100644 +--- a/tests/test_cookiejar.py ++++ b/tests/test_cookiejar.py +@@ -878,7 +878,45 @@ async def test_cookie_jar_host_only_cookies_property() -> None: + + host_only = jar.host_only_cookies + assert isinstance(host_only, frozenset) +- assert ("example.com", "hostonly") in host_only ++ assert ("example.com", "", "hostonly") in host_only ++ ++ ++async def test_host_only_marker_survives_same_name_expiry_on_other_path() -> None: ++ """Expiring a same-name cookie on another path must not clear host-only state.""" ++ jar = CookieJar() ++ origin = URL("http://auth.example.com/") ++ subdomain = URL("http://evil.auth.example.com/") ++ ++ jar.update_cookies_from_headers(["sid=secret; Path=/"], origin) ++ assert "sid" not in jar.filter_cookies(subdomain) ++ ++ # Attacker-controlled descendant expires a same-name cookie on its own path. ++ jar.update_cookies_from_headers( ++ ["sid=gone; Domain=auth.example.com; Path=/attacker; Max-Age=0"], ++ subdomain, ++ ) ++ ++ assert ("auth.example.com", "", "sid") in jar.host_only_cookies ++ assert "sid" not in jar.filter_cookies(subdomain) ++ assert jar.filter_cookies(origin)["sid"].value == "secret" ++ ++ ++async def test_explicit_domain_replacement_clears_host_only_marker() -> None: ++ """A replacing cookie with an explicit Domain is a domain cookie.""" ++ jar = CookieJar() ++ origin = URL("http://example.com/") ++ subdomain = URL("http://sub.example.com/") ++ ++ jar.update_cookies_from_headers(["sid=hostonly; Path=/"], origin) ++ assert ("example.com", "", "sid") in jar.host_only_cookies ++ assert "sid" not in jar.filter_cookies(subdomain) ++ ++ jar.update_cookies_from_headers( ++ ["sid=domainwide; Domain=example.com; Path=/"], origin ++ ) ++ ++ assert jar.host_only_cookies == frozenset() ++ assert jar.filter_cookies(subdomain)["sid"].value == "domainwide" + + + async def test_cookie_jar_cookies_property_immutable() -> None: +@@ -1857,7 +1895,7 @@ async def test_save_load_json_preserves_host_only_scope(tmp_path: Path) -> None: + jar_load = CookieJar() + jar_load.load(file_path=file_path) + +- assert jar_load.host_only_cookies == frozenset({("auth.example.com", "sid")}) ++ assert jar_load.host_only_cookies == frozenset({("auth.example.com", "", "sid")}) + assert "sid" not in jar_load.filter_cookies(subdomain) + assert "sid" in jar_load.filter_cookies(issuer) + +@@ -1882,6 +1920,28 @@ async def test_save_load_json_domain_cookie_still_matches_subdomain( + assert "sid" in jar_load.filter_cookies(subdomain) + + ++async def test_save_load_json_host_only_per_path(tmp_path: Path) -> None: ++ """Verify save/load keeps host-only state per (domain, path, name).""" ++ file_path = tmp_path / "per_path.json" ++ origin = URL("https://example.com/") ++ subdomain = URL("https://sub.example.com/") ++ ++ jar_save = CookieJar() ++ jar_save.update_cookies_from_headers( ++ ["sid=hostonly; Path=/", "sid=domainwide; Domain=example.com; Path=/api"], ++ origin, ++ ) ++ jar_save.save(file_path=file_path) ++ ++ jar_load = CookieJar() ++ jar_load.load(file_path=file_path) ++ ++ assert jar_load.host_only_cookies == frozenset({("example.com", "", "sid")}) ++ assert "sid" not in jar_load.filter_cookies(subdomain) ++ filtered = jar_load.filter_cookies(URL("https://sub.example.com/api/x")) ++ assert filtered["sid"].value == "domainwide" ++ ++ + async def test_save_load_json_preserves_max_age_deadline(tmp_path: Path) -> None: + """Verify save/load restores the absolute deadline without resetting it.""" + file_path = tmp_path / "max_age.json"
meta-python/recipes-devtools/python/python3-aiohttp_3.14.3.bb +1 -0
@@ -10,6 +10,7 @@ SRC_URI += "file://CVE-2026-111063.patch \ file://CVE-2026-111065.patch \ file://CVE-2026-111066.patch \ file://CVE-2026-111748.patch \ + file://CVE-2026-111749.patch \ " CVE_PRODUCT = "aiohttp:aiohttp"
PATCH 50/64 python3-aiohttp: patch CVE-2026-111750
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Details:
https://nvd.nist.gov/vuln/detail/cve-2026-111750
--- .../python3-aiohttp/CVE-2026-111750.patch | 82 +++++++++++++++++++ .../python/python3-aiohttp_3.14.3.bb | 1 + 2 files changed, 83 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-aiohttp/CVE-2026-111750.patch
meta-python/recipes-devtools/python/python3-aiohttp/CVE-2026-111750.patch new file +82 -0
@@ -0,0 +1,82 @@ +From 18e23a890422e952b0fdbf09e02794adda56c120 Mon Sep 17 00:00:00 2001 +From: Sam Bull <[email protected]> +Date: Wed, 9 Sep 2026 01:25:13 +0100 +Subject: [PATCH] Fix head request parsing (#13671) (#13673) + +(cherry picked from commit 5789546e37fe35af27d0a2f840870b22bc15bfc4) +(cherry picked from commit 9b27347e61454d9f8ca2055f4c67a37dee336e83) + +CVE: CVE-2026-111750 +Upstream-Status: Backport [https://github.com/aio-libs/aiohttp/commit/9b27347e61454d9f8ca2055f4c67a37dee336e83] + +Signed-off-by: Ankur Tyagi <[email protected]> +--- + CHANGES/13671.bugfix.rst | 1 + + aiohttp/http_parser.py | 6 +++++- + tests/test_http_parser.py | 27 ++++++++++++++++++++++++++- + 3 files changed, 32 insertions(+), 2 deletions(-) + create mode 100644 CHANGES/13671.bugfix.rst + +diff --git a/CHANGES/13671.bugfix.rst b/CHANGES/13671.bugfix.rst +new file mode 100644 +index 000000000..e6fbc7000 +--- /dev/null ++++ b/CHANGES/13671.bugfix.rst +@@ -0,0 +1 @@ ++Fixed pure-Python request parser not reading a body in a ``HEAD`` request -- by :user:`Dreamsorcerer`. +diff --git a/aiohttp/http_parser.py b/aiohttp/http_parser.py +index 678aee020..947060c9a 100644 +--- a/aiohttp/http_parser.py ++++ b/aiohttp/http_parser.py +@@ -433,8 +433,12 @@ class HttpParser(abc.ABC, Generic[_MsgT]): + + assert self.protocol is not None + # calculate payload ++ # https://www.rfc-editor.org/info/rfc9112/#name-message-body-length ++ # https://www.rfc-editor.org/info/rfc9110/#section-9.3.1-6 ++ # EMPTY_BODY_METHODS should only apply to responses. ++ # self.method is None on request parser. + empty_body = code in EMPTY_BODY_STATUS_CODES or bool( +- method and method in EMPTY_BODY_METHODS ++ self.method and self.method in EMPTY_BODY_METHODS + ) + if not empty_body and ( + (length is not None and length > 0) or msg.chunked +diff --git a/tests/test_http_parser.py b/tests/test_http_parser.py +index fcc1b6018..e9d40532b 100644 +--- a/tests/test_http_parser.py ++++ b/tests/test_http_parser.py +@@ -2181,7 +2181,32 @@ def test_http_request_chunked_payload_and_next_message(parser) -> None: + assert not payload2.is_eof() + + +-def test_http_request_chunked_payload_chunks(parser) -> None: ++def test_http_request_parser_head_with_content_length_payload( ++ parser: HttpRequestParser, ++) -> None: ++ smuggled = b"GET /smuggled HTTP/1.1\r\nHost: a\r\n\r\n" ++ text = ( ++ b"HEAD /test HTTP/1.1\r\nHost: a\r\nContent-Length: %d\r\n\r\n" % len(smuggled) ++ + smuggled ++ + b"POST /next HTTP/1.1\r\nHost: a\r\nContent-Length: 0\r\n\r\n" ++ ) ++ messages, upgraded, tail = parser.feed_data(text) ++ ++ assert len(messages) == 2 ++ msg, payload = messages[0] ++ assert msg.method == "HEAD" ++ assert b"".join(payload._buffer) == smuggled ++ assert payload.is_eof() ++ ++ msg2, payload2 = messages[1] ++ assert msg2.method == "POST" ++ assert msg2.path == "/next" ++ assert payload2.is_eof() ++ assert not upgraded ++ assert not tail ++ ++ ++def test_http_request_chunked_payload_chunks(parser: HttpRequestParser) -> None: + text = b"GET /test HTTP/1.1\r\nHost: a\r\ntransfer-encoding: chunked\r\n\r\n" + msg, payload = parser.feed_data(text)[0][0] +
meta-python/recipes-devtools/python/python3-aiohttp_3.14.3.bb +1 -0
@@ -11,6 +11,7 @@ SRC_URI += "file://CVE-2026-111063.patch \ file://CVE-2026-111066.patch \ file://CVE-2026-111748.patch \ file://CVE-2026-111749.patch \ + file://CVE-2026-111750.patch \ " CVE_PRODUCT = "aiohttp:aiohttp"
PATCH 51/64 python3-filelock: upgrade 4.0.4 -> 4.0.12
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Changelog:
https://py-filelock.readthedocs.io/en/latest/changelog.html#release-4-0-5
https://py-filelock.readthedocs.io/en/latest/changelog.html#release-4-0-6
https://py-filelock.readthedocs.io/en/latest/changelog.html#release-4-0-7
https://py-filelock.readthedocs.io/en/latest/changelog.html#release-4-0-8
https://py-filelock.readthedocs.io/en/latest/changelog.html#release-4-0-9
https://py-filelock.readthedocs.io/en/latest/changelog.html#release-4-0-10
https://py-filelock.readthedocs.io/en/latest/changelog.html#release-4-0-11
https://py-filelock.readthedocs.io/en/latest/changelog.html#release-4-0-12
---
.../{python3-filelock_4.0.4.bb => python3-filelock_4.0.12.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-python/recipes-devtools/python/{python3-filelock_4.0.4.bb => python3-filelock_4.0.12.bb} (93%)meta-python/recipes-devtools/python/python3-filelock_4.0.12.bb renamed from meta-python/recipes-devtools/python/python3-filelock_4.0.4.bb +1 -1
@@ -9,7 +9,7 @@ CVE_PRODUCT = "tox-dev:filelock" SRC_URI += "file://run-ptest" -SRC_URI[sha256sum] = "90999ed63a26ccf86b93b959ab10cf1017f422d816be454ed54cbed263e71ab5" +SRC_URI[sha256sum] = "cf42711a7ac791818b299fab0332a088c65aeeefa36290de98db92c434303b0c" BBCLASSEXTEND = "native nativesdk"
PATCH 52/64 mpv: fix a file descriptor leak in the render API
In reply to [email protected]From: Markus Volk <[email protected]>
With the OpenGL render API (vo_libmpv) every frame left a fence behind that nothing cleaned up. On v3d each one holds a sync file, so after about a minute of video the process ran into the open file limit and the picture stopped ("MESA: error: Export failed"). Backport the upstream fix.
AI-Generated: Uses Claude Code (Claude Fable 5.1)
--- ...equire-swap_buffers-param-for-FenceS.patch | 35 +++++++++++++++++++ .../recipes-multimedia/mplayer/mpv_0.41.0.bb | 5 ++- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-multimedia/mplayer/mpv/0001-opengl-context-require-swap_buffers-param-for-FenceS.patch
meta-oe/recipes-multimedia/mplayer/mpv/0001-opengl-context-require-swap_buffers-param-for-FenceS.patch new file +35 -0
@@ -0,0 +1,35 @@ +From f74adc4243bd9e1a8ee96d187c939e6232510650 Mon Sep 17 00:00:00 2001 +From: Dudemanguy <[email protected]> +Date: Thu, 22 Jan 2026 11:12:22 -0600 +Subject: [PATCH] opengl/context: require swap_buffers param for FenceSync + +Commits 8854c742711705be1fcfcc6a5875960a3e2593dc and +5ae0e0ff9a6974453c1aba41ddc8442d12ac9264 eliminated the external +swapchain API that the render backend (vo_libmpv) was previously using. +However, it was missed that this was being used to skip the +gl->FenceSync calls and that logic change was not properly accounted +for. This meant that vo_libmpv would leak fences since +ra_gl_ctx_swap_buffers is never called to clean them up. + +Fix this by making sure the ra_ctx_params have swap_buffers defined +before calling gl->FenceSync. All platforms are required to implement +this anyway with the exception of vo_libmpv since it's a funny special +case. Fixes #17217. +Upstream-Status: Backport [https://github.com/mpv-player/mpv/commit/f74adc4243bd9e1a8ee96d187c939e6232510650] +--- + video/out/opengl/context.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/video/out/opengl/context.c b/video/out/opengl/context.c +index 86e8d5daac8b4..86e5c797d670a 100644 +--- a/video/out/opengl/context.c ++++ b/video/out/opengl/context.c +@@ -232,7 +232,7 @@ bool ra_gl_ctx_submit_frame(struct ra_swapchain *sw, const struct vo_frame *fram + if (p->opts->use_glfinish) + gl->Finish(); + +- if (gl->FenceSync) { ++ if (gl->FenceSync && p->params.swap_buffers) { + GLsync fence = gl->FenceSync(GL_SYNC_GPU_COMMANDS_COMPLETE, 0); + if (fence) + MP_TARRAY_APPEND(p, p->vsync_fences, p->num_vsync_fences, fence);
meta-oe/recipes-multimedia/mplayer/mpv_0.41.0.bb +4 -1
@@ -23,7 +23,10 @@ LIC_FILES_CHKSUM = "file://LICENSE.GPL;md5=570a9b3749dd0463a1778803b12a6dce" LICENSE_FLAGS = "commercial" SRCREV = "41f6a645068483470267271e1d09966ca3b9f413" -SRC_URI = "git://github.com/mpv-player/mpv;name=mpv;branch=release/${@oe.utils.trim_version('${PV}', 2)};protocol=https;tag=v${PV}" +SRC_URI = " \ + git://github.com/mpv-player/mpv;name=mpv;branch=release/${@oe.utils.trim_version('${PV}', 2)};protocol=https;tag=v${PV} \ + file://0001-opengl-context-require-swap_buffers-param-for-FenceS.patch \ +" inherit meson pkgconfig mime-xdg
PATCH 53/64 mpv: make the drmprime overlay framebuffer the whole frame
In reply to [email protected]From: Markus Volk <[email protected]>
The DRM framebuffer was made the size of the source rect while SRC_X and SRC_Y place that rect inside the frame. With panscan or a crop the rect reaches past the framebuffer, the atomic commit fails with ENOSPC and the plane stays dark. The patch, Upstream-Status: Pending, makes the framebuffer the size of the frame.
AI-Generated: Uses Claude Code (Claude Opus 5.5)
--- ...make-the-framebuffer-the-whole-frame.patch | 24 +++++++++++++++++++ .../recipes-multimedia/mplayer/mpv_0.41.0.bb | 1 + 2 files changed, 25 insertions(+) create mode 100644 meta-oe/recipes-multimedia/mplayer/mpv/0002-hwdec_drmprime_overlay-make-the-framebuffer-the-whole-frame.patch
meta-oe/recipes-multimedia/mplayer/mpv/0002-hwdec_drmprime_overlay-make-the-framebuffer-the-whole-frame.patch new file +24 -0
@@ -0,0 +1,24 @@ +From: Markus Volk <[email protected]> +Subject: [PATCH] hwdec_drmprime_overlay: make the framebuffer the whole frame + +The framebuffer for the DRM plane was made the size of the source rect, +while SRC_X and SRC_Y place that rect inside the frame. As soon as the +rect does not start at the top left, with panscan or a video crop, it +reaches past the framebuffer and the atomic commit fails with ENOSPC; the +plane stays dark. Make the framebuffer the size of the frame and let the +SRC_* properties pick the part that is shown. + +Upstream-Status: Pending +--- +--- a/video/out/hwdec/hwdec_drmprime_overlay.c ++++ b/video/out/hwdec/hwdec_drmprime_overlay.c +@@ -187,7 +187,8 @@ + int dstw = MP_ALIGN_UP(p->dst.x1 - p->dst.x0, 2); + int dsth = MP_ALIGN_UP(p->dst.y1 - p->dst.y0, 2); + +- if (drm_prime_create_framebuffer(p->log, p->ctx->fd, desc, srcw, srch, &next_frame.fb, &p->handle_refs)) { ++ // The framebuffer is the whole frame, SRC_* pick the part shown ++ if (drm_prime_create_framebuffer(p->log, p->ctx->fd, desc, hw_image->w, hw_image->h, &next_frame.fb, &p->handle_refs)) { + ret = -1; + goto fail; + }
meta-oe/recipes-multimedia/mplayer/mpv_0.41.0.bb +1 -0
@@ -26,6 +26,7 @@ SRCREV = "41f6a645068483470267271e1d09966ca3b9f413" SRC_URI = " \ git://github.com/mpv-player/mpv;name=mpv;branch=release/${@oe.utils.trim_version('${PV}', 2)};protocol=https;tag=v${PV} \ file://0001-opengl-context-require-swap_buffers-param-for-FenceS.patch \ + file://0002-hwdec_drmprime_overlay-make-the-framebuffer-the-whole-frame.patch \ " inherit meson pkgconfig mime-xdg
PATCH 54/64 mpv: patch CVE-2026-123095
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Details:
https://nvd.nist.gov/vuln/detail/cve-2026-123095
--- .../mplayer/mpv/CVE-2026-123095.patch | 37 +++++++++++++++++++ .../recipes-multimedia/mplayer/mpv_0.41.0.bb | 1 + 2 files changed, 38 insertions(+) create mode 100644 meta-oe/recipes-multimedia/mplayer/mpv/CVE-2026-123095.patch
meta-oe/recipes-multimedia/mplayer/mpv/CVE-2026-123095.patch new file +37 -0
@@ -0,0 +1,37 @@ +From 2c6599aa7d16efd29ae49865757eb449d9306742 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= <[email protected]> +Date: Wed, 4 Nov 2026 20:28:57 +0100 +Subject: [PATCH] ytdl_hook: reject playlist entry URLs with control characters + +The entries are joined into a memory:// M3U playlist, one URL per line. +A URL with a line break became several entries, and only the first line +went through url_is_safe(). The other lines were loaded with the origin +of the opened URL, so any protocol was allowed. Skip any URLs with +control characters. + +Fixes: e6e6b0dcc7 +Fixes: GHSA-p99g-m25w-x8xv +(cherry picked from commit c3096515dcd26c14004f985538b5aa41db613856) + +CVE: CVE-2026-123095 +Upstream-Status: Backport [https://github.com/mpv-player/mpv/commit/c3096515dcd26c14004f985538b5aa41db613856] + +Signed-off-by: Ankur Tyagi <[email protected]> +--- + player/lua/ytdl_hook.lua | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/player/lua/ytdl_hook.lua b/player/lua/ytdl_hook.lua +index 65ef859595..2b0edb193a 100644 +--- a/player/lua/ytdl_hook.lua ++++ b/player/lua/ytdl_hook.lua +@@ -1111,6 +1111,9 @@ local function run_ytdl_hook(url) + -- links without protocol as returned by --flat-playlist + if not site then + msg.error("Playlist entry does not have unique URL, can't add it.") ++ elseif site:find("%c") then ++ -- a line break would add entries to the playlist ++ msg.error("Playlist entry URL contains control characters, can't add it.") + elseif not site:find("://") then + -- youtube extractor provides only IDs, + -- others come prefixed with the extractor name and ":"
meta-oe/recipes-multimedia/mplayer/mpv_0.41.0.bb +1 -0
@@ -27,6 +27,7 @@ SRC_URI = " \ git://github.com/mpv-player/mpv;name=mpv;branch=release/${@oe.utils.trim_version('${PV}', 2)};protocol=https;tag=v${PV} \ file://0001-opengl-context-require-swap_buffers-param-for-FenceS.patch \ file://0002-hwdec_drmprime_overlay-make-the-framebuffer-the-whole-frame.patch \ + file://CVE-2026-123095.patch \ " inherit meson pkgconfig mime-xdg
PATCH 55/64 mongodb: fix build with python 3.12
In reply to [email protected]From: Awais Belal <[email protected]>
The moduleconfig.py build script uses the 'imp' module which is deprecated in favor of 'importlib' in python 3.12. This fixes the build issue by replacing the affected portion of the code and the package now builds fine on hosts with python 3.12.
--- ...econfig.py-python-3.12-compatibility.patch | 57 +++++++++++++++++++ .../recipes-dbs/mongodb/mongodb_git.bb | 3 +- 2 files changed, 58 insertions(+), 2 deletions(-) create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-moduleconfig.py-python-3.12-compatibility.patch
meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-moduleconfig.py-python-3.12-compatibility.patch new file +57 -0
@@ -0,0 +1,57 @@ +From 37580777bc5294d606584f3731d9f5f5425bb587 Mon Sep 17 00:00:00 2001 +From: Awais B <[email protected]> +Date: Tue, 4 Mar 2025 11:27:10 +0000 +Subject: [PATCH] moduleconfig.py: python 3.12 compatibility + +The imp module was deprecated in python 3.4 and is dropped +with python 3.12. We now need to use importlib for the +purpose of manipulating/loading modules. + +Upstream-Status: Pending +Signed-off-by: Awais B <[email protected]> +--- + buildscripts/moduleconfig.py | 21 ++++++++++++++------- + 1 file changed, 14 insertions(+), 7 deletions(-) + +diff --git a/buildscripts/moduleconfig.py b/buildscripts/moduleconfig.py +index b4d0bba0490..69dd91ab30d 100644 +--- a/buildscripts/moduleconfig.py ++++ b/buildscripts/moduleconfig.py +@@ -27,7 +27,8 @@ MongoDB SConscript files do. + __all__ = ('discover_modules', 'discover_module_directories', 'configure_modules', + 'register_module_test') # pylint: disable=undefined-all-variable + +-import imp ++import importlib ++import sys + import inspect + import os + +@@ -71,12 +72,18 @@ def discover_modules(module_root, allowed_modules): + print("adding module: %s" % (name)) + fp = open(build_py, "r") + try: +- module = imp.load_module("module_" + name, fp, build_py, +- (".py", "r", imp.PY_SOURCE)) +- if getattr(module, "name", None) is None: +- module.name = name +- found_modules.append(module) +- found_module_names.append(name) ++ module_name = "module_" + name ++ module_spec = importlib.util.spec_from_file_location(module_name, build_py) ++ ++ if module_spec is not None: ++ module = importlib.util.module_from_spec(module_spec) ++ sys.modules[module_name] = module ++ module_spec.loader.exec_module(module) ++ ++ if not hasattr(module, "name"): ++ module.name = name ++ found_modules.append(module) ++ found_module_names.append(name) + finally: + fp.close() + except (FileNotFoundError, IOError): +-- +2.34.1 +
meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb +1 -2
@@ -36,6 +36,7 @@ SRC_URI = "git://github.com/mongodb/mongo.git;branch=v4.4;protocol=https \ file://0001-apply-msvc-workaround-for-clang-16.patch \ file://0001-Fix-type-mismatch-on-32bit-arches.patch \ file://0001-Fix-build-on-32bit.patch \ + file://0001-moduleconfig.py-python-3.12-compatibility.patch \ " SRC_URI:append:libc-musl = "\ file://0001-Mark-one-of-strerror_r-implementation-glibc-specific.patch \
@@ -140,5 +141,3 @@ SYSTEMD_SERVICE:${PN} = "mongod.service" FILES:${PN} += "${nonarch_libdir}/tmpfiles.d" RDEPENDS:${PN} += "tzdata-core" - -SKIP_RECIPE[mongodb] ?= "Needs porting to python 3.12"
PATCH 56/64 mongodb: update to 4.4.29
In reply to [email protected]From: Awais Belal <[email protected]>
Move on to 4.4.29 and drop a patch that is not applicable anymore.
--- ...001-free_mon-Include-missing-cstdint.patch | 28 ------------------- .../recipes-dbs/mongodb/mongodb_git.bb | 7 ++--- 2 files changed, 3 insertions(+), 32 deletions(-) delete mode 100644 meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-free_mon-Include-missing-cstdint.patch
meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-free_mon-Include-missing-cstdint.patch deleted +0 -28
@@ -1,28 +0,0 @@ -From 5d8218b8a1b5bc71e2a0cf543a000e194daba599 Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Sun, 29 Jan 2023 17:15:30 -0800 -Subject: [PATCH] free_mon: Include missing <cstdint> - -gcc 13 moved some includes around and as a result <cstdint> is no -longer transitively included [1]. Explicitly include it -for uintXX_t. - -[1] https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes - -Signed-off-by: Khem Raj <[email protected]> - -Upstream-Status: Pending ---- - src/mongo/db/free_mon/free_mon_options.h | 1 + - 1 file changed, 1 insertion(+) - ---- a/src/mongo/db/free_mon/free_mon_options.h -+++ b/src/mongo/db/free_mon/free_mon_options.h -@@ -29,6 +29,7 @@ - - #pragma once - -+#include <cstdint> - #include <string> - #include <vector> -
meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb +3 -4
@@ -11,9 +11,9 @@ DEPENDS = "openssl libpcap zlib boost curl python3 \ inherit scons dos2unix siteinfo python3native systemd useradd -PV = "4.4.24" -#v4.4.24 -SRCREV = "0b86b9b7b42ad9970c5f818c527dd86c0634243a" +PV = "4.4.29" +#v4.4.29 +SRCREV = "89d6ffe6fc67b36fd47aff6425087003966588e3" SRC_URI = "git://github.com/mongodb/mongo.git;branch=v4.4;protocol=https \ file://0001-Tell-scons-to-use-build-settings-from-environment-va.patch \ file://0001-Use-long-long-instead-of-int64_t.patch \
@@ -32,7 +32,6 @@ SRC_URI = "git://github.com/mongodb/mongo.git;branch=v4.4;protocol=https \ file://0001-add-explict-static_cast-size_t-to-maxMemoryUsageByte.patch \ file://0001-server-Adjust-the-cache-alignment-assumptions.patch \ file://0001-The-std-lib-unary-binary_function-base-classes-are-d.patch \ - file://0001-free_mon-Include-missing-cstdint.patch \ file://0001-apply-msvc-workaround-for-clang-16.patch \ file://0001-Fix-type-mismatch-on-32bit-arches.patch \ file://0001-Fix-build-on-32bit.patch \
PATCH 57/64 mongodb: upgrade 4.4.29 -> 4.4.30
In reply to [email protected]From: Gyorgy Sarvari <[email protected]>
This is a security release to fix CVE-2025-14847:
https://nvd.nist.gov/vuln/detail/CVE-2025-14847
--- .../meta-python/recipes-dbs/mongodb/mongodb_git.bb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb +3 -3
@@ -11,9 +11,9 @@ DEPENDS = "openssl libpcap zlib boost curl python3 \ inherit scons dos2unix siteinfo python3native systemd useradd -PV = "4.4.29" -#v4.4.29 -SRCREV = "89d6ffe6fc67b36fd47aff6425087003966588e3" +PV = "4.4.30" +#v4.4.30 +SRCREV = "1ae4c9990dbc5711f3500748f0c3f8b5d375d8c0" SRC_URI = "git://github.com/mongodb/mongo.git;branch=v4.4;protocol=https \ file://0001-Tell-scons-to-use-build-settings-from-environment-va.patch \ file://0001-Use-long-long-instead-of-int64_t.patch \
PATCH 58/64 mongodb: ignore CVE-2025-14911
In reply to [email protected]From: Gyorgy Sarvari <[email protected]>
Details: https://nvd.nist.gov/vuln/detail/CVE-2025-14911
The CVE is currently tracked without valid CPE. The vulnerability affects mongo-c-driver component, not mongodb. They are also stored in different repositories.
Due to this, ignore this CVE.
--- .../meta-python/recipes-dbs/mongodb/mongodb_git.bb | 1 + 1 file changed, 1 insertion(+)
meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb +1 -0
@@ -51,6 +51,7 @@ SRC_URI:append:toolchain-clang = "\ CVE_STATUS[CVE-2014-8180] = "not-applicable-config: Not affecting our configuration so it can be safely ignored." CVE_STATUS[CVE-2017-2665] = "not-applicable-config: Not affecting our configuration so it can be safely ignored." +CVE_STATUS[CVE-2025-14911] = "cpe-incorrect: The vulnerability is about mongo-c-driver application, not mongodb" COMPATIBLE_HOST ?= '(x86_64|i.86|powerpc64|arm|aarch64).*-linux'
PATCH 59/64 mongodb: Fix build with current python, SCons, clang and OpenSSL
In reply to [email protected]From: Khem Raj <[email protected]>
mongodb was re-enabled after having been skipped, and no longer builds with the current toolchain and dependencies:
- setuptools 84 does not provide pkg_resources anymore; use packaging.version to parse versions
- SCons 4.11 added an extra_libs parameter ahead of call in CheckLibWithHeader(), so the positional call snippet was split into bogus -l options and the OpenSSL check failed; pass call as a keyword
- clang 23 rejects out of range enum values in the bundled Boost 1.70 mpl::integral_c uses and a typo in Boost.Thread; backport the fixes from newer Boost
- OpenSSL 4 makes ASN1_STRING opaque and removes ASN1_STRING_data() and ERR_remove_state(); use the accessors available since OpenSSL 1.1
AI-Generated: Uses Claude Code
--- ...stead-of-pkg_resources-for-version-p.patch | 51 +++++ ...call-to-CheckLibWithHeader-as-a-keyw.patch | 56 ++++++ .../0003-boost-Fix-build-with-clang-23.patch | 176 ++++++++++++++++++ .../0004-ssl-Fix-build-with-OpenSSL-4.patch | 117 ++++++++++++ .../recipes-dbs/mongodb/mongodb_git.bb | 6 +- 5 files changed, 405 insertions(+), 1 deletion(-) create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-Use-packaging-instead-of-pkg_resources-for-version-p.patch create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0002-SConstruct-Pass-call-to-CheckLibWithHeader-as-a-keyw.patch create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0003-boost-Fix-build-with-clang-23.patch create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0004-ssl-Fix-build-with-OpenSSL-4.patch
meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-Use-packaging-instead-of-pkg_resources-for-version-p.patch new file +51 -0
@@ -0,0 +1,51 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Mon, 9 Nov 2026 07:45:00 -0800 +Subject: [PATCH] Use packaging instead of pkg_resources for version parsing + +pkg_resources has been removed from setuptools, so SConstruct fails to +load with: + + ModuleNotFoundError: No module named 'pkg_resources' + +Use parse() from the packaging module instead. + +Upstream-Status: Inappropriate [v4.4 branch is EOL] +Signed-off-by: Khem Raj <[email protected]> +--- +diff --git a/SConstruct b/SConstruct +--- a/SConstruct ++++ b/SConstruct +@@ -16,7 +16,7 @@ + import uuid + from glob import glob + +-from pkg_resources import parse_version ++from packaging.version import parse as parse_version + + import SCons + +diff --git a/site_scons/site_tools/ccache.py b/site_scons/site_tools/ccache.py +--- a/site_scons/site_tools/ccache.py ++++ b/site_scons/site_tools/ccache.py +@@ -26,7 +26,7 @@ + import subprocess + + import SCons +-from pkg_resources import parse_version ++from packaging.version import parse as parse_version + + # This is the oldest version of ccache that offers support for -gsplit-dwarf + _ccache_version_min = parse_version("3.2.3") +diff --git a/site_scons/site_tools/icecream.py b/site_scons/site_tools/icecream.py +--- a/site_scons/site_tools/icecream.py ++++ b/site_scons/site_tools/icecream.py +@@ -25,7 +25,7 @@ + import subprocess + import urllib + +-from pkg_resources import parse_version ++from packaging.version import parse as parse_version + + import SCons +
meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0002-SConstruct-Pass-call-to-CheckLibWithHeader-as-a-keyw.patch new file +56 -0
56 lines not on this page · raw message
meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0003-boost-Fix-build-with-clang-23.patch new file +176 -0
176 lines not on this page · raw message
meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0004-ssl-Fix-build-with-OpenSSL-4.patch new file +117 -0
117 lines not on this page · raw message
meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb +5 -1
@@ -4,7 +4,7 @@ LIC_FILES_CHKSUM = "file://LICENSE-Community.txt;md5=3a865f27f11f43ecbe542d9ea38 file://APACHE-2.0.txt;md5=3b83ef96387f14655fc854ddc3c6bd57" DEPENDS = "openssl libpcap zlib boost curl python3 \ - python3-setuptools-native \ + python3-packaging-native python3-setuptools-native \ python3-pyyaml-native python3-cheetah-native \ python3-psutil-native python3-regex-native \ "
@@ -36,6 +36,10 @@ SRC_URI = "git://github.com/mongodb/mongo.git;branch=v4.4;protocol=https \ file://0001-Fix-type-mismatch-on-32bit-arches.patch \ file://0001-Fix-build-on-32bit.patch \ file://0001-moduleconfig.py-python-3.12-compatibility.patch \ + file://0001-Use-packaging-instead-of-pkg_resources-for-version-p.patch \ + file://0002-SConstruct-Pass-call-to-CheckLibWithHeader-as-a-keyw.patch \ + file://0003-boost-Fix-build-with-clang-23.patch \ + file://0004-ssl-Fix-build-with-OpenSSL-4.patch \ " SRC_URI:append:libc-musl = "\ file://0001-Mark-one-of-strerror_r-implementation-glibc-specific.patch \
PATCH 60/64 mongodb: Backport fix for SERVER-49099
In reply to [email protected]From: Khem Raj <[email protected]>
The Node and Head swap() friends and the copy-and-swap assignment operators in Biggie store.h are unused and refer to members that do not exist. Backport the upstream removal.
AI-Generated: Uses Claude Code
--- ...ove-the-Node-swap-function-in-Biggie.patch | 58 +++++++++++++++++++ .../recipes-dbs/mongodb/mongodb_git.bb | 1 + 2 files changed, 59 insertions(+) create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0005-SERVER-49099-Remove-the-Node-swap-function-in-Biggie.patch
meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0005-SERVER-49099-Remove-the-Node-swap-function-in-Biggie.patch new file +58 -0
@@ -0,0 +1,58 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Yuhong Zhang <[email protected]> +Date: Thu, 9 Jul 2020 15:43:33 +0000 +Subject: [PATCH] SERVER-49099 Remove the Node::swap() function in Biggie + +The Node and Head swap() friends and the copy-and-swap assignment +operators built on them are unused and do not compile: Node::swap() +does not exist and Node has no trieKey, depth, data or children +members (they are _-prefixed). This went unnoticed because they are +in a class template that never instantiates them. + +Upstream-Status: Backport [https://github.com/mongodb/mongo/commit/77ffbcb4f5673b154fe64872cba9f34ce97bc55d] +Signed-off-by: Khem Raj <[email protected]> +--- + src/mongo/db/storage/biggie/store.h | 21 --------------------- + 1 file changed, 21 deletions(-) + +diff --git a/src/mongo/db/storage/biggie/store.h b/src/mongo/db/storage/biggie/store.h +index a09b5b4..aeaa337 100644 +--- a/src/mongo/db/storage/biggie/store.h ++++ b/src/mongo/db/storage/biggie/store.h +@@ -809,18 +809,6 @@ private: + + virtual ~Node() = default; + +- friend void swap(Node& first, Node& second) { +- std::swap(first.trieKey, second.trieKey); +- std::swap(first.depth, second.depth); +- std::swap(first.data, second.data); +- std::swap(first.children, second.children); +- } +- +- Node& operator=(const Node other) { +- swap(*this, other); +- return *this; +- } +- + bool isLeaf() const { + for (auto child : _children) { + if (child != nullptr) +@@ -855,17 +843,8 @@ private: + _nextVersion->_hasPreviousVersion = false; + } + +- friend void swap(Head& first, Head& second) { +- Node::swap(first, second); +- } +- + Head(Head&& other) : Node(std::move(other)) {} + +- Head& operator=(const Head other) { +- swap(*this, other); +- return *this; +- } +- + bool hasPreviousVersion() const { + return _hasPreviousVersion; + }
meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb +1 -0
@@ -40,6 +40,7 @@ SRC_URI = "git://github.com/mongodb/mongo.git;branch=v4.4;protocol=https \ file://0002-SConstruct-Pass-call-to-CheckLibWithHeader-as-a-keyw.patch \ file://0003-boost-Fix-build-with-clang-23.patch \ file://0004-ssl-Fix-build-with-OpenSSL-4.patch \ + file://0005-SERVER-49099-Remove-the-Node-swap-function-in-Biggie.patch \ " SRC_URI:append:libc-musl = "\ file://0001-Mark-one-of-strerror_r-implementation-glibc-specific.patch \
PATCH 61/64 mongodb: Keep build paths out of buildInfo
In reply to [email protected]From: Khem Raj <[email protected]>
By default buildInfo embeds the compiler version string and CCFLAGS, CXXFLAGS and LINKFLAGS, which carry --sysroot and -ffile-prefix-map paths into mongod and mongos and trigger buildpaths QA warnings. Pass a variables file that drops those entries from MONGO_BUILDINFO_ENVIRONMENT_DATA.
--- .../recipes-dbs/mongodb/mongodb/oe-buildinfo.vars | 11 +++++++++++ .../meta-python/recipes-dbs/mongodb/mongodb_git.bb | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/oe-buildinfo.vars
meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/oe-buildinfo.vars new file +11 -0
@@ -0,0 +1,11 @@ +# Keep the compiler and its flags, which carry build paths, out of +# the buildInfo command and --version output +from mongo.generators import default_buildinfo_environment_data + +MONGO_BUILDINFO_ENVIRONMENT_DATA = { + k: v for k, v in default_buildinfo_environment_data().items() + if k not in ('cc', 'ccflags', 'cxx', 'cxxflags', 'linkflags') +} + +# SConstruct rejects unknown names left in a variables file +del default_buildinfo_environment_data
meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb +2 -0
@@ -41,6 +41,7 @@ SRC_URI = "git://github.com/mongodb/mongo.git;branch=v4.4;protocol=https \ file://0003-boost-Fix-build-with-clang-23.patch \ file://0004-ssl-Fix-build-with-OpenSSL-4.patch \ file://0005-SERVER-49099-Remove-the-Node-swap-function-in-Biggie.patch \ + file://oe-buildinfo.vars \ " SRC_URI:append:libc-musl = "\ file://0001-Mark-one-of-strerror_r-implementation-glibc-specific.patch \
@@ -87,6 +88,7 @@ EXTRA_OESCONS = "PREFIX=${prefix} \ TARGET_ARCH=${MONGO_ARCH} \ MONGO_VERSION=${PV} \ OBJCOPY=${OBJCOPY} \ + --variables-files=${UNPACKDIR}/oe-buildinfo.vars \ --ssl \ --disable-warnings-as-errors \ --use-system-zlib \
PATCH 62/64 frr: Fix build with bison rejecting paths in output directives
In reply to [email protected]From: Khem Raj <[email protected]>
bison now carries the fix for CVE-2026-56390, which rejects '/' in %header/%defines and %output file names, so generating the command parser fails:
lib/command_parse.y:20.10-30: error: invalid %header file name ignored lib/command_parse.y:21.10-30: error: invalid %output file name ignored
Backport the upstream fix which drops these directives and passes the output file name with -o instead.
AI-Generated: Uses Claude Code
--- ...ths-in-bison-output-defines-directiv.patch | 54 +++++++++++++++++++ .../recipes-protocols/frr/frr_10.6.2.bb | 1 + 2 files changed, 55 insertions(+) create mode 100644 meta-networking/recipes-protocols/frr/frr/0001-lib-Don-t-use-paths-in-bison-output-defines-directiv.patch
meta-networking/recipes-protocols/frr/frr/0001-lib-Don-t-use-paths-in-bison-output-defines-directiv.patch new file +54 -0
@@ -0,0 +1,54 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Donatas Abraitis <[email protected]> +Date: Tue, 13 Oct 2026 15:33:02 +0300 +Subject: [PATCH] lib: Don't use paths in bison %output/%defines directives + +The fix for CVE-2026-56390 rejects any '/' in %output and %header (%defines) +file names. The directive is then ignored, and bison reports an error +and exits non-zero, which breaks the build: + + invalid %output file name ignored + invalid %header file name ignored + +We only used these directives to place the generated files in lib/, +because the .y.c rule ran bison without -o. Drop them and pass +`-o $@` instead. With -d, bison derives lib/command_parse.h from the +-o name, so the generated files stay the same. + +Signed-off-by: Donatas Abraitis <[email protected]> + +Upstream-Status: Backport [https://github.com/FRRouting/frr/commit/b7ad39d799d98c982713b29c1d0ba6d49691308b] +Signed-off-by: Khem Raj <[email protected]> +--- + lib/command_parse.y | 4 ---- + lib/subdir.am | 2 +- + 2 files changed, 1 insertion(+), 5 deletions(-) + +diff --git a/lib/command_parse.y b/lib/command_parse.y +index bc04bc93bb4c..4d9377e5df87 100644 +--- a/lib/command_parse.y ++++ b/lib/command_parse.y +@@ -16,10 +16,6 @@ + %define api.pure full + /* define api.prefix {cmd_yy} */ + +-/* names for generated header and parser files */ +-%defines "lib/command_parse.h" +-%output "lib/command_parse.c" +- + /* note: code blocks are output in order, to both .c and .h: + * 1. %code requires + * 2. %union + bison forward decls +diff --git a/lib/subdir.am b/lib/subdir.am +index 20947c306d60..dafebacf8e7a 100644 +--- a/lib/subdir.am ++++ b/lib/subdir.am +@@ -537,7 +537,7 @@ CLEANFILES += vtysh/vtysh_cmd.c $(vtysh_cmd_split) + .l.c: + $(AM_V_LEX)$(am__skiplex) $(LEXCOMPILE) $< + .y.c: +- $(AM_V_YACC)$(am__skipyacc) $(YACCCOMPILE) $< ++ $(AM_V_YACC)$(am__skipyacc) $(YACCCOMPILE) -o $@ $< + + # + # generated sources & extra foo
meta-networking/recipes-protocols/frr/frr_10.6.2.bb +1 -0
@@ -12,6 +12,7 @@ LIC_FILES_CHKSUM = "file://doc/licenses/GPL-2.0;md5=b234ee4d69f5fce4486a80fdaf4a SRC_URI = "git://github.com/FRRouting/frr.git;protocol=https;branch=stable/${@oe.utils.trim_version('${PV}', 2)};tag=frr-${PV} \ file://frr.pam \ + file://0001-lib-Don-t-use-paths-in-bison-output-defines-directiv.patch \ " SRCREV = "c8efb33af96f9f1220d0fdda6ac049f9126edd6f"
PATCH 63/64 tuna: Fix build with PEP 517 frontends
In reply to [email protected]From: Khem Raj <[email protected]>
setup.py imports tuna.version from the source tree. The setuptools build_meta backend does not put the source directory on sys.path, so do_compile fails:
File "<string>", line 9, in <module>
ModuleNotFoundError: No module named 'tuna'
ERROR Backend subprocess exited when trying to invoke get_requires_for_build_wheel
It only worked so far because python3targetconfig added an empty entry, i.e. the current directory, to PYTHONPATH. The same happens with a plain "python3 -m build" outside of OE.
pyproject.toml already gets the version from tuna.version via [tool.setuptools.dynamic], so drop the import from setup.py.
AI-Generated: Uses Claude Code
--- ...una-Do-not-import-tuna-from-setup.py.patch | 48 +++++++++++++++++++ .../recipes-extended/tuna/tuna_0.21.bb | 4 +- 2 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 meta-python/recipes-extended/tuna/tuna/0001-tuna-Do-not-import-tuna-from-setup.py.patch
meta-python/recipes-extended/tuna/tuna/0001-tuna-Do-not-import-tuna-from-setup.py.patch new file +48 -0
@@ -0,0 +1,48 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Tue, 27 Oct 2026 22:59:58 -0700 +Subject: [PATCH] tuna: Do not import tuna from setup.py + +Commit cb5593a2be9c ("tuna: Get the tuna version from a single source") +made setup.py import tuna.version. setup.py runs from the setuptools +build backend, which does not put the source directory on sys.path (only +the legacy backend does), so building with a PEP 517 frontend fails: + + $ python3 -m build --no-isolation --wheel + ... + File "<string>", line 9, in <module> + ModuleNotFoundError: No module named 'tuna' + ERROR Backend subprocess exited when trying to invoke get_requires_for_build_wheel + +pyproject.toml already takes the version from tuna.version.TUNA_VERSION +via [tool.setuptools.dynamic], which setuptools reads without importing +the package, so drop the import and the version argument from setup(). + +Upstream-Status: Submitted [https://lore.kernel.org/linux-rt-users/[email protected]/] +Signed-off-by: Khem Raj <[email protected]> +--- + setup.py | 4 ---- + 1 file changed, 4 deletions(-) + +diff --git a/setup.py b/setup.py +index 8036a64..07ec523 100755 +--- a/setup.py ++++ b/setup.py +@@ -5,9 +5,6 @@ import sysconfig + from os.path import isfile, relpath + from setuptools import setup + +-# Get the tuna version from a single source +-from tuna.version import TUNA_VERSION +- + if isfile("MANIFEST"): + os.unlink("MANIFEST") + +@@ -19,7 +16,6 @@ if SCHEME not in sysconfig.get_scheme_names(): + PYTHONLIB = relpath(sysconfig.get_path('platlib', SCHEME), '/usr') + + setup(name="tuna", +- version = TUNA_VERSION, + description = "Application tuning GUI", + author = "Arnaldo Carvalho de Melo, John Kacur", + author_email = "[email protected], [email protected]",
meta-python/recipes-extended/tuna/tuna_0.21.bb +3 -1
@@ -3,7 +3,9 @@ HOMEPAGE = "https://rt.wiki.kernel.org/index.php/Tuna" LICENSE = "GPL-2.0-only" LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6" -SRC_URI = "git://git.kernel.org/pub/scm/utils/tuna/tuna.git;branch=main" +SRC_URI = "git://git.kernel.org/pub/scm/utils/tuna/tuna.git;branch=main \ + file://0001-tuna-Do-not-import-tuna-from-setup.py.patch \ + " SRCREV = "cb5593a2be9c26c8865f46bf29723c1ce93890aa"
PATCH 64/64 libplacebo: update SRC_URI branch
In reply to [email protected]From: Ankur Tyagi <[email protected]>
--- meta-oe/recipes-multimedia/mplayer/libplacebo_7.360.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-multimedia/mplayer/libplacebo_7.360.1.bb +1 -1
@@ -4,7 +4,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=435ed639f84d4585d93824e7da3d85da" DEPENDS += "fastfloat glad-native python3-mako-native python3-jinja2-native vulkan-headers" -SRC_URI = "git://code.videolan.org/videolan/libplacebo.git;protocol=https;branch=release;tag=v${PV}" +SRC_URI = "git://code.videolan.org/videolan/libplacebo.git;protocol=https;branch=v7.360;tag=v${PV}" SRCREV = "cee9b076f2c63104ccfd497fa79c39a867293ec4" inherit meson pkgconfig