All of lore.kernel.org
 help / color / mirror / Atom feed
* [blacksail][PATCH 01/64] nng: correct upstream branch name
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
@ 2026-11-19 18:32 ` ankur.tyagi85
  2026-11-19 18:32 ` [blacksail][PATCH 02/64] zchunk: upgrade 1.5.4 -> 1.5.5 ankur.tyagi85
                   ` (62 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:32 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Nate Kent

From: Nate Kent <nate@nkent.net>

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.

Signed-off-by: Nate Kent <nate@nkent.net>
---
 meta-networking/recipes-connectivity/nanomsg/nng_1.12.3.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-networking/recipes-connectivity/nanomsg/nng_1.12.3.bb b/meta-networking/recipes-connectivity/nanomsg/nng_1.12.3.bb
index 7f8a3986f2..f10cf51c57 100644
--- a/meta-networking/recipes-connectivity/nanomsg/nng_1.12.3.bb
+++ b/meta-networking/recipes-connectivity/nanomsg/nng_1.12.3.bb
@@ -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 \
           "
 

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 02/64] zchunk: upgrade 1.5.4 -> 1.5.5
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
  2026-11-19 18:32 ` [blacksail][PATCH 01/64] nng: correct upstream branch name ankur.tyagi85
@ 2026-11-19 18:32 ` ankur.tyagi85
  2026-11-19 18:32 ` [blacksail][PATCH 03/64] tcpreplay: upgrade 4.6.1 -> 4.6.2 ankur.tyagi85
                   ` (61 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:32 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ankur Tyagi, Khem Raj, Peter Marko

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

- Fix out-of-bounds read
- Harden multipart download parsing against malicious servers
- Harden chunk decompression and header parsing

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Handle CVE-2026-117556.
Signed-off-by: Peter Marko <peter.marko@siemens.com>
---
 .../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%)

diff --git a/meta-oe/recipes-support/zchunk/zchunk_1.5.4.bb b/meta-oe/recipes-support/zchunk/zchunk_1.5.5.bb
similarity index 81%
rename from meta-oe/recipes-support/zchunk/zchunk_1.5.4.bb
rename to meta-oe/recipes-support/zchunk/zchunk_1.5.5.bb
index 9d587debfd..f84cd8d6fe 100644
--- a/meta-oe/recipes-support/zchunk/zchunk_1.5.4.bb
+++ b/meta-oe/recipes-support/zchunk/zchunk_1.5.5.bb
@@ -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"

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 03/64] tcpreplay: upgrade 4.6.1 -> 4.6.2
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
  2026-11-19 18:32 ` [blacksail][PATCH 01/64] nng: correct upstream branch name ankur.tyagi85
  2026-11-19 18:32 ` [blacksail][PATCH 02/64] zchunk: upgrade 1.5.4 -> 1.5.5 ankur.tyagi85
@ 2026-11-19 18:32 ` ankur.tyagi85
  2026-11-19 18:32 ` [blacksail][PATCH 04/64] proftpd: upgrade 1.3.9d -> 1.3.9e ankur.tyagi85
                   ` (60 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:32 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ankur Tyagi, Khem Raj

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

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

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
(cherry picked from commit c29f3e598a674c687bb48766e4940da1a85dca5f)
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 ...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%)

diff --git a/meta-networking/recipes-support/tcpreplay/tcpreplay/0002-common-txring-fix-struct-ethhdr-redefinition-on-mus.patch b/meta-networking/recipes-support/tcpreplay/tcpreplay/0002-common-txring-fix-struct-ethhdr-redefinition-on-mus.patch
deleted file mode 100644
index 827b083712..0000000000
--- a/meta-networking/recipes-support/tcpreplay/tcpreplay/0002-common-txring-fix-struct-ethhdr-redefinition-on-mus.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-From: Khem Raj <khem.raj@oss.qualcomm.com>
-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 <khem.raj@oss.qualcomm.com>
----
---- 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
diff --git a/meta-networking/recipes-support/tcpreplay/tcpreplay_4.6.1.bb b/meta-networking/recipes-support/tcpreplay/tcpreplay_4.6.2.bb
similarity index 82%
rename from meta-networking/recipes-support/tcpreplay/tcpreplay_4.6.1.bb
rename to meta-networking/recipes-support/tcpreplay/tcpreplay_4.6.2.bb
index 5234da282a..6896a2b6da 100644
--- a/meta-networking/recipes-support/tcpreplay/tcpreplay_4.6.1.bb
+++ b/meta-networking/recipes-support/tcpreplay/tcpreplay_4.6.2.bb
@@ -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+)+)"

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 04/64] proftpd: upgrade 1.3.9d -> 1.3.9e
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (2 preceding siblings ...)
  2026-11-19 18:32 ` [blacksail][PATCH 03/64] tcpreplay: upgrade 4.6.1 -> 4.6.2 ankur.tyagi85
@ 2026-11-19 18:32 ` ankur.tyagi85
  2026-11-19 18:32 ` [blacksail][PATCH 05/64] weechat: Upgrade 4.10.0 -> 4.10.1 ankur.tyagi85
                   ` (59 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:32 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ankur Tyagi, Khem Raj

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

Changelog:
https://github.com/proftpd/proftpd/blob/v1.3.9e/NEWS

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
(cherry picked from commit 412e5ad57594e15e1e2b679e71983c77ea453a16)
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../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%)

diff --git a/meta-networking/recipes-daemons/proftpd/proftpd_1.3.9d.bb b/meta-networking/recipes-daemons/proftpd/proftpd_1.3.9e.bb
similarity index 99%
rename from meta-networking/recipes-daemons/proftpd/proftpd_1.3.9d.bb
rename to meta-networking/recipes-daemons/proftpd/proftpd_1.3.9e.bb
index 5c194ebb23..1fe9908f0c 100644
--- a/meta-networking/recipes-daemons/proftpd/proftpd_1.3.9d.bb
+++ b/meta-networking/recipes-daemons/proftpd/proftpd_1.3.9e.bb
@@ -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} \

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 05/64] weechat: Upgrade 4.10.0 -> 4.10.1
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (3 preceding siblings ...)
  2026-11-19 18:32 ` [blacksail][PATCH 04/64] proftpd: upgrade 1.3.9d -> 1.3.9e ankur.tyagi85
@ 2026-11-19 18:32 ` ankur.tyagi85
  2026-11-19 18:32 ` [blacksail][PATCH 06/64] json-schema-validator: upgrade 2.4.0 -> 2.4.1 ankur.tyagi85
                   ` (58 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:32 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Leon Anavi, Khem Raj, Ankur Tyagi

From: Leon Anavi <leon.anavi@konsulko.com>

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

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
(cherry picked from commit 298e364a9e34a2019cbfc815dd50fca9283ff861)
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../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%)

diff --git a/meta-networking/recipes-irc/weechat/weechat_4.10.0.bb b/meta-networking/recipes-irc/weechat/weechat_4.10.1.bb
similarity index 95%
rename from meta-networking/recipes-irc/weechat/weechat_4.10.0.bb
rename to meta-networking/recipes-irc/weechat/weechat_4.10.1.bb
index 286d474c83..00030452dc 100644
--- a/meta-networking/recipes-irc/weechat/weechat_4.10.0.bb
+++ b/meta-networking/recipes-irc/weechat/weechat_4.10.1.bb
@@ -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
 

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 06/64] json-schema-validator: upgrade 2.4.0 -> 2.4.1
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (4 preceding siblings ...)
  2026-11-19 18:32 ` [blacksail][PATCH 05/64] weechat: Upgrade 4.10.0 -> 4.10.1 ankur.tyagi85
@ 2026-11-19 18:32 ` ankur.tyagi85
  2026-11-19 18:32 ` [blacksail][PATCH 07/64] valkey: Upgrade 9.1.2 -> 9.1.3 ankur.tyagi85
                   ` (57 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:32 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ankur Tyagi, Khem Raj

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

Changelog:
https://github.com/pboettch/json-schema-validator/releases/tag/2.4.1

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
(cherry picked from commit cf46cc3b9203baa9f1700f92d33e8da81c3539ae)
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 ...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%)

diff --git a/meta-oe/recipes-devtools/json-schema-validator/json-schema-validator_2.4.0.bb b/meta-oe/recipes-devtools/json-schema-validator/json-schema-validator_2.4.1.bb
similarity index 89%
rename from meta-oe/recipes-devtools/json-schema-validator/json-schema-validator_2.4.0.bb
rename to meta-oe/recipes-devtools/json-schema-validator/json-schema-validator_2.4.1.bb
index 857fdb779d..3332468a05 100644
--- a/meta-oe/recipes-devtools/json-schema-validator/json-schema-validator_2.4.0.bb
+++ b/meta-oe/recipes-devtools/json-schema-validator/json-schema-validator_2.4.1.bb
@@ -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"
 

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 07/64] valkey: Upgrade 9.1.2 -> 9.1.3
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (5 preceding siblings ...)
  2026-11-19 18:32 ` [blacksail][PATCH 06/64] json-schema-validator: upgrade 2.4.0 -> 2.4.1 ankur.tyagi85
@ 2026-11-19 18:32 ` ankur.tyagi85
  2026-11-19 18:32 ` [blacksail][PATCH 08/64] haveged: upgrade 1.9.26 -> 1.9.27 ankur.tyagi85
                   ` (56 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:32 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Leon Anavi, Khem Raj, Ankur Tyagi

From: Leon Anavi <leon.anavi@konsulko.com>

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

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
(cherry picked from commit 76fbf5e4c6c4d88af5ff511ab298c7d9cb08bfa6)
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../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%)

diff --git a/meta-oe/recipes-extended/valkey/valkey_9.1.2.bb b/meta-oe/recipes-extended/valkey/valkey_9.1.3.bb
similarity index 98%
rename from meta-oe/recipes-extended/valkey/valkey_9.1.2.bb
rename to meta-oe/recipes-extended/valkey/valkey_9.1.3.bb
index 187c9a046e..40e8a9cd75 100644
--- a/meta-oe/recipes-extended/valkey/valkey_9.1.2.bb
+++ b/meta-oe/recipes-extended/valkey/valkey_9.1.3.bb
@@ -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"
 

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 08/64] haveged: upgrade 1.9.26 -> 1.9.27
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (6 preceding siblings ...)
  2026-11-19 18:32 ` [blacksail][PATCH 07/64] valkey: Upgrade 9.1.2 -> 9.1.3 ankur.tyagi85
@ 2026-11-19 18:32 ` ankur.tyagi85
  2026-11-19 18:32 ` [blacksail][PATCH 09/64] libraw: upgrade 0.22.2 -> 0.22.3 ankur.tyagi85
                   ` (55 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:32 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ankur Tyagi, Khem Raj

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

Changelog:
https://github.com/jirka-h/haveged/releases/tag/v1.9.27

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
(cherry picked from commit 694eb9006e1e1bd6847a03851389167cf5a80996)
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../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%)

diff --git a/meta-oe/recipes-extended/haveged/haveged_1.9.26.bb b/meta-oe/recipes-extended/haveged/haveged_1.9.27.bb
similarity index 94%
rename from meta-oe/recipes-extended/haveged/haveged_1.9.26.bb
rename to meta-oe/recipes-extended/haveged/haveged_1.9.27.bb
index 727f856379..13782ddd5d 100644
--- a/meta-oe/recipes-extended/haveged/haveged_1.9.26.bb
+++ b/meta-oe/recipes-extended/haveged/haveged_1.9.27.bb
@@ -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} \
 "
 

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 09/64] libraw: upgrade 0.22.2 -> 0.22.3
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (7 preceding siblings ...)
  2026-11-19 18:32 ` [blacksail][PATCH 08/64] haveged: upgrade 1.9.26 -> 1.9.27 ankur.tyagi85
@ 2026-11-19 18:32 ` ankur.tyagi85
  2026-11-19 18:32 ` [blacksail][PATCH 10/64] python3-httplib2: Upgrade 0.32.0 -> 0.32.1 ankur.tyagi85
                   ` (54 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:32 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ankur Tyagi, Khem Raj

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

Changelog:
https://github.com/LibRaw/LibRaw/releases/tag/0.22.3

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
(cherry picked from commit 2f7a0c3dfdf3e8faa6fbfd07b60328dfa65a9b10)
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../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%)

diff --git a/meta-oe/recipes-support/libraw/libraw_0.22.2.bb b/meta-oe/recipes-support/libraw/libraw_0.22.3.bb
similarity index 92%
rename from meta-oe/recipes-support/libraw/libraw_0.22.2.bb
rename to meta-oe/recipes-support/libraw/libraw_0.22.3.bb
index 2db0c14a61..c0601f71a8 100644
--- a/meta-oe/recipes-support/libraw/libraw_0.22.2.bb
+++ b/meta-oe/recipes-support/libraw/libraw_0.22.3.bb
@@ -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
 

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 10/64] python3-httplib2: Upgrade 0.32.0 -> 0.32.1
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (8 preceding siblings ...)
  2026-11-19 18:32 ` [blacksail][PATCH 09/64] libraw: upgrade 0.22.2 -> 0.22.3 ankur.tyagi85
@ 2026-11-19 18:32 ` ankur.tyagi85
  2026-11-19 18:32 ` [blacksail][PATCH 11/64] python3-tzdata: Upgrade 2026.5 -> 2026.6 ankur.tyagi85
                   ` (53 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:32 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Leon Anavi, Khem Raj, Ankur Tyagi

From: Leon Anavi <leon.anavi@konsulko.com>

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/

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
(cherry picked from commit cbeb9338439eb0f017e82d74d2e28add8edc9bd3)
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.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%)

diff --git a/meta-python/recipes-devtools/python/python3-httplib2_0.32.0.bb b/meta-python/recipes-devtools/python/python3-httplib2_0.32.1.bb
similarity index 85%
rename from meta-python/recipes-devtools/python/python3-httplib2_0.32.0.bb
rename to meta-python/recipes-devtools/python/python3-httplib2_0.32.1.bb
index 341cb3dd04..54af71c097 100644
--- a/meta-python/recipes-devtools/python/python3-httplib2_0.32.0.bb
+++ b/meta-python/recipes-devtools/python/python3-httplib2_0.32.1.bb
@@ -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
 

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 11/64] python3-tzdata: Upgrade 2026.5 -> 2026.6
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (9 preceding siblings ...)
  2026-11-19 18:32 ` [blacksail][PATCH 10/64] python3-httplib2: Upgrade 0.32.0 -> 0.32.1 ankur.tyagi85
@ 2026-11-19 18:32 ` ankur.tyagi85
  2026-11-19 18:32 ` [blacksail][PATCH 12/64] glaze: Install the CMake files in /usr/lib/cmake/glaze (as intended) ankur.tyagi85
                   ` (52 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:32 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Leon Anavi, Khem Raj, Ankur Tyagi

From: Leon Anavi <leon.anavi@konsulko.com>

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.

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
(cherry picked from commit 5d70416431f6acf354d600f74ba57200854de64c)
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../{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%)

diff --git a/meta-python/recipes-devtools/python/python3-tzdata_2026.5.bb b/meta-python/recipes-devtools/python/python3-tzdata_2026.6.bb
similarity index 86%
rename from meta-python/recipes-devtools/python/python3-tzdata_2026.5.bb
rename to meta-python/recipes-devtools/python/python3-tzdata_2026.6.bb
index 4590cec28d..b13eae98f6 100644
--- a/meta-python/recipes-devtools/python/python3-tzdata_2026.5.bb
+++ b/meta-python/recipes-devtools/python/python3-tzdata_2026.6.bb
@@ -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
 

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 12/64] glaze: Install the CMake files in /usr/lib/cmake/glaze (as intended)
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (10 preceding siblings ...)
  2026-11-19 18:32 ` [blacksail][PATCH 11/64] python3-tzdata: Upgrade 2026.5 -> 2026.6 ankur.tyagi85
@ 2026-11-19 18:32 ` ankur.tyagi85
  2026-11-19 18:32 ` [blacksail][PATCH 13/64] assimp: patch CVE-2026-117608 ankur.tyagi85
                   ` (51 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:32 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Peter Kjellerstedt, Peter Kjellerstedt

From: Peter Kjellerstedt <pkj@axis.com>

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.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
---
 meta-oe/recipes-support/glaze/glaze_8.3.0.bb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/meta-oe/recipes-support/glaze/glaze_8.3.0.bb b/meta-oe/recipes-support/glaze/glaze_8.3.0.bb
index b393460c9f..e1bef79ba5 100644
--- a/meta-oe/recipes-support/glaze/glaze_8.3.0.bb
+++ b/meta-oe/recipes-support/glaze/glaze_8.3.0.bb
@@ -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.

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 13/64] assimp: patch CVE-2026-117608
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (11 preceding siblings ...)
  2026-11-19 18:32 ` [blacksail][PATCH 12/64] glaze: Install the CMake files in /usr/lib/cmake/glaze (as intended) ankur.tyagi85
@ 2026-11-19 18:32 ` ankur.tyagi85
  2026-11-19 18:32 ` [blacksail][PATCH 14/64] flatcc: patch CVE-2026-116733 ankur.tyagi85
                   ` (50 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:32 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ankur Tyagi

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

Details:
https://nvd.nist.gov/vuln/detail/cve-2026-117608

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../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

diff --git a/meta-oe/recipes-graphics/assimp/assimp/CVE-2026-117608.patch b/meta-oe/recipes-graphics/assimp/assimp/CVE-2026-117608.patch
new file mode 100644
index 0000000000..2a388cb147
--- /dev/null
+++ b/meta-oe/recipes-graphics/assimp/assimp/CVE-2026-117608.patch
@@ -0,0 +1,62 @@
+From 9b9c149237ff7bf7f71db8eba7b6cc707e00e0bc Mon Sep 17 00:00:00 2001
+From: venkatchalla06 <111296179+venkatchalla06@users.noreply.github.com>
+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 <noreply@anthropic.com>
+Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com>
+(cherry picked from commit 7dbc85d9218fae017d4fad70269e7569f7b0c870)
+
+CVE: CVE-2026-117608
+Upstream-Status: Backport [https://github.com/assimp/assimp/commit/7dbc85d9218fae017d4fad70269e7569f7b0c870]
+Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
+---
+ 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");
+     }
diff --git a/meta-oe/recipes-graphics/assimp/assimp_git.bb b/meta-oe/recipes-graphics/assimp/assimp_git.bb
index 561ef50508..5fd56f719d 100644
--- a/meta-oe/recipes-graphics/assimp/assimp_git.bb
+++ b/meta-oe/recipes-graphics/assimp/assimp_git.bb
@@ -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"
 

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 00/64] Blacksail pull request
@ 2026-11-19 18:32 ankur.tyagi85
  2026-11-19 18:32 ` [blacksail][PATCH 01/64] nng: correct upstream branch name ankur.tyagi85
                   ` (63 more replies)
  0 siblings, 64 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:32 UTC (permalink / raw)
  To: openembedded-devel
  Cc: Nate Kent, Ankur Tyagi, Khem Raj, Peter Marko, Leon Anavi,
	Peter Kjellerstedt, Jason Schonberg, Johannes Schneider,
	Martin Siegumfeldt, James Lee, Markus Volk, Awais Belal,
	Armin Kuster, Mike Looijmans, Gyorgy Sarvari, Anuj Mittal,
	Khem Raj

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

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.patch


^ permalink raw reply	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 14/64] flatcc: patch CVE-2026-116733
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (12 preceding siblings ...)
  2026-11-19 18:32 ` [blacksail][PATCH 13/64] assimp: patch CVE-2026-117608 ankur.tyagi85
@ 2026-11-19 18:32 ` ankur.tyagi85
  2026-11-19 18:32 ` [blacksail][PATCH 15/64] flatcc: patch CVE-2026-116734 ankur.tyagi85
                   ` (49 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:32 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ankur Tyagi

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

Details:
https://nvd.nist.gov/vuln/detail/cve-2026-116733

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../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

diff --git a/meta-oe/recipes-devtools/flatcc/flatcc/CVE-2026-116733.patch b/meta-oe/recipes-devtools/flatcc/flatcc/CVE-2026-116733.patch
new file mode 100644
index 0000000000..86272984f7
--- /dev/null
+++ b/meta-oe/recipes-devtools/flatcc/flatcc/CVE-2026-116733.patch
@@ -0,0 +1,30 @@
+From 8fcc19366aa081068d2c845084a3ffd907c88129 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Mikkel=20Fahn=C3=B8e=20J=C3=B8rgensen?= <mikkel@dvide.com>
+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 <ankur.tyagi85@gmail.com>
+---
+ 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;
diff --git a/meta-oe/recipes-devtools/flatcc/flatcc_0.6.4.bb b/meta-oe/recipes-devtools/flatcc/flatcc_0.6.4.bb
index 059f888eed..9defbfac04 100644
--- a/meta-oe/recipes-devtools/flatcc/flatcc_0.6.4.bb
+++ b/meta-oe/recipes-devtools/flatcc/flatcc_0.6.4.bb
@@ -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

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 15/64] flatcc: patch CVE-2026-116734
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (13 preceding siblings ...)
  2026-11-19 18:32 ` [blacksail][PATCH 14/64] flatcc: patch CVE-2026-116733 ankur.tyagi85
@ 2026-11-19 18:32 ` ankur.tyagi85
  2026-11-19 18:32 ` [blacksail][PATCH 16/64] ndpi: patch CVE-2026-116744 ankur.tyagi85
                   ` (48 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:32 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ankur Tyagi

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

Details:
https://nvd.nist.gov/vuln/detail/cve-2026-116734

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../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

diff --git a/meta-oe/recipes-devtools/flatcc/flatcc/CVE-2026-116734.patch b/meta-oe/recipes-devtools/flatcc/flatcc/CVE-2026-116734.patch
new file mode 100644
index 0000000000..a9e5b59d39
--- /dev/null
+++ b/meta-oe/recipes-devtools/flatcc/flatcc/CVE-2026-116734.patch
@@ -0,0 +1,30 @@
+From 0bdd50b31bfaabaef9cd92c1a3da7413fc091684 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Mikkel=20Fahn=C3=B8e=20J=C3=B8rgensen?= <mikkel@dvide.com>
+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 <ankur.tyagi85@gmail.com>
+---
+ 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;
+     }
+ 
diff --git a/meta-oe/recipes-devtools/flatcc/flatcc_0.6.4.bb b/meta-oe/recipes-devtools/flatcc/flatcc_0.6.4.bb
index 9defbfac04..330aeccc16 100644
--- a/meta-oe/recipes-devtools/flatcc/flatcc_0.6.4.bb
+++ b/meta-oe/recipes-devtools/flatcc/flatcc_0.6.4.bb
@@ -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"
 

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 16/64] ndpi: patch CVE-2026-116744
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (14 preceding siblings ...)
  2026-11-19 18:32 ` [blacksail][PATCH 15/64] flatcc: patch CVE-2026-116734 ankur.tyagi85
@ 2026-11-19 18:32 ` ankur.tyagi85
  2026-11-19 18:32 ` [blacksail][PATCH 17/64] cockpit: upgrade 366 -> 366.1 ankur.tyagi85
                   ` (47 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:32 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ankur Tyagi

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

Details:
https://nvd.nist.gov/vuln/detail/cve-2026-116744

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../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

diff --git a/meta-networking/recipes-support/ntopng/files/CVE-2026-116744.patch b/meta-networking/recipes-support/ntopng/files/CVE-2026-116744.patch
new file mode 100644
index 0000000000..5794963ada
--- /dev/null
+++ b/meta-networking/recipes-support/ntopng/files/CVE-2026-116744.patch
@@ -0,0 +1,33 @@
+From 00706d4da0b7a1f9eff61e5835a0a1cc22c9c7e1 Mon Sep 17 00:00:00 2001
+From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com>
+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 <ankur.tyagi85@gmail.com>
+---
+ 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) {
diff --git a/meta-networking/recipes-support/ntopng/ndpi_5.0.bb b/meta-networking/recipes-support/ntopng/ndpi_5.0.bb
index 6eadf8ba62..80890b1f27 100644
--- a/meta-networking/recipes-support/ntopng/ndpi_5.0.bb
+++ b/meta-networking/recipes-support/ntopng/ndpi_5.0.bb
@@ -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

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 17/64] cockpit: upgrade 366 -> 366.1
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (15 preceding siblings ...)
  2026-11-19 18:32 ` [blacksail][PATCH 16/64] ndpi: patch CVE-2026-116744 ankur.tyagi85
@ 2026-11-19 18:32 ` ankur.tyagi85
  2026-11-19 18:32 ` [blacksail][PATCH 18/64] imx-cst: restore PKCS#11 signing on OpenSSL 4 via the provider ankur.tyagi85
                   ` (46 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:32 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Jason Schonberg, Khem Raj, Ankur Tyagi

From: Jason Schonberg <schonm@gmail.com>

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

Signed-off-by: Jason Schonberg <schonm@gmail.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
(cherry picked from commit 33f74f5dc5cf6a1411e6d26f8535f0e31851bd09)
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../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%)

diff --git a/meta-webserver/recipes-webadmin/cockpit/cockpit_366.bb b/meta-webserver/recipes-webadmin/cockpit/cockpit_366.1.bb
similarity index 98%
rename from meta-webserver/recipes-webadmin/cockpit/cockpit_366.bb
rename to meta-webserver/recipes-webadmin/cockpit/cockpit_366.1.bb
index b8d12d5ea1..e12cabcd98 100644
--- a/meta-webserver/recipes-webadmin/cockpit/cockpit_366.bb
+++ b/meta-webserver/recipes-webadmin/cockpit/cockpit_366.1.bb
@@ -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+)*)"

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 18/64] imx-cst: restore PKCS#11 signing on OpenSSL 4 via the provider
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (16 preceding siblings ...)
  2026-11-19 18:32 ` [blacksail][PATCH 17/64] cockpit: upgrade 366 -> 366.1 ankur.tyagi85
@ 2026-11-19 18:32 ` ankur.tyagi85
  2026-11-19 18:32 ` [blacksail][PATCH 19/64] libwebsockets: patch CVE-2026-114550 ankur.tyagi85
                   ` (45 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:32 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Johannes Schneider, Khem Raj, Ankur Tyagi

From: Johannes Schneider <johannes.schneider@leica-geosystems.com>

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.

Assisted-by: Claude:claude-opus-4-8
Signed-off-by: Johannes Schneider <johannes.schneider@leica-geosystems.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
(cherry picked from commit 3de9f29b7f0cf8587e05803169baa0dda016568a)
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 ...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

diff --git a/meta-oe/recipes-support/imx-cst/imx-cst/0017-cst-port-pkcs11-signing-from-engine-to-provider.patch b/meta-oe/recipes-support/imx-cst/imx-cst/0017-cst-port-pkcs11-signing-from-engine-to-provider.patch
new file mode 100644
index 0000000000..699402a447
--- /dev/null
+++ b/meta-oe/recipes-support/imx-cst/imx-cst/0017-cst-port-pkcs11-signing-from-engine-to-provider.patch
@@ -0,0 +1,236 @@
+From: Johannes Schneider <johannes.schneider@leica-geosystems.com>
+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 <johannes.schneider@leica-geosystems.com>
+---
+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, &params, 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);
diff --git a/meta-oe/recipes-support/imx-cst/imx-cst_4.0.1.bb b/meta-oe/recipes-support/imx-cst/imx-cst_4.0.1.bb
index ec6838e95d..3a0f717440 100644
--- a/meta-oe/recipes-support/imx-cst/imx-cst_4.0.1.bb
+++ b/meta-oe/recipes-support/imx-cst/imx-cst_4.0.1.bb
@@ -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"
 

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 19/64] libwebsockets: patch CVE-2026-114550
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (17 preceding siblings ...)
  2026-11-19 18:32 ` [blacksail][PATCH 18/64] imx-cst: restore PKCS#11 signing on OpenSSL 4 via the provider ankur.tyagi85
@ 2026-11-19 18:32 ` ankur.tyagi85
  2026-11-19 18:32 ` [blacksail][PATCH 20/64] spitools: upgrade 1.1.1 -> 1.2.0 ankur.tyagi85
                   ` (44 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:32 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Peter Marko

From: Peter Marko <peter.marko@siemens.com>

Pick patch mentioned in NVD CVE report.

Signed-off-by: Peter Marko <peter.marko@siemens.com>
---
 .../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

diff --git a/meta-oe/recipes-connectivity/libwebsockets/libwebsockets/CVE-2026-114550.patch b/meta-oe/recipes-connectivity/libwebsockets/libwebsockets/CVE-2026-114550.patch
new file mode 100644
index 0000000000..e398239bda
--- /dev/null
+++ b/meta-oe/recipes-connectivity/libwebsockets/libwebsockets/CVE-2026-114550.patch
@@ -0,0 +1,31 @@
+From c9e8e1834d7f13038c82963086b90e2ee9c5b44c Mon Sep 17 00:00:00 2001
+From: Andy Green <andy@warmcat.com>
+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 <peter.marko@siemens.com>
+---
+ 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__);
diff --git a/meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.5.8.bb b/meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.5.8.bb
index 0b612c6f4f..424f5633dd 100644
--- a/meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.5.8.bb
+++ b/meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.5.8.bb
@@ -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"

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 20/64] spitools: upgrade 1.1.1 -> 1.2.0
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (18 preceding siblings ...)
  2026-11-19 18:32 ` [blacksail][PATCH 19/64] libwebsockets: patch CVE-2026-114550 ankur.tyagi85
@ 2026-11-19 18:32 ` ankur.tyagi85
  2026-11-19 18:32 ` [blacksail][PATCH 21/64] hdf5: patch CVE-2026-19026, CVE-2026-19027 and CVE-2026-19028 ankur.tyagi85
                   ` (43 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:32 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Martin Siegumfeldt, Khem Raj

From: Martin Siegumfeldt <mns@gomspace.com>

Signed-off-by: Martin Siegumfeldt <mns@gomspace.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 .../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%)

diff --git a/meta-oe/recipes-support/spitools/spitools_1.1.1.bb b/meta-oe/recipes-support/spitools/spitools_1.2.0.bb
similarity index 86%
rename from meta-oe/recipes-support/spitools/spitools_1.1.1.bb
rename to meta-oe/recipes-support/spitools/spitools_1.2.0.bb
index e2ab0a5d11..d14affa9fe 100644
--- a/meta-oe/recipes-support/spitools/spitools_1.1.1.bb
+++ b/meta-oe/recipes-support/spitools/spitools_1.2.0.bb
@@ -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

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 21/64] hdf5: patch CVE-2026-19026, CVE-2026-19027 and CVE-2026-19028
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (19 preceding siblings ...)
  2026-11-19 18:32 ` [blacksail][PATCH 20/64] spitools: upgrade 1.1.1 -> 1.2.0 ankur.tyagi85
@ 2026-11-19 18:32 ` ankur.tyagi85
  2026-11-19 18:32 ` [blacksail][PATCH 22/64] hdf5: patch CVE-2026-19023 and CVE-2026-19024 ankur.tyagi85
                   ` (42 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:32 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ankur Tyagi

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

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

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 ...-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

diff --git a/meta-oe/recipes-support/hdf5/files/CVE-2026-19026-CVE-2026-19027-CVE-2026-19028.patch b/meta-oe/recipes-support/hdf5/files/CVE-2026-19026-CVE-2026-19027-CVE-2026-19028.patch
new file mode 100644
index 0000000000..8187612342
--- /dev/null
+++ b/meta-oe/recipes-support/hdf5/files/CVE-2026-19026-CVE-2026-19027-CVE-2026-19028.patch
@@ -0,0 +1,579 @@
+From 8623863e172662af94d30842e1f735219b682852 Mon Sep 17 00:00:00 2001
+From: Matt L <124107509+mattjala@users.noreply.github.com>
+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 <hyoklee@hdfgroup.org>
+
+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 <ankur.tyagi85@gmail.com>
+---
+ 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;
+             }
diff --git a/meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb b/meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb
index a0eb5eb155..3e87851cf9 100644
--- a/meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb
+++ b/meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb
@@ -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"
 

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 22/64] hdf5: patch CVE-2026-19023 and CVE-2026-19024
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (20 preceding siblings ...)
  2026-11-19 18:32 ` [blacksail][PATCH 21/64] hdf5: patch CVE-2026-19026, CVE-2026-19027 and CVE-2026-19028 ankur.tyagi85
@ 2026-11-19 18:32 ` ankur.tyagi85
  2026-11-19 18:32 ` [blacksail][PATCH 23/64] hdf5: patch CVE-2026-120689 ankur.tyagi85
                   ` (41 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:32 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ankur Tyagi

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

Details:
https://nvd.nist.gov/vuln/detail/cve-2026-19023
https://nvd.nist.gov/vuln/detail/cve-2026-19024

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../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

diff --git a/meta-oe/recipes-support/hdf5/files/CVE-2026-19023-CVE-2026-19024.patch b/meta-oe/recipes-support/hdf5/files/CVE-2026-19023-CVE-2026-19024.patch
new file mode 100644
index 0000000000..acf3817ea1
--- /dev/null
+++ b/meta-oe/recipes-support/hdf5/files/CVE-2026-19023-CVE-2026-19024.patch
@@ -0,0 +1,176 @@
+From e7e85949865b771b2b0b73ac1edaf54ce14cd894 Mon Sep 17 00:00:00 2001
+From: Matt L <124107509+mattjala@users.noreply.github.com>
+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 <noreply@anthropic.com>
+
+* Update CHANGELOG to list CVEs/GH issues
+
+* Renumber tbinvlstr.h5 generator macro to FILE114
+
+---------
+
+Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
+Co-authored-by: Larry Knox <lrknox@hdfgroup.org>
+
+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 <ankur.tyagi85@gmail.com>
+---
+ 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;
diff --git a/meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb b/meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb
index 3e87851cf9..9d300b210a 100644
--- a/meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb
+++ b/meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb
@@ -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"
 

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 23/64] hdf5: patch CVE-2026-120689
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (21 preceding siblings ...)
  2026-11-19 18:32 ` [blacksail][PATCH 22/64] hdf5: patch CVE-2026-19023 and CVE-2026-19024 ankur.tyagi85
@ 2026-11-19 18:32 ` ankur.tyagi85
  2026-11-19 18:32 ` [blacksail][PATCH 24/64] hdf5: patch CVE-2026-120754 and CVE-2026-120755 ankur.tyagi85
                   ` (40 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:32 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ankur Tyagi

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

Details:
https://nvd.nist.gov/vuln/detail/cve-2026-120689

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../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

diff --git a/meta-oe/recipes-support/hdf5/files/CVE-2026-120689.patch b/meta-oe/recipes-support/hdf5/files/CVE-2026-120689.patch
new file mode 100644
index 0000000000..dd9e9374ac
--- /dev/null
+++ b/meta-oe/recipes-support/hdf5/files/CVE-2026-120689.patch
@@ -0,0 +1,60 @@
+From 0472315404dc03d0e89eec4513eb80930f9b176e Mon Sep 17 00:00:00 2001
+From: PGZXB <420254146@qq.com>
+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 <ankur.tyagi85@gmail.com>
+---
+ 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)
diff --git a/meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb b/meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb
index 9d300b210a..57a62ff9d0 100644
--- a/meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb
+++ b/meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb
@@ -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"
 

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 24/64] hdf5: patch CVE-2026-120754 and CVE-2026-120755
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (22 preceding siblings ...)
  2026-11-19 18:32 ` [blacksail][PATCH 23/64] hdf5: patch CVE-2026-120689 ankur.tyagi85
@ 2026-11-19 18:32 ` ankur.tyagi85
  2026-11-19 18:32 ` [blacksail][PATCH 25/64] hdf5: patch CVE-2026-120756 ankur.tyagi85
                   ` (39 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:32 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ankur Tyagi

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

Details:
https://nvd.nist.gov/vuln/detail/cve-2026-120754
https://nvd.nist.gov/vuln/detail/cve-2026-120755

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../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

diff --git a/meta-oe/recipes-support/hdf5/files/CVE-2026-120754-CVE-2026-120755.patch b/meta-oe/recipes-support/hdf5/files/CVE-2026-120754-CVE-2026-120755.patch
new file mode 100644
index 0000000000..3f0a8d69d5
--- /dev/null
+++ b/meta-oe/recipes-support/hdf5/files/CVE-2026-120754-CVE-2026-120755.patch
@@ -0,0 +1,172 @@
+From 78672660618de8cca7c804f465886af02a89e79b Mon Sep 17 00:00:00 2001
+From: Matt L <124107509+mattjala@users.noreply.github.com>
+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 <nayyar@bugqore.com>
+Co-authored-by: Larry Knox <lrknox@hdfgroup.org>
+
+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 <ankur.tyagi85@gmail.com>
+---
+ 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:
diff --git a/meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb b/meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb
index 57a62ff9d0..2d5d134e01 100644
--- a/meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb
+++ b/meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb
@@ -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"
 

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 25/64] hdf5: patch CVE-2026-120756
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (23 preceding siblings ...)
  2026-11-19 18:32 ` [blacksail][PATCH 24/64] hdf5: patch CVE-2026-120754 and CVE-2026-120755 ankur.tyagi85
@ 2026-11-19 18:32 ` ankur.tyagi85
  2026-11-19 18:32 ` [blacksail][PATCH 26/64] hdf5: patch CVE-2026-120757 ankur.tyagi85
                   ` (38 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:32 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ankur Tyagi

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

Details:
https://nvd.nist.gov/vuln/detail/cve-2026-120756

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../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

diff --git a/meta-oe/recipes-support/hdf5/files/CVE-2026-120756.patch b/meta-oe/recipes-support/hdf5/files/CVE-2026-120756.patch
new file mode 100644
index 0000000000..28bd658598
--- /dev/null
+++ b/meta-oe/recipes-support/hdf5/files/CVE-2026-120756.patch
@@ -0,0 +1,45 @@
+From 43855883c1ea10a072b7e7cf2dbc5a29ab411a8f Mon Sep 17 00:00:00 2001
+From: Nayyar <nayyar@bugqore.com>
+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 <ankur.tyagi85@gmail.com>
+---
+ 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++;
diff --git a/meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb b/meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb
index 2d5d134e01..390884e618 100644
--- a/meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb
+++ b/meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb
@@ -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"
 

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 26/64] hdf5: patch CVE-2026-120757
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (24 preceding siblings ...)
  2026-11-19 18:32 ` [blacksail][PATCH 25/64] hdf5: patch CVE-2026-120756 ankur.tyagi85
@ 2026-11-19 18:32 ` ankur.tyagi85
  2026-11-19 18:32 ` [blacksail][PATCH 27/64] hdf5: patch CVE-2026-120758 ankur.tyagi85
                   ` (37 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:32 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ankur Tyagi

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

Details:
https://nvd.nist.gov/vuln/detail/cve-2026-120757

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../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

diff --git a/meta-oe/recipes-support/hdf5/files/CVE-2026-120757.patch b/meta-oe/recipes-support/hdf5/files/CVE-2026-120757.patch
new file mode 100644
index 0000000000..886d6d946b
--- /dev/null
+++ b/meta-oe/recipes-support/hdf5/files/CVE-2026-120757.patch
@@ -0,0 +1,63 @@
+From fa4c737d41c1c86638525a290b5576c8966090d0 Mon Sep 17 00:00:00 2001
+From: Nayyar <nayyar@bugqore.com>
+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 <ankur.tyagi85@gmail.com>
+---
+ 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)))
diff --git a/meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb b/meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb
index 390884e618..3cfce91bff 100644
--- a/meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb
+++ b/meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb
@@ -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"
 

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 27/64] hdf5: patch CVE-2026-120758
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (25 preceding siblings ...)
  2026-11-19 18:32 ` [blacksail][PATCH 26/64] hdf5: patch CVE-2026-120757 ankur.tyagi85
@ 2026-11-19 18:32 ` ankur.tyagi85
  2026-11-19 18:32 ` [blacksail][PATCH 28/64] libgphoto2: patch CVE-2026-120451 ankur.tyagi85
                   ` (36 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:32 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ankur Tyagi

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

Details:
https://nvd.nist.gov/vuln/detail/cve-2026-120758

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../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

diff --git a/meta-oe/recipes-support/hdf5/files/CVE-2026-120758.patch b/meta-oe/recipes-support/hdf5/files/CVE-2026-120758.patch
new file mode 100644
index 0000000000..a8fb5f72ff
--- /dev/null
+++ b/meta-oe/recipes-support/hdf5/files/CVE-2026-120758.patch
@@ -0,0 +1,143 @@
+From 277a6bbfdb8e852b7bbd08ae002907fc559e0194 Mon Sep 17 00:00:00 2001
+From: tbeu <tbeu@users.noreply.github.com>
+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 <mlarson@hdfgroup.org>
+Co-authored-by: Matt L <124107509+mattjala@users.noreply.github.com>
+Co-authored-by: Larry Knox <lrknox@hdfgroup.org>
+
+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 <ankur.tyagi85@gmail.com>
+---
+ 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() */
diff --git a/meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb b/meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb
index 3cfce91bff..7117c72f96 100644
--- a/meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb
+++ b/meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb
@@ -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"
 

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 28/64] libgphoto2: patch CVE-2026-120451
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (26 preceding siblings ...)
  2026-11-19 18:32 ` [blacksail][PATCH 27/64] hdf5: patch CVE-2026-120758 ankur.tyagi85
@ 2026-11-19 18:32 ` ankur.tyagi85
  2026-11-19 18:32 ` [blacksail][PATCH 29/64] libgphoto2: patch CVE-2026-120452 ankur.tyagi85
                   ` (35 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:32 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ankur Tyagi

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

Details:
https://nvd.nist.gov/vuln/detail/cve-2026-120451

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../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

diff --git a/meta-oe/recipes-graphics/gphoto2/libgphoto2/CVE-2026-120451.patch b/meta-oe/recipes-graphics/gphoto2/libgphoto2/CVE-2026-120451.patch
new file mode 100644
index 0000000000..7addb4d566
--- /dev/null
+++ b/meta-oe/recipes-graphics/gphoto2/libgphoto2/CVE-2026-120451.patch
@@ -0,0 +1,43 @@
+From 5924549b4750f0b17369f82e98959b779880400a Mon Sep 17 00:00:00 2001
+From: TheProtagonist07 <63047129+TheProtagonist07@users.noreply.github.com>
+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 <ankur.tyagi85@gmail.com>
+---
+ 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.
diff --git a/meta-oe/recipes-graphics/gphoto2/libgphoto2_2.5.34.bb b/meta-oe/recipes-graphics/gphoto2/libgphoto2_2.5.34.bb
index fca158fe11..488364b542 100644
--- a/meta-oe/recipes-graphics/gphoto2/libgphoto2_2.5.34.bb
+++ b/meta-oe/recipes-graphics/gphoto2/libgphoto2_2.5.34.bb
@@ -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"
 

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 29/64] libgphoto2: patch CVE-2026-120452
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (27 preceding siblings ...)
  2026-11-19 18:32 ` [blacksail][PATCH 28/64] libgphoto2: patch CVE-2026-120451 ankur.tyagi85
@ 2026-11-19 18:32 ` ankur.tyagi85
  2026-11-19 18:32 ` [blacksail][PATCH 30/64] python3-django: upgrade 5.2.18 -> 5.2.19 ankur.tyagi85
                   ` (34 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:32 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ankur Tyagi

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

Details:
https://nvd.nist.gov/vuln/detail/cve-2026-120452

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../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

diff --git a/meta-oe/recipes-graphics/gphoto2/libgphoto2/CVE-2026-120452.patch b/meta-oe/recipes-graphics/gphoto2/libgphoto2/CVE-2026-120452.patch
new file mode 100644
index 0000000000..97e2318cbd
--- /dev/null
+++ b/meta-oe/recipes-graphics/gphoto2/libgphoto2/CVE-2026-120452.patch
@@ -0,0 +1,40 @@
+From 9fe9a565d4755d99255e34384bbb19f2a439b242 Mon Sep 17 00:00:00 2001
+From: TheProtagonist07 <63047129+TheProtagonist07@users.noreply.github.com>
+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 <ankur.tyagi85@gmail.com>
+---
+ 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;
diff --git a/meta-oe/recipes-graphics/gphoto2/libgphoto2_2.5.34.bb b/meta-oe/recipes-graphics/gphoto2/libgphoto2_2.5.34.bb
index 488364b542..d8cf86ade2 100644
--- a/meta-oe/recipes-graphics/gphoto2/libgphoto2_2.5.34.bb
+++ b/meta-oe/recipes-graphics/gphoto2/libgphoto2_2.5.34.bb
@@ -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"
 

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 30/64] python3-django: upgrade 5.2.18 -> 5.2.19
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (28 preceding siblings ...)
  2026-11-19 18:32 ` [blacksail][PATCH 29/64] libgphoto2: patch CVE-2026-120452 ankur.tyagi85
@ 2026-11-19 18:32 ` ankur.tyagi85
  2026-11-19 18:32 ` [blacksail][PATCH 31/64] python3-django: upgrade 6.0.9 -> 6.0.10 ankur.tyagi85
                   ` (33 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:32 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ankur Tyagi

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

Changelog:
https://docs.djangoproject.com/en/dev/releases/5.2.19/

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../{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%)

diff --git a/meta-python/recipes-devtools/python/python3-django_5.2.18.bb b/meta-python/recipes-devtools/python/python3-django_5.2.19.bb
similarity index 61%
rename from meta-python/recipes-devtools/python/python3-django_5.2.18.bb
rename to meta-python/recipes-devtools/python/python3-django_5.2.19.bb
index eb84122116..9cbf0243ed 100644
--- a/meta-python/recipes-devtools/python/python3-django_5.2.18.bb
+++ b/meta-python/recipes-devtools/python/python3-django_5.2.19.bb
@@ -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"

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 31/64] python3-django: upgrade 6.0.9 -> 6.0.10
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (29 preceding siblings ...)
  2026-11-19 18:32 ` [blacksail][PATCH 30/64] python3-django: upgrade 5.2.18 -> 5.2.19 ankur.tyagi85
@ 2026-11-19 18:32 ` ankur.tyagi85
  2026-11-19 18:33 ` [blacksail][PATCH 32/64] uriparser: upgrade 1.0.2 -> 1.0.3 ankur.tyagi85
                   ` (32 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:32 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ankur Tyagi

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

Changelog:
https://docs.djangoproject.com/en/dev/releases/6.0.10/

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../{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%)

diff --git a/meta-python/recipes-devtools/python/python3-django_6.0.9.bb b/meta-python/recipes-devtools/python/python3-django_6.0.10.bb
similarity index 75%
rename from meta-python/recipes-devtools/python/python3-django_6.0.9.bb
rename to meta-python/recipes-devtools/python/python3-django_6.0.10.bb
index acdd2c21d0..e2ac220b86 100644
--- a/meta-python/recipes-devtools/python/python3-django_6.0.9.bb
+++ b/meta-python/recipes-devtools/python/python3-django_6.0.10.bb
@@ -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,

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 32/64] uriparser: upgrade 1.0.2 -> 1.0.3
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (30 preceding siblings ...)
  2026-11-19 18:32 ` [blacksail][PATCH 31/64] python3-django: upgrade 6.0.9 -> 6.0.10 ankur.tyagi85
@ 2026-11-19 18:33 ` ankur.tyagi85
  2026-11-19 18:33 ` [blacksail][PATCH 33/64] libmikmod: Upgrade 3.3.15 -> 3.3.16 ankur.tyagi85
                   ` (31 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:33 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ankur Tyagi, Khem Raj

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

Changelog:
https://github.com/uriparser/uriparser/blob/uriparser-1.0.3/ChangeLog

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
(cherry picked from commit 431f3b385d4b6891da019b0aa797f4105cbada15)
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../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%)

diff --git a/meta-oe/recipes-support/uriparser/uriparser_1.0.2.bb b/meta-oe/recipes-support/uriparser/uriparser_1.0.3.bb
similarity index 91%
rename from meta-oe/recipes-support/uriparser/uriparser_1.0.2.bb
rename to meta-oe/recipes-support/uriparser/uriparser_1.0.3.bb
index 161073103d..1ef8b15553 100644
--- a/meta-oe/recipes-support/uriparser/uriparser_1.0.2.bb
+++ b/meta-oe/recipes-support/uriparser/uriparser_1.0.3.bb
@@ -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
 

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 33/64] libmikmod: Upgrade 3.3.15 -> 3.3.16
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (31 preceding siblings ...)
  2026-11-19 18:33 ` [blacksail][PATCH 32/64] uriparser: upgrade 1.0.2 -> 1.0.3 ankur.tyagi85
@ 2026-11-19 18:33 ` ankur.tyagi85
  2026-11-19 18:33 ` [blacksail][PATCH 34/64] weechat: upgrade 4.10.1 -> 4.10.2 ankur.tyagi85
                   ` (30 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:33 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Leon Anavi, Khem Raj, Ankur Tyagi

From: Leon Anavi <leon.anavi@konsulko.com>

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.)

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
(cherry picked from commit 35b8bd0c0bd118f612107cedff4f563bb008c649)
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../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%)

diff --git a/meta-oe/recipes-multimedia/mikmod/libmikmod_3.3.15.bb b/meta-oe/recipes-multimedia/mikmod/libmikmod_3.3.16.bb
similarity index 90%
rename from meta-oe/recipes-multimedia/mikmod/libmikmod_3.3.15.bb
rename to meta-oe/recipes-multimedia/mikmod/libmikmod_3.3.16.bb
index bfd15cabe1..54e92721a8 100644
--- a/meta-oe/recipes-multimedia/mikmod/libmikmod_3.3.15.bb
+++ b/meta-oe/recipes-multimedia/mikmod/libmikmod_3.3.16.bb
@@ -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+)+)/"
 

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 34/64] weechat: upgrade 4.10.1 -> 4.10.2
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (32 preceding siblings ...)
  2026-11-19 18:33 ` [blacksail][PATCH 33/64] libmikmod: Upgrade 3.3.15 -> 3.3.16 ankur.tyagi85
@ 2026-11-19 18:33 ` ankur.tyagi85
  2026-11-19 18:33 ` [blacksail][PATCH 35/64] libopenmpt: upgrade 0.8.9 -> 0.8.10 ankur.tyagi85
                   ` (29 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:33 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ankur Tyagi, Khem Raj

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

Changelog:
https://github.com/weechat/weechat/releases/tag/v4.10.2

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
(cherry picked from commit 25144ffbd4fbad57f9c78f21158339814640a578)
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../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%)

diff --git a/meta-networking/recipes-irc/weechat/weechat_4.10.1.bb b/meta-networking/recipes-irc/weechat/weechat_4.10.2.bb
similarity index 95%
rename from meta-networking/recipes-irc/weechat/weechat_4.10.1.bb
rename to meta-networking/recipes-irc/weechat/weechat_4.10.2.bb
index 00030452dc..01565119e4 100644
--- a/meta-networking/recipes-irc/weechat/weechat_4.10.1.bb
+++ b/meta-networking/recipes-irc/weechat/weechat_4.10.2.bb
@@ -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
 

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 35/64] libopenmpt: upgrade 0.8.9 -> 0.8.10
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (33 preceding siblings ...)
  2026-11-19 18:33 ` [blacksail][PATCH 34/64] weechat: upgrade 4.10.1 -> 4.10.2 ankur.tyagi85
@ 2026-11-19 18:33 ` ankur.tyagi85
  2026-11-19 18:33 ` [blacksail][PATCH 36/64] mctp: upgrade 2.6.1 -> 2.6.2 ankur.tyagi85
                   ` (28 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:33 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ankur Tyagi, Khem Raj

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

Changelog:
https://lib.openmpt.org/libopenmpt/2026/10/31/security-updates-0.8.10-0.7.22-0.6.31/

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
(cherry picked from commit edd7b9726660848cf3785b6b7c07bd543af7f6a3)
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../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%)

diff --git a/meta-multimedia/recipes-multimedia/libopenmpt/libopenmpt_0.8.9.bb b/meta-multimedia/recipes-multimedia/libopenmpt/libopenmpt_0.8.10.bb
similarity index 97%
rename from meta-multimedia/recipes-multimedia/libopenmpt/libopenmpt_0.8.9.bb
rename to meta-multimedia/recipes-multimedia/libopenmpt/libopenmpt_0.8.10.bb
index 3b4be321cc..fd3e05a2d1 100644
--- a/meta-multimedia/recipes-multimedia/libopenmpt/libopenmpt_0.8.9.bb
+++ b/meta-multimedia/recipes-multimedia/libopenmpt/libopenmpt_0.8.10.bb
@@ -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"
 

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 36/64] mctp: upgrade 2.6.1 -> 2.6.2
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (34 preceding siblings ...)
  2026-11-19 18:33 ` [blacksail][PATCH 35/64] libopenmpt: upgrade 0.8.9 -> 0.8.10 ankur.tyagi85
@ 2026-11-19 18:33 ` ankur.tyagi85
  2026-11-19 18:33 ` [blacksail][PATCH 37/64] 7zip: upgrade 26.05 -> 26.06 ankur.tyagi85
                   ` (27 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:33 UTC (permalink / raw)
  To: openembedded-devel; +Cc: James Lee

From: James Lee <james@codeconstruct.com.au>

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

Signed-off-by: James Lee <james@codeconstruct.com.au>
---
 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%)

diff --git a/meta-networking/recipes-support/mctp/mctp.inc b/meta-networking/recipes-support/mctp/mctp.inc
index cc140f23a1..1150c9aae7 100644
--- a/meta-networking/recipes-support/mctp/mctp.inc
+++ b/meta-networking/recipes-support/mctp/mctp.inc
@@ -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
 
diff --git a/meta-networking/recipes-support/mctp/mctp_2.6.1.bb b/meta-networking/recipes-support/mctp/mctp_2.6.2.bb
similarity index 100%
rename from meta-networking/recipes-support/mctp/mctp_2.6.1.bb
rename to meta-networking/recipes-support/mctp/mctp_2.6.2.bb
diff --git a/meta-networking/recipes-support/mctp/mctpd_2.6.1.bb b/meta-networking/recipes-support/mctp/mctpd_2.6.2.bb
similarity index 100%
rename from meta-networking/recipes-support/mctp/mctpd_2.6.1.bb
rename to meta-networking/recipes-support/mctp/mctpd_2.6.2.bb

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 37/64] 7zip: upgrade 26.05 -> 26.06
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (35 preceding siblings ...)
  2026-11-19 18:33 ` [blacksail][PATCH 36/64] mctp: upgrade 2.6.1 -> 2.6.2 ankur.tyagi85
@ 2026-11-19 18:33 ` ankur.tyagi85
  2026-11-19 18:33 ` [blacksail][PATCH 38/64] apitrace: patch CVE-2026-126050 ankur.tyagi85
                   ` (26 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:33 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ankur Tyagi

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

Changelog:
https://github.com/ip7z/7zip/releases/tag/26.06

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 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%)

diff --git a/meta-oe/recipes-extended/7zip/7zip_26.05.bb b/meta-oe/recipes-extended/7zip/7zip_26.06.bb
similarity index 98%
rename from meta-oe/recipes-extended/7zip/7zip_26.05.bb
rename to meta-oe/recipes-extended/7zip/7zip_26.06.bb
index 050673f678..375f55f0ef 100644
--- a/meta-oe/recipes-extended/7zip/7zip_26.05.bb
+++ b/meta-oe/recipes-extended/7zip/7zip_26.06.bb
@@ -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"
 

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 38/64] apitrace: patch CVE-2026-126050
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (36 preceding siblings ...)
  2026-11-19 18:33 ` [blacksail][PATCH 37/64] 7zip: upgrade 26.05 -> 26.06 ankur.tyagi85
@ 2026-11-19 18:33 ` ankur.tyagi85
  2026-11-19 18:33 ` [blacksail][PATCH 39/64] cockpit: mark CVE-2024-2947 fixed ankur.tyagi85
                   ` (25 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:33 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ankur Tyagi

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

Details:
https://nvd.nist.gov/vuln/detail/cve-2026-126050

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../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

diff --git a/meta-oe/recipes-devtools/apitrace/apitrace/CVE-2026-126050.patch b/meta-oe/recipes-devtools/apitrace/apitrace/CVE-2026-126050.patch
new file mode 100644
index 0000000000..4b0d3b2768
--- /dev/null
+++ b/meta-oe/recipes-devtools/apitrace/apitrace/CVE-2026-126050.patch
@@ -0,0 +1,39 @@
+From a7c7db06b56f22235eeea2da608ef84dd401f3b6 Mon Sep 17 00:00:00 2001
+From: Deus Rex research team <research@deusrex.ai>
+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 <ankur.tyagi85@gmail.com>
+---
+ 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";
diff --git a/meta-oe/recipes-devtools/apitrace/apitrace_14.0.bb b/meta-oe/recipes-devtools/apitrace/apitrace_14.0.bb
index cb5ee92e04..7c51f45842 100644
--- a/meta-oe/recipes-devtools/apitrace/apitrace_14.0.bb
+++ b/meta-oe/recipes-devtools/apitrace/apitrace_14.0.bb
@@ -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"

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 39/64] cockpit: mark CVE-2024-2947 fixed
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (37 preceding siblings ...)
  2026-11-19 18:33 ` [blacksail][PATCH 38/64] apitrace: patch CVE-2026-126050 ankur.tyagi85
@ 2026-11-19 18:33 ` ankur.tyagi85
  2026-11-19 18:33 ` [blacksail][PATCH 40/64] brotli: set CVE_PRODUCT to "google:brotli" ankur.tyagi85
                   ` (24 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:33 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ankur Tyagi

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

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

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 meta-webserver/recipes-webadmin/cockpit/cockpit_366.1.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta-webserver/recipes-webadmin/cockpit/cockpit_366.1.bb b/meta-webserver/recipes-webadmin/cockpit/cockpit_366.1.bb
index e12cabcd98..3aa1f155e7 100644
--- a/meta-webserver/recipes-webadmin/cockpit/cockpit_366.1.bb
+++ b/meta-webserver/recipes-webadmin/cockpit/cockpit_366.1.bb
@@ -202,3 +202,4 @@ do_install:append() {
 }
 
 CVE_PRODUCT = "cockpit-project:cockpit"
+CVE_STATUS[CVE-2024-2947] = "fixed-version: fixed since v314"

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 40/64] brotli: set CVE_PRODUCT to "google:brotli"
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (38 preceding siblings ...)
  2026-11-19 18:33 ` [blacksail][PATCH 39/64] cockpit: mark CVE-2024-2947 fixed ankur.tyagi85
@ 2026-11-19 18:33 ` ankur.tyagi85
  2026-11-19 18:33 ` [blacksail][PATCH 41/64] ettercap: patch CVEs CVE-2026-125400 - CVE-2026-125406 ankur.tyagi85
                   ` (23 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:33 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ankur Tyagi

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

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

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 meta-oe/recipes-extended/brotli/brotli_1.2.1.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-oe/recipes-extended/brotli/brotli_1.2.1.bb b/meta-oe/recipes-extended/brotli/brotli_1.2.1.bb
index dca16cb79b..14d7fe96e5 100644
--- a/meta-oe/recipes-extended/brotli/brotli_1.2.1.bb
+++ b/meta-oe/recipes-extended/brotli/brotli_1.2.1.bb
@@ -20,3 +20,5 @@ do_install:append () {
 }
 
 BBCLASSEXTEND = "native nativesdk"
+
+CVE_PRODUCT = "google:brotli"

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 41/64] ettercap: patch CVEs CVE-2026-125400 - CVE-2026-125406
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (39 preceding siblings ...)
  2026-11-19 18:33 ` [blacksail][PATCH 40/64] brotli: set CVE_PRODUCT to "google:brotli" ankur.tyagi85
@ 2026-11-19 18:33 ` ankur.tyagi85
  2026-11-19 18:33 ` [blacksail][PATCH 42/64] tinyproxy: patch CVE-2026-125371 ankur.tyagi85
                   ` (22 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:33 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ankur Tyagi

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

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

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../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

diff --git a/meta-networking/recipes-support/ettercap/ettercap_0.8.4.1.bb b/meta-networking/recipes-support/ettercap/ettercap_0.8.4.1.bb
index 9a2090719b..8ac3c7703c 100644
--- a/meta-networking/recipes-support/ettercap/ettercap_0.8.4.1.bb
+++ b/meta-networking/recipes-support/ettercap/ettercap_0.8.4.1.bb
@@ -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"
diff --git a/meta-networking/recipes-support/ettercap/files/CVE-2026-125400-06_1.patch b/meta-networking/recipes-support/ettercap/files/CVE-2026-125400-06_1.patch
new file mode 100644
index 0000000000..5fdc42d48b
--- /dev/null
+++ b/meta-networking/recipes-support/ettercap/files/CVE-2026-125400-06_1.patch
@@ -0,0 +1,121 @@
+From d6ae972f54be633b3b7b2d7905f89cf53abbb839 Mon Sep 17 00:00:00 2001
+From: Gianfranco Costamagna <locutusofborg@debian.org>
+Date: Fri, 24 Apr 2026 11:37:12 +0200
+Subject: [PATCH] ec_gg: Add new GG_MAX_LEN equal to 70
+
+(cherry picked from commit 593a11ff49e61293fcf4ed24f8b017df0aeac6fd)
+
+CVE: CVE-2026-125400 CVE-2026-125401 CVE-2026-125402 CVE-2026-125403 CVE-2026-125404 CVE-2026-125405 CVE-2026-125406
+Upstream-Status: Backport [https://github.com/Ettercap/ettercap/commit/593a11ff49e61293fcf4ed24f8b017df0aeac6fd]
+
+Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
+---
+ src/dissectors/ec_gg.c | 31 ++++++++++++++++---------------
+ 1 file changed, 16 insertions(+), 15 deletions(-)
+
+diff --git a/src/dissectors/ec_gg.c b/src/dissectors/ec_gg.c
+index 82799f93..fa303e87 100644
+--- a/src/dissectors/ec_gg.c
++++ b/src/dissectors/ec_gg.c
+@@ -149,22 +149,23 @@ uncomment #define below if you want to see all contacts status changes - be care
+ 
+ /* globals */
+ 
+-#define GG_LOGIN50_CMD		0x0000000c
+-#define GG_LOGIN60_CMD		0x00000015
+-#define GG_LOGIN70_CMD		0x00000019
++#define GG_LOGIN50_CMD	   0x0000000c
++#define GG_LOGIN60_CMD	   0x00000015
++#define GG_LOGIN70_CMD	   0x00000019
+ 
+-#define GG_WELCOME_CMD		0x00000001
++#define GG_WELCOME_CMD	   0x00000001
+ 
+-#define GG_SEND_MSG_CMD		0x0000000b
+-#define GG_RECV_MSG_CMD		0x0000000a
++#define GG_SEND_MSG_CMD	   0x0000000b
++#define GG_RECV_MSG_CMD	   0x0000000a
+ 
+ #define GG_NEW_STATUS_CMD  0x00000002
+ 
+ #define GG_STATUS_CMD      0x00000002
+ 
+-#define GG_STATUS50_CMD		0x0000000c
++#define GG_STATUS50_CMD	   0x0000000c
+ #define GG_STATUS60_CMD    0x0000000f
+ #define GG_STATUS70_CMD    0x00000017
++#define GG_MAX_LEN         70
+ 
+ struct gg_hdr {
+    u_int32 type;
+@@ -182,7 +183,7 @@ struct gg_login50_hdr {
+    u_int32 version;   
+    u_int8 local_ip[4];  
+    u_int16 local_port;
+-   char description[71];     /* 70+1 (0x0) */
++   char description[GG_MAX_LEN + 1];     /* 70+1 (0x0) */
+    u_int32 time;
+ }__attribute__ ((packed));
+ 
+@@ -198,7 +199,7 @@ struct gg_login60_hdr {
+    u_int16 remote_port;
+    u_int8 image_size;
+    u_int8 unknown2;          /* 0xbe */
+-   char description[71];     /* 70+1 (0x0) */
++   char description[GG_MAX_LEN + 1];     /* 70+1 (0x0) */
+    u_int32 time;
+ }__attribute__ ((packed));
+ 
+@@ -217,7 +218,7 @@ struct gg_login70_hdr {
+    u_int16 remote_port;
+    u_int8 image_size;
+    u_int8 unknown5;          /* 0xbe */
+-   char description[71];     /* 70+1 (0x0) */
++   char description[GG_MAX_LEN + 1];     /* 70+1 (0x0) */
+    u_int32 time;
+ }__attribute__ ((packed));
+ 
+@@ -238,14 +239,14 @@ struct gg_recv_msg_hdr {
+ 
+ struct gg_new_status_hdr {
+    u_int32 status;
+-   char description[71];     /* 70+1 (0x0) */
++   char description[GG_MAX_LEN + 1];     /* 70+1 (0x0) */
+    u_int32 time;
+ };
+ 
+ struct gg_status_hdr {
+    u_int32 uin;
+    u_int32 status;
+-   char description[71];     /* 70+1 (0x0) */
++   char description[GG_MAX_LEN + 1];     /* 70+1 (0x0) */
+    u_int32 time;
+ };
+ 
+@@ -256,7 +257,7 @@ struct gg_status50_hdr {
+    u_int16 remote_port;
+    u_int32 version;   
+    u_int16 unknown1;         /* remote port again? */
+-   char description[71];     /* 70+1 (0x0) */
++   char description[GG_MAX_LEN + 1];     /* 70+1 (0x0) */
+    u_int32 time;
+ }__attribute__ ((packed));
+ 
+@@ -268,7 +269,7 @@ struct gg_status60_hdr {
+    u_int8 version;   
+    u_int8 image_size;
+    u_int8 unknown1;          /* 0x00 */
+-   char description[71];     /* 70+1 (0x0) */
++   char description[GG_MAX_LEN + 1];     /* 70+1 (0x0) */
+    u_int32 time;
+ }__attribute__ ((packed));;
+ 
+@@ -281,7 +282,7 @@ struct gg_status70_hdr {
+    u_int8 image_size;
+    u_int8 unknown1;          /* 0x00 */
+    u_int32 unknown2;         /* 0x00 */
+-   char description[71];     /* 70+1 (0x0) */
++   char description[GG_MAX_LEN + 1];     /* 70+1 (0x0) */
+    u_int32 time;
+ }__attribute__ ((packed));;
+ 
diff --git a/meta-networking/recipes-support/ettercap/files/CVE-2026-125400-06_2.patch b/meta-networking/recipes-support/ettercap/files/CVE-2026-125400-06_2.patch
new file mode 100644
index 0000000000..af8e290f40
--- /dev/null
+++ b/meta-networking/recipes-support/ettercap/files/CVE-2026-125400-06_2.patch
@@ -0,0 +1,149 @@
+From 6e5c1c1f7d18a381ef64877538e2a7fb714083e2 Mon Sep 17 00:00:00 2001
+From: Gianfranco Costamagna <locutusofborg@debian.org>
+Date: Fri, 24 Apr 2026 11:40:16 +0200
+Subject: [PATCH] fix Heap buffer overflow in GG Dissector, thanks to
+ <dapickle> for the bug report and fix Closes: #1306
+
+(cherry picked from commit feeae6fa366e01a3dd9f1857ec6aae847b2ae00c)
+
+CVE: CVE-2026-125400 CVE-2026-125401 CVE-2026-125402 CVE-2026-125403 CVE-2026-125404 CVE-2026-125405 CVE-2026-125406
+Upstream-Status: Backport [https://github.com/Ettercap/ettercap/commit/feeae6fa366e01a3dd9f1857ec6aae847b2ae00c]
+
+Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
+---
+ src/dissectors/ec_gg.c | 64 ++++++++++++++++++++++++++----------------
+ 1 file changed, 40 insertions(+), 24 deletions(-)
+
+diff --git a/src/dissectors/ec_gg.c b/src/dissectors/ec_gg.c
+index fa303e87..2a7dd8a6 100644
+--- a/src/dissectors/ec_gg.c
++++ b/src/dissectors/ec_gg.c
+@@ -359,10 +359,12 @@ FUNC_DECODER(dissector_gg)
+ if ((gg->type == GG_LOGIN50_CMD) && !FROM_SERVER("gg", PACKET)) {
+    gg_get_status(gg_login50->status,tbuf);
+    gg_get_version(gg_login50->version,tbuf3);
+-   if ((int)gg->len-22 < 0)
++   size_t offset=22;
++   if (gg->len-offset < 0)
+        return NULL;
+-   strncpy(tbuf2,gg_login50->description, (gg->len)-22);
+-   tbuf2[(gg->len)-22]='\0';
++   size_t copy_len = MIN(gg->len - offset, GG_MAX_LEN);
++   strncpy(tbuf2,gg_login50->description, copy_len);
++   tbuf2[copy_len]='\0';
+    sprintf(user,"%u",gg_login50->uin);
+    PACKET->DISSECTOR.user = strdup(user);
+    sprintf(pass,"%u",gg_login50->hash);
+@@ -381,10 +383,12 @@ if ((gg->type == GG_LOGIN50_CMD) && !FROM_SERVER("gg", PACKET)) {
+ else if (gg->type == GG_LOGIN60_CMD) {
+    gg_get_status(gg_login60->status,tbuf);
+    gg_get_version(gg_login60->version,tbuf3);
+-   if ((int)gg->len-31 < 0)
++   size_t offset=31;
++   if (gg->len-offset < 0)
+        return NULL;
+-   strncpy(tbuf2,gg_login60->description, (gg->len)-31);
+-   tbuf2[(gg->len)-31]='\0';
++   size_t copy_len = MIN(gg->len - offset, GG_MAX_LEN);
++   strncpy(tbuf2,gg_login60->description, copy_len);
++   tbuf2[copy_len]='\0';
+    sprintf(user,"%u",gg_login60->uin);
+    PACKET->DISSECTOR.user = strdup(user);
+    sprintf(pass,"%u",gg_login60->hash);
+@@ -405,10 +409,12 @@ else if (gg->type == GG_LOGIN60_CMD) {
+ else if (gg->type == GG_LOGIN70_CMD) {
+    gg_get_status(gg_login70->status,tbuf);
+    gg_get_version(gg_login70->version,tbuf3);
+-   if ((int)gg->len-92 < 0)
++   size_t offset=92;
++   if (gg->len-offset < 0)
+        return NULL;
+-   strncpy(tbuf2,gg_login70->description, (gg->len)-92);
+-   tbuf2[(gg->len)-92]='\0';
++   size_t copy_len = MIN(gg->len - offset, GG_MAX_LEN);
++   strncpy(tbuf2,gg_login70->description, copy_len);
++   tbuf2[copy_len]='\0';
+    sprintf(user,"%u",gg_login70->uin);
+    PACKET->DISSECTOR.user = strdup(user);
+    sprintf(pass,"%X%X%X%X%X",gg_login70->hash[0],gg_login70->hash[1],gg_login70->hash[2],gg_login70->hash[3],gg_login70->hash[4]);
+@@ -454,10 +460,12 @@ else if (gg->type == GG_WELCOME_CMD) {
+ #ifdef GG_CONTACTS_STATUS_CHANGES
+ else if ((gg->type == GG_STATUS_CMD) && FROM_SERVER("gg", PACKET)) {
+     gg_get_status(gg_status->status,tbuf);
+-    if ((int)gg->len-8 < 0)
++    size_t offset=8;
++    if (gg->len-offset < 0)
+         return NULL;
+-    strncpy(tbuf2,gg_status->description, (gg->len)-8);
+-    tbuf2[(gg->len)-8]='\0';
++    size_t copy_len = MIN(gg->len - offset, GG_MAX_LEN);
++    strncpy(tbuf2,gg_status->description, copy_len);
++    tbuf2[copy_len]='\0';
+     DISSECT_MSG("GG : %s:%d -> %s:%d - STATUS CHANGED  UIN: %u  STATUS: %s (%s)\n", ip_addr_ntoa(&PACKET->L3.src, tmp),
+                                  ntohs(PACKET->L4.src),
+                                  ip_addr_ntoa(&PACKET->L3.dst, tmp2),
+@@ -468,10 +476,12 @@ else if ((gg->type == GG_STATUS_CMD) && FROM_SERVER("gg", PACKET)) {
+ #endif
+ else if ((gg->type == GG_NEW_STATUS_CMD) && !FROM_SERVER("gg", PACKET)) {
+       gg_get_status(gg_new_status->status,tbuf);
+-      if ((int)gg->len-4 < 0)
++      size_t offset=4;
++      if (gg->len-offset < 0)
+           return NULL;
+-      strncpy(tbuf2,gg_new_status->description, (gg->len)-4);
+-      tbuf2[(gg->len)-4]='\0';
++      size_t copy_len = MIN(gg->len - offset, GG_MAX_LEN);
++      strncpy(tbuf2,gg_new_status->description, copy_len);
++      tbuf2[copy_len]='\0';
+       DISSECT_MSG("GG : %s:%d -> %s:%d - NEW STATUS  STATUS: %s (%s)\n", ip_addr_ntoa(&PACKET->L3.src, tmp),
+                                  ntohs(PACKET->L4.src),
+                                  ip_addr_ntoa(&PACKET->L3.dst, tmp2),
+@@ -482,10 +492,12 @@ else if ((gg->type == GG_NEW_STATUS_CMD) && !FROM_SERVER("gg", PACKET)) {
+ else if ((gg->type == GG_STATUS50_CMD) && FROM_SERVER("gg", PACKET)) {
+       gg_get_status(gg_status50->status,tbuf);
+       gg_get_version(gg_status50->version,tbuf3);
+-      if ((int)gg->len-20 < 0)
++      size_t offset=20;
++      if (gg->len-offset < 0)
+           return NULL;
+-      strncpy(tbuf2,gg_status50->description, (gg->len)-20);
+-      tbuf2[(gg->len)-20]='\0';
++      size_t copy_len = MIN(gg->len - offset, GG_MAX_LEN);
++      strncpy(tbuf2,gg_status50->description, copy_len);
++      tbuf2[copy_len]='\0';
+       DISSECT_MSG("GG4/5 : %s:%d -> %s:%d - STATUS CHANGED  UIN: %u  STATUS: %s (%s)  VERSION: %s  RIP: %u.%u.%u.%u:%u\n", ip_addr_ntoa(&PACKET->L3.src, tmp),
+                                  ntohs(PACKET->L4.src),
+                                  ip_addr_ntoa(&PACKET->L3.dst, tmp2),
+@@ -499,10 +511,12 @@ else if ((gg->type == GG_STATUS50_CMD) && FROM_SERVER("gg", PACKET)) {
+ else if (gg->type == GG_STATUS60_CMD) {
+       gg_get_status(gg_status60->status,tbuf);
+       gg_get_version(gg_status60->version,tbuf3);
+-      if ((int)gg->len-14 < 0)
++      size_t offset=14;
++      if (gg->len-offset < 0)
+           return NULL;
+-      strncpy(tbuf2,gg_status60->description, (gg->len)-14);
+-      tbuf2[(gg->len)-14]='\0';
++      size_t copy_len = MIN(gg->len - offset, GG_MAX_LEN);
++      strncpy(tbuf2,gg_status60->description, copy_len);
++      tbuf2[copy_len]='\0';
+       DISSECT_MSG("GG6 : %s:%d -> %s:%d - STATUS CHANGED  UIN: %u  STATUS: %s (%s)  VERSION: %s  RIP: %u.%u.%u.%u:%u\n", ip_addr_ntoa(&PACKET->L3.src, tmp),
+                                  ntohs(PACKET->L4.src),
+                                  ip_addr_ntoa(&PACKET->L3.dst, tmp2),
+@@ -515,11 +529,13 @@ else if (gg->type == GG_STATUS60_CMD) {
+ }
+ else if (gg->type == GG_STATUS70_CMD) {
+       gg_get_status(gg_status70->status,tbuf);
+-      if ((int)gg->len-18 < 0)
++      size_t offset=18;
++      if (gg->len-offset < 0)
+           return NULL;
++      size_t copy_len = MIN(gg->len - offset, GG_MAX_LEN);
+       gg_get_version(gg_status70->version,tbuf3);
+-      strncpy(tbuf2,gg_status70->description, (gg->len)-18);
+-      tbuf2[(gg->len)-18]='\0';
++      strncpy(tbuf2,gg_status70->description, copy_len);
++      tbuf2[copy_len]='\0';
+       DISSECT_MSG("GG7 : %s:%d -> %s:%d - STATUS CHANGED  UIN: %u  STATUS: %s (%s)  VERSION: %s  RIP: %u.%u.%u.%u:%u\n", ip_addr_ntoa(&PACKET->L3.src, tmp),
+                                  ntohs(PACKET->L4.src),
+                                  ip_addr_ntoa(&PACKET->L3.dst, tmp2),
diff --git a/meta-networking/recipes-support/ettercap/files/CVE-2026-125400-06_3.patch b/meta-networking/recipes-support/ettercap/files/CVE-2026-125400-06_3.patch
new file mode 100644
index 0000000000..f649082cb9
--- /dev/null
+++ b/meta-networking/recipes-support/ettercap/files/CVE-2026-125400-06_3.patch
@@ -0,0 +1,92 @@
+From 4fee3420f939bb738e883a8baad15a6da473ab8a Mon Sep 17 00:00:00 2001
+From: Gianfranco Costamagna <locutusofborg@debian.org>
+Date: Fri, 24 Apr 2026 11:48:23 +0200
+Subject: [PATCH] ec_gg: don't check if two unsigned integers go <0, check just
+ if the len is greater than the offset
+
+(cherry picked from commit ffd9e06c3cdab9c056f7e729b5083ed81126315e)
+
+CVE: CVE-2026-125400 CVE-2026-125401 CVE-2026-125402 CVE-2026-125403 CVE-2026-125404 CVE-2026-125405 CVE-2026-125406
+Upstream-Status: Backport [https://github.com/Ettercap/ettercap/commit/ffd9e06c3cdab9c056f7e729b5083ed81126315e]
+
+Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
+---
+ src/dissectors/ec_gg.c | 16 ++++++++--------
+ 1 file changed, 8 insertions(+), 8 deletions(-)
+
+diff --git a/src/dissectors/ec_gg.c b/src/dissectors/ec_gg.c
+index 2a7dd8a6..aaabd9b9 100644
+--- a/src/dissectors/ec_gg.c
++++ b/src/dissectors/ec_gg.c
+@@ -360,7 +360,7 @@ if ((gg->type == GG_LOGIN50_CMD) && !FROM_SERVER("gg", PACKET)) {
+    gg_get_status(gg_login50->status,tbuf);
+    gg_get_version(gg_login50->version,tbuf3);
+    size_t offset=22;
+-   if (gg->len-offset < 0)
++   if (gg->len < offset)
+        return NULL;
+    size_t copy_len = MIN(gg->len - offset, GG_MAX_LEN);
+    strncpy(tbuf2,gg_login50->description, copy_len);
+@@ -384,7 +384,7 @@ else if (gg->type == GG_LOGIN60_CMD) {
+    gg_get_status(gg_login60->status,tbuf);
+    gg_get_version(gg_login60->version,tbuf3);
+    size_t offset=31;
+-   if (gg->len-offset < 0)
++   if (gg->len < offset)
+        return NULL;
+    size_t copy_len = MIN(gg->len - offset, GG_MAX_LEN);
+    strncpy(tbuf2,gg_login60->description, copy_len);
+@@ -410,7 +410,7 @@ else if (gg->type == GG_LOGIN70_CMD) {
+    gg_get_status(gg_login70->status,tbuf);
+    gg_get_version(gg_login70->version,tbuf3);
+    size_t offset=92;
+-   if (gg->len-offset < 0)
++   if (gg->len < offset)
+        return NULL;
+    size_t copy_len = MIN(gg->len - offset, GG_MAX_LEN);
+    strncpy(tbuf2,gg_login70->description, copy_len);
+@@ -461,7 +461,7 @@ else if (gg->type == GG_WELCOME_CMD) {
+ else if ((gg->type == GG_STATUS_CMD) && FROM_SERVER("gg", PACKET)) {
+     gg_get_status(gg_status->status,tbuf);
+     size_t offset=8;
+-    if (gg->len-offset < 0)
++    if (gg->len < offset)
+         return NULL;
+     size_t copy_len = MIN(gg->len - offset, GG_MAX_LEN);
+     strncpy(tbuf2,gg_status->description, copy_len);
+@@ -477,7 +477,7 @@ else if ((gg->type == GG_STATUS_CMD) && FROM_SERVER("gg", PACKET)) {
+ else if ((gg->type == GG_NEW_STATUS_CMD) && !FROM_SERVER("gg", PACKET)) {
+       gg_get_status(gg_new_status->status,tbuf);
+       size_t offset=4;
+-      if (gg->len-offset < 0)
++      if (gg->len < offset)
+           return NULL;
+       size_t copy_len = MIN(gg->len - offset, GG_MAX_LEN);
+       strncpy(tbuf2,gg_new_status->description, copy_len);
+@@ -493,7 +493,7 @@ else if ((gg->type == GG_STATUS50_CMD) && FROM_SERVER("gg", PACKET)) {
+       gg_get_status(gg_status50->status,tbuf);
+       gg_get_version(gg_status50->version,tbuf3);
+       size_t offset=20;
+-      if (gg->len-offset < 0)
++      if (gg->len < offset)
+           return NULL;
+       size_t copy_len = MIN(gg->len - offset, GG_MAX_LEN);
+       strncpy(tbuf2,gg_status50->description, copy_len);
+@@ -512,7 +512,7 @@ else if (gg->type == GG_STATUS60_CMD) {
+       gg_get_status(gg_status60->status,tbuf);
+       gg_get_version(gg_status60->version,tbuf3);
+       size_t offset=14;
+-      if (gg->len-offset < 0)
++      if (gg->len < offset)
+           return NULL;
+       size_t copy_len = MIN(gg->len - offset, GG_MAX_LEN);
+       strncpy(tbuf2,gg_status60->description, copy_len);
+@@ -530,7 +530,7 @@ else if (gg->type == GG_STATUS60_CMD) {
+ else if (gg->type == GG_STATUS70_CMD) {
+       gg_get_status(gg_status70->status,tbuf);
+       size_t offset=18;
+-      if (gg->len-offset < 0)
++      if (gg->len < offset)
+           return NULL;
+       size_t copy_len = MIN(gg->len - offset, GG_MAX_LEN);
+       gg_get_version(gg_status70->version,tbuf3);
diff --git a/meta-networking/recipes-support/ettercap/files/CVE-2026-125400-06_4.patch b/meta-networking/recipes-support/ettercap/files/CVE-2026-125400-06_4.patch
new file mode 100644
index 0000000000..81c4c4a8a5
--- /dev/null
+++ b/meta-networking/recipes-support/ettercap/files/CVE-2026-125400-06_4.patch
@@ -0,0 +1,807 @@
+From eb36ce39dc88056e854745d36dcc04b2d09a296f Mon Sep 17 00:00:00 2001
+From: "Emilio A. Escobar" <eescobar@gmail.com>
+Date: Tue, 8 Sep 2026 08:37:37 -0700
+Subject: [PATCH] Fix seven memory-safety bugs reachable from network traffic
+
+All seven were reported by the DREAM Security Research Team against v0.8.4.1
+(3548c10c) and validated against master.
+
+Vulnerability discovered by: Adiel Sol, Arad Inbar, Erez Cohen, Nir Somech,
+Ben Grinberg, Daniel Lubel, Shir Sadon (DREAM Security Research Team)
+
+Each has a draft advisory; the GHSA id is cited in the comment at every fix
+site. CVE ids have been requested and are not assigned yet.
+
+GHSA-f3j5-rhhr-85j5 - use-after-free in func_pcre (src/ec_filter.c)
+  The PCRE2 match data was freed before pcre2_get_ovector_pointer() was
+  called on it, and the resulting pointer then drove an allocation size,
+  two memcpy offsets into the pcap buffer, and the packet length delta.
+  The offsets are now copied out of the match data before it is released,
+  which also plugs the leaks on the no-match paths of both level 5 and 6.
+  This is the default build path wherever pcre2 is installed.
+
+GHSA-vrjv-f8gv-2h35 - heap overflow in gg_get_version (ec_gg.c)
+  The helper composed up to 44 bytes into a 30-byte allocation via
+  sprintf()/strcat(). Both helpers now build into a private buffer and hand
+  back only a bounded copy. Also fixes user[10]/pass[40], which were one
+  byte short for a u_int32 uin and 41 bytes short for five %X, and the
+  scratch buffers leaked by the short-packet guards.
+
+GHSA-v48w-7cvh-c7f4 - SNI heap over-read (ec_sslwrap.c)
+  val_len was read from the ClientHello and passed to strndup() without
+  being checked against the extension length, so it read up to 64KB past
+  the buffer and shipped the result to the upstream server. The reported
+  double free was not reproducible - ae->hostname is freed once and
+  SAFE_FREE() NULLs - but the callback fires twice and leaked the first
+  allocation, so it now releases any previous value before reassigning.
+
+GHSA-hq2w-pg4m-6w63 - out-of-bounds read in sslw_remove_sts (ec_sslwrap.c)
+  The search for the end of the STS header used the length of the whole
+  packet from an already-advanced pointer, reading past the buffer, and did
+  not check memmem() for NULL - h_end became 0x2, header_length underflowed
+  and memcpy() got a near-SIZE_MAX length. Bounded and NULL-checked; len
+  still describes the whole packet, as the rebuild below is sized from it.
+
+GHSA-j37f-7jx3-rf8j - size_t underflow in ccmp_decrypt (ec_encryption_ccmp.c)
+  len -= WPA_CCMP_TRAILER wrapped for frames shorter than 8 bytes and the
+  decrypt loop then ran ~2^60 times up the stack. Both the outer and inner
+  function now reject undersized frames, and the UINT16_MAX check moved
+  above the VLA it was meant to bound.
+
+GHSA-jw9q-j2rm-94j2 - heap over-read in the NTLM parser (ec_http.c)
+  lmResponse/ntResponse/uUser offsets were used as displacements from the
+  decoded message with no bounds checking, letting a peer read 24 bytes
+  from anywhere in a 4GB window and have us log the result. The decoded
+  length is now kept and every offset/length pair validated against it;
+  short blobs are rejected before msgType is read at offset 8.
+
+GHSA-w5ch-7c4x-crcc - stack underflow in the telnet dissector (ec_telnet.c)
+  Backspace handling decremented the write pointer with no lower bound, so
+  leading backspaces walked it below the VLA and later characters wrote
+  attacker-chosen bytes underneath it. Bounded by str.
+
+Verified with an AddressSanitizer build: the func_pcre use-after-free
+reproduces end to end via etterfilter + a crafted pcap and is gone after
+the fix, and extracted harnesses confirm the gg, ccmp and telnet fixes.
+Existing test suite passes.
+
+Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
+Claude-Session: https://claude.ai/code/session_01U7DPkxps63uUMetZEJSTLr
+(cherry picked from commit a8c1a5085791b38c234be0e4129302fdc36964e0)
+
+CVE: CVE-2026-125400 CVE-2026-125401 CVE-2026-125402 CVE-2026-125403 CVE-2026-125404 CVE-2026-125405 CVE-2026-125406
+Upstream-Status: Backport [https://github.com/Ettercap/ettercap/commit/a8c1a5085791b38c234be0e4129302fdc36964e0]
+
+Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
+---
+ src/dissectors/ec_gg.c     | 138 +++++++++++++++++++++----------------
+ src/dissectors/ec_http.c   | 101 +++++++++++++++++++++++----
+ src/dissectors/ec_telnet.c |   8 ++-
+ src/ec_encryption_ccmp.c   |  38 ++++++++--
+ src/ec_filter.c            |  46 ++++++++++---
+ src/ec_sslwrap.c           |  36 ++++++++--
+ 6 files changed, 274 insertions(+), 93 deletions(-)
+
+diff --git a/src/dissectors/ec_gg.c b/src/dissectors/ec_gg.c
+index aaabd9b9..adf7f6f2 100644
+--- a/src/dissectors/ec_gg.c
++++ b/src/dissectors/ec_gg.c
+@@ -166,6 +166,9 @@ uncomment #define below if you want to see all contacts status changes - be care
+ #define GG_STATUS60_CMD    0x0000000f
+ #define GG_STATUS70_CMD    0x00000017
+ #define GG_MAX_LEN         70
++/* GHSA-vrjv-f8gv-2h35: sized for the longest string each helper can build */
++#define GG_TBUF_SIZE       64
++#define GG_TBUF3_SIZE      64
+ 
+ struct gg_hdr {
+    u_int32 type;
+@@ -290,8 +293,8 @@ struct gg_status70_hdr {
+ 
+ FUNC_DECODER(dissector_gg);
+ void gg_init(void);
+-void gg_get_status(u_int32 status, char *str);
+-void gg_get_version(u_int32 version, char *str);
++void gg_get_status(u_int32 status, char *str, size_t size);
++void gg_get_version(u_int32 version, char *str, size_t size);
+ 
+ /************************************************/
+ 
+@@ -320,7 +323,12 @@ FUNC_DECODER(dissector_gg)
+    struct gg_recv_msg_hdr *gg_recv_msg;
+    struct gg_new_status_hdr *gg_new_status;
+    char *tbuf, *tbuf2, *tbuf3;
+-   char user[10], pass[40];
++   /* GHSA-vrjv-f8gv-2h35: a u_int32 uin needs 11 bytes and 5 x %X needs 41 */
++   char user[12], pass[48];
++
++/* GHSA-vrjv-f8gv-2h35: the short-packet guards below used to return without
++ * releasing the three scratch buffers */
++#define GG_BAIL() do { SAFE_FREE(tbuf); SAFE_FREE(tbuf2); SAFE_FREE(tbuf3); return NULL; } while(0)
+ 
+    /* don't complain about unused var */
+    (void)end;
+@@ -352,16 +360,16 @@ FUNC_DECODER(dissector_gg)
+ 
+    DEBUG_MSG("Gadu-Gadu --> TCP dissector_gg (%.8X:%.8X)", gg->type, gg->len);
+ 
+-   SAFE_CALLOC(tbuf, 50, sizeof(char));
+-   SAFE_CALLOC(tbuf2, 71, sizeof(char));
+-   SAFE_CALLOC(tbuf3, 30, sizeof(char));
++   SAFE_CALLOC(tbuf, GG_TBUF_SIZE, sizeof(char));
++   SAFE_CALLOC(tbuf2, GG_MAX_LEN + 1, sizeof(char));
++   SAFE_CALLOC(tbuf3, GG_TBUF3_SIZE, sizeof(char));
+    
+ if ((gg->type == GG_LOGIN50_CMD) && !FROM_SERVER("gg", PACKET)) {
+-   gg_get_status(gg_login50->status,tbuf);
+-   gg_get_version(gg_login50->version,tbuf3);
++   gg_get_status(gg_login50->status, tbuf, GG_TBUF_SIZE);
++   gg_get_version(gg_login50->version, tbuf3, GG_TBUF3_SIZE);
+    size_t offset=22;
+    if (gg->len < offset)
+-       return NULL;
++       GG_BAIL();
+    size_t copy_len = MIN(gg->len - offset, GG_MAX_LEN);
+    strncpy(tbuf2,gg_login50->description, copy_len);
+    tbuf2[copy_len]='\0';
+@@ -381,11 +389,11 @@ if ((gg->type == GG_LOGIN50_CMD) && !FROM_SERVER("gg", PACKET)) {
+                                  gg_login50->local_port);
+ }
+ else if (gg->type == GG_LOGIN60_CMD) {
+-   gg_get_status(gg_login60->status,tbuf);
+-   gg_get_version(gg_login60->version,tbuf3);
++   gg_get_status(gg_login60->status, tbuf, GG_TBUF_SIZE);
++   gg_get_version(gg_login60->version, tbuf3, GG_TBUF3_SIZE);
+    size_t offset=31;
+    if (gg->len < offset)
+-       return NULL;
++       GG_BAIL();
+    size_t copy_len = MIN(gg->len - offset, GG_MAX_LEN);
+    strncpy(tbuf2,gg_login60->description, copy_len);
+    tbuf2[copy_len]='\0';
+@@ -407,11 +415,11 @@ else if (gg->type == GG_LOGIN60_CMD) {
+                                  gg_login60->remote_port);
+ }
+ else if (gg->type == GG_LOGIN70_CMD) {
+-   gg_get_status(gg_login70->status,tbuf);
+-   gg_get_version(gg_login70->version,tbuf3);
++   gg_get_status(gg_login70->status, tbuf, GG_TBUF_SIZE);
++   gg_get_version(gg_login70->version, tbuf3, GG_TBUF3_SIZE);
+    size_t offset=92;
+    if (gg->len < offset)
+-       return NULL;
++       GG_BAIL();
+    size_t copy_len = MIN(gg->len - offset, GG_MAX_LEN);
+    strncpy(tbuf2,gg_login70->description, copy_len);
+    tbuf2[copy_len]='\0';
+@@ -459,10 +467,10 @@ else if (gg->type == GG_WELCOME_CMD) {
+ }
+ #ifdef GG_CONTACTS_STATUS_CHANGES
+ else if ((gg->type == GG_STATUS_CMD) && FROM_SERVER("gg", PACKET)) {
+-    gg_get_status(gg_status->status,tbuf);
++    gg_get_status(gg_status->status, tbuf, GG_TBUF_SIZE);
+     size_t offset=8;
+     if (gg->len < offset)
+-        return NULL;
++        GG_BAIL();
+     size_t copy_len = MIN(gg->len - offset, GG_MAX_LEN);
+     strncpy(tbuf2,gg_status->description, copy_len);
+     tbuf2[copy_len]='\0';
+@@ -475,10 +483,10 @@ else if ((gg->type == GG_STATUS_CMD) && FROM_SERVER("gg", PACKET)) {
+ } 
+ #endif
+ else if ((gg->type == GG_NEW_STATUS_CMD) && !FROM_SERVER("gg", PACKET)) {
+-      gg_get_status(gg_new_status->status,tbuf);
++      gg_get_status(gg_new_status->status, tbuf, GG_TBUF_SIZE);
+       size_t offset=4;
+       if (gg->len < offset)
+-          return NULL;
++          GG_BAIL();
+       size_t copy_len = MIN(gg->len - offset, GG_MAX_LEN);
+       strncpy(tbuf2,gg_new_status->description, copy_len);
+       tbuf2[copy_len]='\0';
+@@ -490,11 +498,11 @@ else if ((gg->type == GG_NEW_STATUS_CMD) && !FROM_SERVER("gg", PACKET)) {
+ }
+ #ifdef GG_CONTACTS_STATUS_CHANGES
+ else if ((gg->type == GG_STATUS50_CMD) && FROM_SERVER("gg", PACKET)) {
+-      gg_get_status(gg_status50->status,tbuf);
+-      gg_get_version(gg_status50->version,tbuf3);
++      gg_get_status(gg_status50->status, tbuf, GG_TBUF_SIZE);
++      gg_get_version(gg_status50->version, tbuf3, GG_TBUF3_SIZE);
+       size_t offset=20;
+       if (gg->len < offset)
+-          return NULL;
++          GG_BAIL();
+       size_t copy_len = MIN(gg->len - offset, GG_MAX_LEN);
+       strncpy(tbuf2,gg_status50->description, copy_len);
+       tbuf2[copy_len]='\0';
+@@ -509,11 +517,11 @@ else if ((gg->type == GG_STATUS50_CMD) && FROM_SERVER("gg", PACKET)) {
+                                  gg_status50->remote_port);
+ }
+ else if (gg->type == GG_STATUS60_CMD) {
+-      gg_get_status(gg_status60->status,tbuf);
+-      gg_get_version(gg_status60->version,tbuf3);
++      gg_get_status(gg_status60->status, tbuf, GG_TBUF_SIZE);
++      gg_get_version(gg_status60->version, tbuf3, GG_TBUF3_SIZE);
+       size_t offset=14;
+       if (gg->len < offset)
+-          return NULL;
++          GG_BAIL();
+       size_t copy_len = MIN(gg->len - offset, GG_MAX_LEN);
+       strncpy(tbuf2,gg_status60->description, copy_len);
+       tbuf2[copy_len]='\0';
+@@ -528,12 +536,12 @@ else if (gg->type == GG_STATUS60_CMD) {
+                                  gg_status60->remote_port);
+ }
+ else if (gg->type == GG_STATUS70_CMD) {
+-      gg_get_status(gg_status70->status,tbuf);
++      gg_get_status(gg_status70->status, tbuf, GG_TBUF_SIZE);
+       size_t offset=18;
+       if (gg->len < offset)
+-          return NULL;
++          GG_BAIL();
+       size_t copy_len = MIN(gg->len - offset, GG_MAX_LEN);
+-      gg_get_version(gg_status70->version,tbuf3);
++      gg_get_version(gg_status70->version, tbuf3, GG_TBUF3_SIZE);
+       strncpy(tbuf2,gg_status70->description, copy_len);
+       tbuf2[copy_len]='\0';
+       DISSECT_MSG("GG7 : %s:%d -> %s:%d - STATUS CHANGED  UIN: %u  STATUS: %s (%s)  VERSION: %s  RIP: %u.%u.%u.%u:%u\n", ip_addr_ntoa(&PACKET->L3.src, tmp),
+@@ -564,133 +572,147 @@ else {
+    return NULL;
+ }
+ 
+-void gg_get_status(u_int32 status, char *str)  {
++void gg_get_status(u_int32 status, char *str, size_t size)  {
++   char buf[128];
++
++   buf[0] = '\0';
+ 
+ switch ((status&0x00ff)) {
+ 
+ case 0x0014:
+-   strcpy(str,"invisible");
++   strcpy(buf,"invisible");
+    break;
+ 
+ case 0x0002:
+-   strcpy(str,"available");
++   strcpy(buf,"available");
+    break;
+ 
+ case 0x0003:
+-   strcpy(str,"busy");
++   strcpy(buf,"busy");
+    break;
+ 
+ case 0x0006:
+-   strcpy(str,"blocked");
++   strcpy(buf,"blocked");
+    break;
+ 
+ case 0x0001:
+-   strcpy(str,"not available");
++   strcpy(buf,"not available");
+    break;
+ 
+ case 0x0016:
+-   strcpy(str,"invisible + descr");
++   strcpy(buf,"invisible + descr");
+    break;
+ 
+ case 0x0004:
+-   strcpy(str,"available + descr");
++   strcpy(buf,"available + descr");
+    break;
+ 
+ case 0x0005:
+-   strcpy(str,"busy + descr");
++   strcpy(buf,"busy + descr");
+    break;
+ 
+ case 0x0015:
+-   strcpy(str,"not available + descr");
++   strcpy(buf,"not available + descr");
+    break;
+ 
+ default:
+-   strcpy(str,"unknown");
++   strcpy(buf,"unknown");
+ }
+ 
+ if ((status&0xff00)==0x8000)
+-   strcat(str," + private");
++   strcat(buf," + private");
++
++/* GHSA-vrjv-f8gv-2h35: the helper composes into an ample private buffer
++ * and only ever hands the caller a bounded copy */
++snprintf(str, size, "%s", buf);
+ 
+ }
+ 
+-void gg_get_version(u_int32 version, char *str)  {
++void gg_get_version(u_int32 version, char *str, size_t size)  {
++   char buf[128];
++
++   buf[0] = '\0';
+ 
+ switch ((version&0x00ff)) {
+ 
+ case 0x0000002A:
+-   strcpy(str,"7.7");
++   strcpy(buf,"7.7");
+    break;
+ 
+ case 0x00000029:
+-   strcpy(str,"7.6");
++   strcpy(buf,"7.6");
+    break;
+ 
+ case 0x00000024:
+-   strcpy(str,"6.1/7.6");
++   strcpy(buf,"6.1/7.6");
+    break;
+ 
+ case 0x00000028:
+-   strcpy(str,"7.5");
++   strcpy(buf,"7.5");
+    break;
+ 
+ case 0x00000027:
+ case 0x00000026:
+ case 0x00000025:
+-   strcpy(str,"7.0");
++   strcpy(buf,"7.0");
+    break;
+ 
+ case 0x00000022:
+ case 0x00000021:
+ case 0x00000020:
+-   strcpy(str,"6.0");
++   strcpy(buf,"6.0");
+    break;
+ 
+ case 0x0000001E:
+ case 0x0000001C:
+-   strcpy(str,"5.7");
++   strcpy(buf,"5.7");
+    break;
+ 
+ case 0x0000001B:
+ case 0x00000019:
+-   strcpy(str,"5.0");
++   strcpy(buf,"5.0");
+    break;
+ 
+ case 0x00000018:
+-   strcpy(str,"5.0/4.9");
++   strcpy(buf,"5.0/4.9");
+    break;
+ 
+ case 0x00000017:
+ case 0x00000016:
+-   strcpy(str,"4.9");
++   strcpy(buf,"4.9");
+    break;
+ 
+ case 0x00000015:
+ case 0x00000014:
+-   strcpy(str,"4.8");
++   strcpy(buf,"4.8");
+    break;
+ 
+ case 0x00000011:
+-   strcpy(str,"4.6");
++   strcpy(buf,"4.6");
+    break;
+ 
+ case 0x00000010:
+ case 0x0000000f:
+-   strcpy(str,"4.5");
++   strcpy(buf,"4.5");
+    break;
+ 
+ case 0x0000000b:
+-   strcpy(str,"4.0");
++   strcpy(buf,"4.0");
+    break;
+ 
+ default:
+-   sprintf(str,"unknown (0x%X)",version);
++   sprintf(buf,"unknown (0x%X)",version);
+ }
+ 
+ if ((version&0xf0000000)==0x40000000)
+-   strcat(str," + has audio");
++   strcat(buf," + has audio");
+ 
+ if ((version&0x0f000000)== 0x04000000)
+-   strcat(str," + eraomnix");
++   strcat(buf," + eraomnix");
++
++/* GHSA-vrjv-f8gv-2h35: the helper composes into an ample private buffer
++ * and only ever hands the caller a bounded copy */
++snprintf(str, size, "%s", buf);
+ 
+ }
+ 
+diff --git a/src/dissectors/ec_http.c b/src/dissectors/ec_http.c
+index 6384d0af..30f09a94 100644
+--- a/src/dissectors/ec_http.c
++++ b/src/dissectors/ec_http.c
+@@ -26,6 +26,8 @@
+ #include <ec_session.h>
+ #include <ec_sslwrap.h>
+ 
++#include <stddef.h>   /* offsetof() */
++
+ /* globals */
+ #define USER 0
+ #define PASS 1
+@@ -105,6 +107,7 @@ static int Parse_Basic_Auth(char *ptr, char *from_here, struct packet_object *po
+ static int Parse_User_Agent(char *end, char *from_here, struct packet_object *po);
+ static char *unicodeToString(char *p, size_t len);
+ static void dumpRaw(char *str, unsigned char *buf, size_t len);
++static char *unicodeToStringChecked(char *base, size_t buflen, u_int32 offset, u_int16 len);
+ int http_fields_init(void);
+ 
+ #define CVAL(buf,pos) (((unsigned char *)(buf))[pos])
+@@ -112,7 +115,19 @@ int http_fields_init(void);
+ #define SVAL(buf,pos) (PVAL(buf,pos)|PVAL(buf,(pos)+1)<<8)
+ #define IVAL(buf,pos) (SVAL(buf,pos)|SVAL(buf,(pos)+2)<<16)
+ 
+-#define GetUnicodeString(structPtr, header) unicodeToString(((char*)structPtr) + IVAL(&structPtr->header.offset,0) , SVAL(&structPtr->header.len,0)/2)
++/*
++ * GHSA-jw9q-j2rm-94j2: the offset and length of every NTLM string are taken
++ * verbatim from the packet, so both have to be validated against the size of
++ * the decoded message before they are used as a displacement. buflen is the
++ * number of bytes base64decode() actually produced.
++ */
++#define NTLM_FIELD_IN_BOUNDS(buflen, off, cnt) \
++   ((size_t)(off) <= (size_t)(buflen) && (size_t)(cnt) <= (size_t)(buflen) - (size_t)(off))
++
++#define GetUnicodeString(structPtr, header, buflen) \
++   unicodeToStringChecked((char*)(structPtr), (buflen), \
++                          IVAL(&(structPtr)->header.offset,0), \
++                          SVAL(&(structPtr)->header.len,0))
+ 
+ /************************************************/
+ 
+@@ -465,7 +480,21 @@ static int Parse_NTLM_Auth(char *ptr, char *from_here, struct packet_object *po)
+    ec_strtok(to_decode, "\r", &tok);
+ 
+    char *decoded;
+-   base64decode(to_decode, &decoded);
++   int decoded_len;
++
++   decoded_len = base64decode(to_decode, &decoded);
++
++   /*
++    * GHSA-jw9q-j2rm-94j2: base64decode() sizes its output from the input
++    * string, so a short blob left every read below out of bounds - starting
++    * with msgType, which lives at offset 8.
++    */
++   if (decoded_len < (int)sizeof(tSmbStdHeader)) {
++      SAFE_FREE(to_decode);
++      SAFE_FREE(decoded);
++      return 1;
++   }
++
+    hSmb = (tSmbStdHeader *) decoded;
+    msgType = IVAL(&hSmb->msgType, 0);
+ 
+@@ -476,7 +505,14 @@ static int Parse_NTLM_Auth(char *ptr, char *from_here, struct packet_object *po)
+       tSmbNtlmAuthChallenge *challenge_struct;
+ 
+       challenge_struct = (tSmbNtlmAuthChallenge *) decoded;
+-      
++
++      /* the fixed part up to and including challengeData must be present */
++      if (decoded_len < (int)(offsetof(tSmbNtlmAuthChallenge, challengeData) + 8)) {
++         SAFE_FREE(to_decode);
++         SAFE_FREE(decoded);
++         return 1;
++      }
++
+       /* Create a session to remember the server challenge */
+       dissect_create_session(&s, po, DISSECT_CODE(dissector_http));
+       SAFE_CALLOC(s->data, 1, sizeof(struct http_status));                  
+@@ -502,17 +538,42 @@ static int Parse_NTLM_Auth(char *ptr, char *from_here, struct packet_object *po)
+          if (conn_status->c_status == NTLM_WAIT_RESPONSE) {
+             /* Fill the user and passwords */
+             response_struct  = (tSmbNtlmAuthResponse *) decoded;
+-            po->DISSECTOR.user = strdup(GetUnicodeString(response_struct, uUser));
+-            SAFE_CALLOC(po->DISSECTOR.pass, strlen(po->DISSECTOR.user) + 150, sizeof(char));
+-            snprintf(po->DISSECTOR.pass, strlen(po->DISSECTOR.user) + 150, "(NTLM) %s:\"\":\"\":", po->DISSECTOR.user);
+-            outstr = po->DISSECTOR.pass + strlen(po->DISSECTOR.pass);
+-            dumpRaw(outstr,((unsigned char*)response_struct)+IVAL(&response_struct->lmResponse.offset,0), 24);	    	 
+-            outstr[48] = ':';
+-            outstr+=49;
+-            dumpRaw(outstr,((unsigned char*)response_struct)+IVAL(&response_struct->ntResponse.offset,0), 24);	       	    
+-            outstr[48] = ':';
+-            outstr += 49;
+-            strcat(po->DISSECTOR.pass, (const char*)conn_status->c_data);
++
++            u_int32 lm_off = IVAL(&response_struct->lmResponse.offset, 0);
++            u_int32 nt_off = IVAL(&response_struct->ntResponse.offset, 0);
++            char *ntlm_user;
++
++            /*
++             * GHSA-jw9q-j2rm-94j2: the fixed header has to be there, and both
++             * response offsets have to address 24 bytes that are really inside
++             * the decoded message. Both used to be added to the message base
++             * unchecked, letting a peer read - and have us log - heap memory
++             * from anywhere in a 4GB window above the allocation.
++             */
++            if (decoded_len >= (int)offsetof(tSmbNtlmAuthResponse, buffer) &&
++                NTLM_FIELD_IN_BOUNDS(decoded_len, lm_off, 24) &&
++                NTLM_FIELD_IN_BOUNDS(decoded_len, nt_off, 24) &&
++                (ntlm_user = GetUnicodeString(response_struct, uUser, decoded_len)) != NULL) {
++
++               po->DISSECTOR.user = strdup(ntlm_user);
++               SAFE_CALLOC(po->DISSECTOR.pass, strlen(po->DISSECTOR.user) + 150, sizeof(char));
++               snprintf(po->DISSECTOR.pass, strlen(po->DISSECTOR.user) + 150, "(NTLM) %s:\"\":\"\":", po->DISSECTOR.user);
++               outstr = po->DISSECTOR.pass + strlen(po->DISSECTOR.pass);
++               dumpRaw(outstr, ((unsigned char*)response_struct) + lm_off, 24);
++               outstr[48] = ':';
++               outstr+=49;
++               dumpRaw(outstr, ((unsigned char*)response_struct) + nt_off, 24);
++               outstr[48] = ':';
++               outstr += 49;
++               strcat(po->DISSECTOR.pass, (const char*)conn_status->c_data);
++            } else {
++               DEBUG_MSG("HTTP --> malformed NTLM type 3 message, skipped");
++               session_free(s);
++               SAFE_FREE(ident);
++               SAFE_FREE(to_decode);
++               SAFE_FREE(decoded);
++               return 1;
++            }
+ 
+             /* Are we authenticating to the proxy or to a website? */
+             if (Proxy_Auth)
+@@ -865,6 +926,18 @@ static void dumpRaw(char *str, unsigned char *buf, size_t len)
+       snprintf(str, 3, "%02x", buf[i]);
+ }
+ 
++/*
++ * Bounds-checked wrapper around unicodeToString(). Returns NULL when the
++ * packet-supplied offset/length pair does not fit inside the decoded message.
++ */
++static char *unicodeToStringChecked(char *base, size_t buflen, u_int32 offset, u_int16 len)
++{
++   if (!NTLM_FIELD_IN_BOUNDS(buflen, offset, len))
++      return NULL;
++
++   return unicodeToString(base + offset, len / 2);
++}
++
+ /* A little helper function */
+ static char *unicodeToString(char *p, size_t len)
+ {
+diff --git a/src/dissectors/ec_telnet.c b/src/dissectors/ec_telnet.c
+index cbf97b33..dab44afe 100644
+--- a/src/dissectors/ec_telnet.c
++++ b/src/dissectors/ec_telnet.c
+@@ -151,7 +151,13 @@ FUNC_DECODER(dissector_telnet)
+             stringlen = strlen((const char*)str);
+             for (p = str, i = 0; i < stringlen; i++) {
+                if (str[i] == '\b' || str[i] == 0x7f) {
+-                  p--;
++                  /*
++                   * GHSA-w5ch-7c4x-crcc: a backspace arriving before any
++                   * printable character used to walk p below str, after which
++                   * this loop wrote attacker-chosen bytes underneath the VLA.
++                   */
++                  if (p > str)
++                     p--;
+                } else {
+                   *p = str[i];
+                   p++;  
+diff --git a/src/ec_encryption_ccmp.c b/src/ec_encryption_ccmp.c
+index 8f8761e8..3c78733c 100644
+--- a/src/ec_encryption_ccmp.c
++++ b/src/ec_encryption_ccmp.c
+@@ -56,15 +56,35 @@ int wpa_ccmp_decrypt(u_char *mac, u_char *data, size_t len, struct wpa_sa sa)
+ {
+    u_char mic[WPA_CCMP_TRAILER];
+    u_char PN[6]; /* 48 bit Packet Number */
+-   size_t data_len = len - sizeof(struct wpa_header);
+    u_char AAD[AES_BLOCK_SIZE*2];
+    u_char BZERO[AES_BLOCK_SIZE], A[AES_BLOCK_SIZE], B[AES_BLOCK_SIZE];
+-   u_char decbuf[len];
+    AES_KEY aes_ctx;
++   size_t data_len;
+ 
+-   if (len > UINT16_MAX) {
+-       return -E_NOTHANDLED;
+-   }
++   /*
++    * GHSA-j37f-7jx3-rf8j: len is the payload that follows the WPA header, so
++    * it has to be at least large enough to hold the CCMP MIC trailer. It used
++    * to be used unchecked: data_len underflowed for len < 8, the memset near
++    * the end of this function wrote before data, and ccmp_decrypt() wrapped
++    * its own length and ran away up the stack.
++    *
++    * The upper bound is checked here too, before the decbuf VLA is sized from
++    * len rather than after it.
++    */
++   if (len > UINT16_MAX)
++      return -E_NOTHANDLED;
++
++   if (len < WPA_CCMP_TRAILER)
++      return -E_NOTHANDLED;
++
++   /*
++    * Numerically identical to the previous len - sizeof(struct wpa_header)
++    * (both are 8), but this is the value CCM actually wants in B0: the length
++    * of the plaintext payload, i.e. everything except the MIC trailer.
++    */
++   data_len = len - WPA_CCMP_TRAILER;
++
++   u_char decbuf[len];
+ 
+    /* init the AES with the decryption key from SA */
+    AES_set_encrypt_key(sa.decryption_key, 128, &aes_ctx);
+@@ -191,6 +211,14 @@ static int ccmp_decrypt(u_char *enc, u_char *BZERO, u_char *B, u_char *A, u_char
+ {
+    int i = 1;
+ 
++   /*
++    * GHSA-j37f-7jx3-rf8j: len is unsigned, so a frame shorter than the
++    * trailer wrapped this subtraction to ~SIZE_MAX and the loop below then
++    * wrote AES blocks far past the caller's stack buffer.
++    */
++   if (len < WPA_CCMP_TRAILER)
++      return -E_NOTHANDLED;
++
+    /* remove the trailer from the length */
+    len -= WPA_CCMP_TRAILER;
+ 
+diff --git a/src/ec_filter.c b/src/ec_filter.c
+index a436d6df..7b6ca084 100644
+--- a/src/ec_filter.c
++++ b/src/ec_filter.c
+@@ -567,8 +567,18 @@ static int func_pcre(struct filter_op *fop, struct packet_object *po)
+    return -E_NOTFOUND;
+ #else
+ #ifdef HAVE_PCRE2
+-   PCRE2_SIZE *ovec;
++   /*
++    * GHSA-f3j5-rhhr-85j5: hold our own copy of the ovector.
++    * The ovector lives inside the pcre2_match_data block, so a pointer to it
++    * is only valid while that block is alive. Copying the offsets out lets us
++    * release the match data on every path without the rest of the function
++    * reading (and computing memcpy offsets from) freed heap memory.
++    */
++   PCRE2_SIZE ovec[PCRE_OVEC_SIZE];
++   PCRE2_SIZE *ovec_src;
+    pcre2_match_data *match_data;
++   uint32_t ovec_pairs, n;
++   memset(&ovec, 0, sizeof(ovec));
+ #else
+    int ovec[PCRE_OVEC_SIZE];
+    memset(&ovec, 0, sizeof(ovec));
+@@ -583,14 +593,28 @@ static int func_pcre(struct filter_op *fop, struct packet_object *po)
+          /* search in the real packet */
+ #ifdef HAVE_PCRE2
+          match_data = pcre2_match_data_create_from_pattern(fop->op.func.ropt->pregex, NULL);
+-         if ( (ret = pcre2_match(fop->op.func.ropt->pregex, (PCRE2_SPTR)po->DATA.data, po->DATA.len, 0, 0, match_data, NULL)) < 0)
+-#else
+-         if ( (ret = pcre_exec(fop->op.func.ropt->pregex, fop->op.func.ropt->preg_extra, po->DATA.data, po->DATA.len, 0, 0, ovec, sizeof(ovec) / sizeof(*ovec))) < 0)
+-#endif
++         if ( (ret = pcre2_match(fop->op.func.ropt->pregex, (PCRE2_SPTR)po->DATA.data, po->DATA.len, 0, 0, match_data, NULL)) < 0) {
++            /* also plugs the leak this path used to have */
++            pcre2_match_data_free(match_data);
+             return -E_NOTFOUND;
++         }
++
++         /* snapshot the offsets before the match data goes away */
++         ovec_src = pcre2_get_ovector_pointer(match_data);
++         ovec_pairs = pcre2_get_ovector_count(match_data);
++         if (ovec_pairs > PCRE_OVEC_SIZE / 2)
++            ovec_pairs = PCRE_OVEC_SIZE / 2;
++         for (n = 0; n < ovec_pairs * 2; n++)
++            ovec[n] = ovec_src[n];
+ 
+-#ifdef HAVE_PCRE2
+          pcre2_match_data_free(match_data);
++
++         /* never let a marker index past the pairs we actually copied */
++         if (ret > (int)ovec_pairs)
++            ret = (int)ovec_pairs;
++#else
++         if ( (ret = pcre_exec(fop->op.func.ropt->pregex, fop->op.func.ropt->preg_extra, po->DATA.data, po->DATA.len, 0, 0, ovec, sizeof(ovec) / sizeof(*ovec))) < 0)
++            return -E_NOTFOUND;
+ #endif
+ 
+          /* the pcre wants to modify the packet */
+@@ -621,9 +645,6 @@ static int func_pcre(struct filter_op *fop, struct packet_object *po)
+             }
+             /* now: i = strlen(q) */
+ 
+-#ifdef HAVE_PCRE2
+-            ovec = pcre2_get_ovector_pointer(match_data);
+-#endif
+             SAFE_CALLOC(replaced, markers*(ovec[1]-ovec[0]) + i + 1, sizeof(char));
+           
+             po->flags |= PO_MODIFIED;
+@@ -707,11 +728,14 @@ static int func_pcre(struct filter_op *fop, struct packet_object *po)
+          /* search in the decoded one */
+ #ifdef HAVE_PCRE2
+          match_data = pcre2_match_data_create_from_pattern(fop->op.func.ropt->pregex, NULL);
+-         if ( pcre2_match(fop->op.func.ropt->pregex, (PCRE2_SPTR)po->DATA.disp_data, po->DATA.disp_len, 0, 0, match_data, NULL) < 0)
++         if ( pcre2_match(fop->op.func.ropt->pregex, (PCRE2_SPTR)po->DATA.disp_data, po->DATA.disp_len, 0, 0, match_data, NULL) < 0) {
++            pcre2_match_data_free(match_data);
++            return -E_NOTFOUND;
++         }
+ #else
+          if ( pcre_exec(fop->op.func.ropt->pregex, fop->op.func.ropt->preg_extra, po->DATA.disp_data, po->DATA.disp_len, 0, 0, NULL, 0) < 0)
+-#endif
+             return -E_NOTFOUND;
++#endif
+ 
+ #ifdef HAVE_PCRE2
+          pcre2_match_data_free(match_data);
+diff --git a/src/ec_sslwrap.c b/src/ec_sslwrap.c
+index 8581c7a9..873225b7 100644
+--- a/src/ec_sslwrap.c
++++ b/src/ec_sslwrap.c
+@@ -573,7 +573,16 @@ static int sslw_clienthello_cb(SSL *ssl, int *alert, void *arg)
+ 
+    ae = (struct accepted_entry *)arg;
+ 
+-   /* extract hostname value from SNI extension */
++   /*
++    * Extract hostname value from SNI extension.
++    *
++    * This callback is invoked more than once per handshake (it returns
++    * SSL_CLIENT_HELLO_RETRY the first time), so release whatever the previous
++    * invocation stored before taking ownership of a new string. SAFE_FREE()
++    * NULLs as it frees, which keeps this safe to re-enter and makes a double
++    * free of ae->hostname unreachable on every path that reaches here.
++    */
++   SAFE_FREE(ae->hostname);
+    ae->hostname = sslw_get_clienthello_sni(ssl);
+ 
+    if (ae->tls_handshake_state != SSL_CLIENTHELLO_INTERCEPTED) {
+@@ -600,8 +609,14 @@ static char* sslw_get_clienthello_sni(SSL *ssl)
+          sni_type = sni[2];
+          val_len = sni[3] << 8 | sni[4];
+ 
+-         if (sni_type == TLSEXT_NAMETYPE_host_name)
+-            return strndup(sni+5, val_len);
++         /*
++          * GHSA-v48w-7cvh-c7f4: val_len comes straight off the wire and the
++          * client_hello callback runs before OpenSSL validates extension
++          * bodies, so it has to be checked against the extension we actually
++          * got. Without this, strndup() walked up to 64KB past the buffer.
++          */
++         if (sni_type == TLSEXT_NAMETYPE_host_name && val_len <= len - 5)
++            return strndup((const char *)sni + 5, val_len);
+       }
+    }
+ 
+@@ -1309,9 +1324,22 @@ static int sslw_remove_sts(struct packet_object *po)
+    len = end - ptr;
+ 
+    ptr = (u_char*)memmem(ptr, len, "\r\nStrict-Transport-Security:", slen);
++   if (ptr == NULL)
++      return -E_NOTFOUND;
+    ptr += 2;
+ 
+-   h_end = (u_char*)memmem(ptr, len, "\r\n", 2);
++   /*
++    * GHSA-hq2w-pg4m-6w63: len still described the whole buffer, so this search
++    * ran up to (ptr - po->DATA.data) bytes past the end of it and could match
++    * out of bounds. Bound it by what is actually left after the advanced
++    * pointer, and bail out when the header is not terminated inside this
++    * packet - h_end used to become 0x2 there, underflowing header_length and
++    * handing memcpy() a near-SIZE_MAX length. len itself must keep describing
++    * the whole packet, since the reconstruction below is sized from it.
++    */
++   h_end = (u_char*)memmem(ptr, (size_t)(end - ptr), "\r\n", 2);
++   if (h_end == NULL)
++      return -E_NOTFOUND;
+    h_end += 2;
+ 
+    size_t before_header = ptr - po->DATA.data;

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 42/64] tinyproxy: patch CVE-2026-125371
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (40 preceding siblings ...)
  2026-11-19 18:33 ` [blacksail][PATCH 41/64] ettercap: patch CVEs CVE-2026-125400 - CVE-2026-125406 ankur.tyagi85
@ 2026-11-19 18:33 ` ankur.tyagi85
  2026-11-19 18:33 ` [blacksail][PATCH 43/64] webmin: patch CVE-2026-125391 ankur.tyagi85
                   ` (21 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:33 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ankur Tyagi

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

Details:
https://nvd.nist.gov/vuln/detail/cve-2026-125371

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../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

diff --git a/meta-networking/recipes-support/tinyproxy/tinyproxy/CVE-2026-125371.patch b/meta-networking/recipes-support/tinyproxy/tinyproxy/CVE-2026-125371.patch
new file mode 100644
index 0000000000..7a86af207c
--- /dev/null
+++ b/meta-networking/recipes-support/tinyproxy/tinyproxy/CVE-2026-125371.patch
@@ -0,0 +1,70 @@
+From 8c8463fb1a0bf7db82d3dfc6f363d5b339e96cd3 Mon Sep 17 00:00:00 2001
+From: rofl0r <rofl0r@users.noreply.github.com>
+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 <ankur.tyagi85@gmail.com>
+---
+ 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. */
diff --git a/meta-networking/recipes-support/tinyproxy/tinyproxy_1.11.3.bb b/meta-networking/recipes-support/tinyproxy/tinyproxy_1.11.3.bb
index 46d3a4d7c6..86e7e906b1 100644
--- a/meta-networking/recipes-support/tinyproxy/tinyproxy_1.11.3.bb
+++ b/meta-networking/recipes-support/tinyproxy/tinyproxy_1.11.3.bb
@@ -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"

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 43/64] webmin: patch CVE-2026-125391
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (41 preceding siblings ...)
  2026-11-19 18:33 ` [blacksail][PATCH 42/64] tinyproxy: patch CVE-2026-125371 ankur.tyagi85
@ 2026-11-19 18:33 ` ankur.tyagi85
  2026-11-19 18:33 ` [blacksail][PATCH 44/64] webmin: patch CVE-2026-125392 ankur.tyagi85
                   ` (20 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:33 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ankur Tyagi

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

Details:
https://nvd.nist.gov/vuln/detail/cve-2026-125391

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../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

diff --git a/meta-webserver/recipes-webadmin/webmin/files/CVE-2026-125391.patch b/meta-webserver/recipes-webadmin/webmin/files/CVE-2026-125391.patch
new file mode 100644
index 0000000000..077adc95d5
--- /dev/null
+++ b/meta-webserver/recipes-webadmin/webmin/files/CVE-2026-125391.patch
@@ -0,0 +1,37 @@
+From 86791cd2bd1848b3967dc86ae0909493e768db7e Mon Sep 17 00:00:00 2001
+From: Ilia Ross <ilia@ross.gdn>
+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 <ankur.tyagi85@gmail.com>
+---
+ 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>");
+ 		}
+ 	}
diff --git a/meta-webserver/recipes-webadmin/webmin/webmin_2.653.bb b/meta-webserver/recipes-webadmin/webmin/webmin_2.653.bb
index a46c3aad16..e4380e16a0 100644
--- a/meta-webserver/recipes-webadmin/webmin/webmin_2.653.bb
+++ b/meta-webserver/recipes-webadmin/webmin/webmin_2.653.bb
@@ -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"

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 44/64] webmin: patch CVE-2026-125392
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (42 preceding siblings ...)
  2026-11-19 18:33 ` [blacksail][PATCH 43/64] webmin: patch CVE-2026-125391 ankur.tyagi85
@ 2026-11-19 18:33 ` ankur.tyagi85
  2026-11-19 18:33 ` [blacksail][PATCH 45/64] python3-aiohttp: patch CVE-2026-111063 ankur.tyagi85
                   ` (19 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:33 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ankur Tyagi

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

Details:
https://nvd.nist.gov/vuln/detail/cve-2026-125392

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../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

diff --git a/meta-webserver/recipes-webadmin/webmin/files/CVE-2026-125392.patch b/meta-webserver/recipes-webadmin/webmin/files/CVE-2026-125392.patch
new file mode 100644
index 0000000000..f357eb703a
--- /dev/null
+++ b/meta-webserver/recipes-webadmin/webmin/files/CVE-2026-125392.patch
@@ -0,0 +1,26 @@
+From 261c858c1f09b734add7239b835c1085eab3106c Mon Sep 17 00:00:00 2001
+From: Jamie Cameron <jcameron@webmin.com>
+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 <ankur.tyagi85@gmail.com>
+---
+ 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'}));
diff --git a/meta-webserver/recipes-webadmin/webmin/webmin_2.653.bb b/meta-webserver/recipes-webadmin/webmin/webmin_2.653.bb
index e4380e16a0..8598994a17 100644
--- a/meta-webserver/recipes-webadmin/webmin/webmin_2.653.bb
+++ b/meta-webserver/recipes-webadmin/webmin/webmin_2.653.bb
@@ -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"

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 45/64] python3-aiohttp: patch CVE-2026-111063
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (43 preceding siblings ...)
  2026-11-19 18:33 ` [blacksail][PATCH 44/64] webmin: patch CVE-2026-125392 ankur.tyagi85
@ 2026-11-19 18:33 ` ankur.tyagi85
  2026-11-19 18:33 ` [blacksail][PATCH 46/64] python3-aiohttp: patch CVE-2026-111065 ankur.tyagi85
                   ` (18 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:33 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ankur Tyagi

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

Details:
https://nvd.nist.gov/vuln/detail/cve-2026-111063

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../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

diff --git a/meta-python/recipes-devtools/python/python3-aiohttp/CVE-2026-111063.patch b/meta-python/recipes-devtools/python/python3-aiohttp/CVE-2026-111063.patch
new file mode 100644
index 0000000000..f9654a5a9b
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-aiohttp/CVE-2026-111063.patch
@@ -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 <git@sambull.org>
+(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 <ankur.tyagi85@gmail.com>
+---
+ 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.
+ 
diff --git a/meta-python/recipes-devtools/python/python3-aiohttp_3.14.3.bb b/meta-python/recipes-devtools/python/python3-aiohttp_3.14.3.bb
index b862076869..3f97b89ef2 100644
--- a/meta-python/recipes-devtools/python/python3-aiohttp_3.14.3.bb
+++ b/meta-python/recipes-devtools/python/python3-aiohttp_3.14.3.bb
@@ -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"

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 46/64] python3-aiohttp: patch CVE-2026-111065
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (44 preceding siblings ...)
  2026-11-19 18:33 ` [blacksail][PATCH 45/64] python3-aiohttp: patch CVE-2026-111063 ankur.tyagi85
@ 2026-11-19 18:33 ` ankur.tyagi85
  2026-11-19 18:33 ` [blacksail][PATCH 47/64] python3-aiohttp: patch CVE-2026-111066 ankur.tyagi85
                   ` (17 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:33 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ankur Tyagi

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

Details:
https://nvd.nist.gov/vuln/detail/cve-2026-111065

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../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

diff --git a/meta-python/recipes-devtools/python/python3-aiohttp/CVE-2026-111065.patch b/meta-python/recipes-devtools/python/python3-aiohttp/CVE-2026-111065.patch
new file mode 100644
index 0000000000..affe7e62a9
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-aiohttp/CVE-2026-111065.patch
@@ -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 <git@sambull.org>
+(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 <ankur.tyagi85@gmail.com>
+---
+ 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
diff --git a/meta-python/recipes-devtools/python/python3-aiohttp_3.14.3.bb b/meta-python/recipes-devtools/python/python3-aiohttp_3.14.3.bb
index 3f97b89ef2..f3bb555408 100644
--- a/meta-python/recipes-devtools/python/python3-aiohttp_3.14.3.bb
+++ b/meta-python/recipes-devtools/python/python3-aiohttp_3.14.3.bb
@@ -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"

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 47/64] python3-aiohttp: patch CVE-2026-111066
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (45 preceding siblings ...)
  2026-11-19 18:33 ` [blacksail][PATCH 46/64] python3-aiohttp: patch CVE-2026-111065 ankur.tyagi85
@ 2026-11-19 18:33 ` ankur.tyagi85
  2026-11-19 18:33 ` [blacksail][PATCH 48/64] python3-aiohttp: patch CVE-2026-111748 ankur.tyagi85
                   ` (16 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:33 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ankur Tyagi

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

Details:
https://nvd.nist.gov/vuln/detail/cve-2026-111066

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../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

diff --git a/meta-python/recipes-devtools/python/python3-aiohttp/CVE-2026-111066.patch b/meta-python/recipes-devtools/python/python3-aiohttp/CVE-2026-111066.patch
new file mode 100644
index 0000000000..5f11f31d54
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-aiohttp/CVE-2026-111066.patch
@@ -0,0 +1,382 @@
+From a45985a1dba1aaacad2b12724b450496a6ab0903 Mon Sep 17 00:00:00 2001
+From: Sam Bull <git@sambull.org>
+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 <ankur.tyagi85@gmail.com>
+---
+ 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
++
++
++@pytest.mark.parametrize(
++    "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
++
++
++@pytest.mark.parametrize("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
++
++
++@pytest.mark.skipif(not os.path.isdir("/dev/fd"), reason="needs /dev/fd to count fds")
++@pytest.mark.parametrize(
++    ("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)
++
++
++@pytest.mark.parametrize(
++    "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)
diff --git a/meta-python/recipes-devtools/python/python3-aiohttp_3.14.3.bb b/meta-python/recipes-devtools/python/python3-aiohttp_3.14.3.bb
index f3bb555408..2477b6a0e8 100644
--- a/meta-python/recipes-devtools/python/python3-aiohttp_3.14.3.bb
+++ b/meta-python/recipes-devtools/python/python3-aiohttp_3.14.3.bb
@@ -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"

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 48/64] python3-aiohttp: patch CVE-2026-111748
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (46 preceding siblings ...)
  2026-11-19 18:33 ` [blacksail][PATCH 47/64] python3-aiohttp: patch CVE-2026-111066 ankur.tyagi85
@ 2026-11-19 18:33 ` ankur.tyagi85
  2026-11-19 18:33 ` [blacksail][PATCH 49/64] python3-aiohttp: patch CVE-2026-111749 ankur.tyagi85
                   ` (15 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:33 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ankur Tyagi

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

Details:
https://nvd.nist.gov/vuln/detail/cve-2026-111748

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../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

diff --git a/meta-python/recipes-devtools/python/python3-aiohttp/CVE-2026-111748.patch b/meta-python/recipes-devtools/python/python3-aiohttp/CVE-2026-111748.patch
new file mode 100644
index 0000000000..ade4af77a2
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-aiohttp/CVE-2026-111748.patch
@@ -0,0 +1,170 @@
+From 75abab9fcf5382fb46947fe9f53142f6aa60abbc Mon Sep 17 00:00:00 2001
+From: Sam Bull <git@sambull.org>
+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 <ankur.tyagi85@gmail.com>
+---
+ 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
diff --git a/meta-python/recipes-devtools/python/python3-aiohttp_3.14.3.bb b/meta-python/recipes-devtools/python/python3-aiohttp_3.14.3.bb
index 2477b6a0e8..3654f95532 100644
--- a/meta-python/recipes-devtools/python/python3-aiohttp_3.14.3.bb
+++ b/meta-python/recipes-devtools/python/python3-aiohttp_3.14.3.bb
@@ -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"

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 49/64] python3-aiohttp: patch CVE-2026-111749
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (47 preceding siblings ...)
  2026-11-19 18:33 ` [blacksail][PATCH 48/64] python3-aiohttp: patch CVE-2026-111748 ankur.tyagi85
@ 2026-11-19 18:33 ` ankur.tyagi85
  2026-11-19 18:33 ` [blacksail][PATCH 50/64] python3-aiohttp: patch CVE-2026-111750 ankur.tyagi85
                   ` (14 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:33 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ankur Tyagi

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

Details:
https://nvd.nist.gov/vuln/detail/cve-2026-111749

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../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

diff --git a/meta-python/recipes-devtools/python/python3-aiohttp/CVE-2026-111749.patch b/meta-python/recipes-devtools/python/python3-aiohttp/CVE-2026-111749.patch
new file mode 100644
index 0000000000..d1a7c60fb5
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-aiohttp/CVE-2026-111749.patch
@@ -0,0 +1,262 @@
+From 66405536d4410c7456a52d2b6780e827f4e56d44 Mon Sep 17 00:00:00 2001
+From: Sam Bull <git@sambull.org>
+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 <ankur.tyagi85@gmail.com>
+---
+ 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"
diff --git a/meta-python/recipes-devtools/python/python3-aiohttp_3.14.3.bb b/meta-python/recipes-devtools/python/python3-aiohttp_3.14.3.bb
index 3654f95532..78845ffb56 100644
--- a/meta-python/recipes-devtools/python/python3-aiohttp_3.14.3.bb
+++ b/meta-python/recipes-devtools/python/python3-aiohttp_3.14.3.bb
@@ -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"

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 50/64] python3-aiohttp: patch CVE-2026-111750
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (48 preceding siblings ...)
  2026-11-19 18:33 ` [blacksail][PATCH 49/64] python3-aiohttp: patch CVE-2026-111749 ankur.tyagi85
@ 2026-11-19 18:33 ` ankur.tyagi85
  2026-11-19 18:33 ` [blacksail][PATCH 51/64] python3-filelock: upgrade 4.0.4 -> 4.0.12 ankur.tyagi85
                   ` (13 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:33 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ankur Tyagi

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

Details:
https://nvd.nist.gov/vuln/detail/cve-2026-111750

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../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

diff --git a/meta-python/recipes-devtools/python/python3-aiohttp/CVE-2026-111750.patch b/meta-python/recipes-devtools/python/python3-aiohttp/CVE-2026-111750.patch
new file mode 100644
index 0000000000..ff9088ad3c
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-aiohttp/CVE-2026-111750.patch
@@ -0,0 +1,82 @@
+From 18e23a890422e952b0fdbf09e02794adda56c120 Mon Sep 17 00:00:00 2001
+From: Sam Bull <git@sambull.org>
+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 <ankur.tyagi85@gmail.com>
+---
+ 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]
+ 
diff --git a/meta-python/recipes-devtools/python/python3-aiohttp_3.14.3.bb b/meta-python/recipes-devtools/python/python3-aiohttp_3.14.3.bb
index 78845ffb56..81ed8a849b 100644
--- a/meta-python/recipes-devtools/python/python3-aiohttp_3.14.3.bb
+++ b/meta-python/recipes-devtools/python/python3-aiohttp_3.14.3.bb
@@ -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"

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 51/64] python3-filelock: upgrade 4.0.4 -> 4.0.12
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (49 preceding siblings ...)
  2026-11-19 18:33 ` [blacksail][PATCH 50/64] python3-aiohttp: patch CVE-2026-111750 ankur.tyagi85
@ 2026-11-19 18:33 ` ankur.tyagi85
  2026-11-19 18:33 ` [blacksail][PATCH 52/64] mpv: fix a file descriptor leak in the render API ankur.tyagi85
                   ` (12 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:33 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ankur Tyagi

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

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

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../{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%)

diff --git a/meta-python/recipes-devtools/python/python3-filelock_4.0.4.bb b/meta-python/recipes-devtools/python/python3-filelock_4.0.12.bb
similarity index 93%
rename from meta-python/recipes-devtools/python/python3-filelock_4.0.4.bb
rename to meta-python/recipes-devtools/python/python3-filelock_4.0.12.bb
index 23cc4484c8..cfb84f1c7e 100644
--- a/meta-python/recipes-devtools/python/python3-filelock_4.0.4.bb
+++ b/meta-python/recipes-devtools/python/python3-filelock_4.0.12.bb
@@ -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"
 

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 52/64] mpv: fix a file descriptor leak in the render API
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (50 preceding siblings ...)
  2026-11-19 18:33 ` [blacksail][PATCH 51/64] python3-filelock: upgrade 4.0.4 -> 4.0.12 ankur.tyagi85
@ 2026-11-19 18:33 ` ankur.tyagi85
  2026-11-19 18:33 ` [blacksail][PATCH 53/64] mpv: make the drmprime overlay framebuffer the whole frame ankur.tyagi85
                   ` (11 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:33 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Markus Volk, Khem Raj, Ankur Tyagi

From: Markus Volk <f_l_k@t-online.de>

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)
Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
(cherry picked from commit 2826f6233d450a7cb788a9e04f77f2cd55d951f0)
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 ...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

diff --git a/meta-oe/recipes-multimedia/mplayer/mpv/0001-opengl-context-require-swap_buffers-param-for-FenceS.patch b/meta-oe/recipes-multimedia/mplayer/mpv/0001-opengl-context-require-swap_buffers-param-for-FenceS.patch
new file mode 100644
index 0000000000..70ba81b34c
--- /dev/null
+++ b/meta-oe/recipes-multimedia/mplayer/mpv/0001-opengl-context-require-swap_buffers-param-for-FenceS.patch
@@ -0,0 +1,35 @@
+From f74adc4243bd9e1a8ee96d187c939e6232510650 Mon Sep 17 00:00:00 2001
+From: Dudemanguy <random342@airmail.cc>
+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);
diff --git a/meta-oe/recipes-multimedia/mplayer/mpv_0.41.0.bb b/meta-oe/recipes-multimedia/mplayer/mpv_0.41.0.bb
index c8a0222ebf..7178182c29 100644
--- a/meta-oe/recipes-multimedia/mplayer/mpv_0.41.0.bb
+++ b/meta-oe/recipes-multimedia/mplayer/mpv_0.41.0.bb
@@ -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
 

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 53/64] mpv: make the drmprime overlay framebuffer the whole frame
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (51 preceding siblings ...)
  2026-11-19 18:33 ` [blacksail][PATCH 52/64] mpv: fix a file descriptor leak in the render API ankur.tyagi85
@ 2026-11-19 18:33 ` ankur.tyagi85
  2026-11-19 18:33 ` [blacksail][PATCH 54/64] mpv: patch CVE-2026-123095 ankur.tyagi85
                   ` (10 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:33 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Markus Volk, Khem Raj, Ankur Tyagi

From: Markus Volk <f_l_k@t-online.de>

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)
Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
(cherry picked from commit d364539dc6133e29c7eaf26b18445cd1897b33c2)
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 ...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

diff --git a/meta-oe/recipes-multimedia/mplayer/mpv/0002-hwdec_drmprime_overlay-make-the-framebuffer-the-whole-frame.patch b/meta-oe/recipes-multimedia/mplayer/mpv/0002-hwdec_drmprime_overlay-make-the-framebuffer-the-whole-frame.patch
new file mode 100644
index 0000000000..577d8cfdaa
--- /dev/null
+++ b/meta-oe/recipes-multimedia/mplayer/mpv/0002-hwdec_drmprime_overlay-make-the-framebuffer-the-whole-frame.patch
@@ -0,0 +1,24 @@
+From: Markus Volk <f_l_k@t-online.de>
+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;
+             }
diff --git a/meta-oe/recipes-multimedia/mplayer/mpv_0.41.0.bb b/meta-oe/recipes-multimedia/mplayer/mpv_0.41.0.bb
index 7178182c29..f37ae4ac50 100644
--- a/meta-oe/recipes-multimedia/mplayer/mpv_0.41.0.bb
+++ b/meta-oe/recipes-multimedia/mplayer/mpv_0.41.0.bb
@@ -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

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 54/64] mpv: patch CVE-2026-123095
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (52 preceding siblings ...)
  2026-11-19 18:33 ` [blacksail][PATCH 53/64] mpv: make the drmprime overlay framebuffer the whole frame ankur.tyagi85
@ 2026-11-19 18:33 ` ankur.tyagi85
  2026-11-19 18:33 ` [blacksail][PATCH 55/64] mongodb: fix build with python 3.12 ankur.tyagi85
                   ` (9 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:33 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ankur Tyagi

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

Details:
https://nvd.nist.gov/vuln/detail/cve-2026-123095

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../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

diff --git a/meta-oe/recipes-multimedia/mplayer/mpv/CVE-2026-123095.patch b/meta-oe/recipes-multimedia/mplayer/mpv/CVE-2026-123095.patch
new file mode 100644
index 0000000000..1efa0fdee6
--- /dev/null
+++ b/meta-oe/recipes-multimedia/mplayer/mpv/CVE-2026-123095.patch
@@ -0,0 +1,37 @@
+From 2c6599aa7d16efd29ae49865757eb449d9306742 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= <kasper93@gmail.com>
+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 <ankur.tyagi85@gmail.com>
+---
+ 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 ":"
diff --git a/meta-oe/recipes-multimedia/mplayer/mpv_0.41.0.bb b/meta-oe/recipes-multimedia/mplayer/mpv_0.41.0.bb
index f37ae4ac50..0c99e354e7 100644
--- a/meta-oe/recipes-multimedia/mplayer/mpv_0.41.0.bb
+++ b/meta-oe/recipes-multimedia/mplayer/mpv_0.41.0.bb
@@ -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

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 55/64] mongodb: fix build with python 3.12
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (53 preceding siblings ...)
  2026-11-19 18:33 ` [blacksail][PATCH 54/64] mpv: patch CVE-2026-123095 ankur.tyagi85
@ 2026-11-19 18:33 ` ankur.tyagi85
  2026-11-19 18:33 ` [blacksail][PATCH 56/64] mongodb: update to 4.4.29 ankur.tyagi85
                   ` (8 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:33 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Awais Belal, Armin Kuster, Ankur Tyagi

From: Awais Belal <awais.belal@gmail.com>

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.

Signed-off-by: Awais Belal <awais.belal@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
(cherry picked from commit edd1a1e284fdcb80cd48d411f235d47f23bc27ae)
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 ...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

diff --git a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-moduleconfig.py-python-3.12-compatibility.patch b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-moduleconfig.py-python-3.12-compatibility.patch
new file mode 100644
index 0000000000..51926b9d2e
--- /dev/null
+++ b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-moduleconfig.py-python-3.12-compatibility.patch
@@ -0,0 +1,57 @@
+From 37580777bc5294d606584f3731d9f5f5425bb587 Mon Sep 17 00:00:00 2001
+From: Awais B <awais.b@rufilla.com>
+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 <awais.b@rufilla.com>
+---
+ 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
+
diff --git a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb
index 36bea146b4..8f28bc76c6 100644
--- a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb
+++ b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb
@@ -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"

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 56/64] mongodb: update to 4.4.29
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (54 preceding siblings ...)
  2026-11-19 18:33 ` [blacksail][PATCH 55/64] mongodb: fix build with python 3.12 ankur.tyagi85
@ 2026-11-19 18:33 ` ankur.tyagi85
  2026-11-19 18:33 ` [blacksail][PATCH 57/64] mongodb: upgrade 4.4.29 -> 4.4.30 ankur.tyagi85
                   ` (7 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:33 UTC (permalink / raw)
  To: openembedded-devel
  Cc: Awais Belal, Armin Kuster, Mike Looijmans, Khem Raj, Ankur Tyagi

From: Awais Belal <awais.belal@gmail.com>

Move on to 4.4.29 and drop a patch that is not applicable anymore.

Signed-off-by: Awais Belal <awais.belal@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
(cherry picked from commit 245b2dceb256932c62e762839adb57c0dec32edf)
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 ...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

diff --git a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-free_mon-Include-missing-cstdint.patch b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-free_mon-Include-missing-cstdint.patch
deleted file mode 100644
index 8cee14889f..0000000000
--- a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-free_mon-Include-missing-cstdint.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-From 5d8218b8a1b5bc71e2a0cf543a000e194daba599 Mon Sep 17 00:00:00 2001
-From: Khem Raj <raj.khem@gmail.com>
-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 <raj.khem@gmail.com>
-
-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>
- 
diff --git a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb
index 8f28bc76c6..ae9123c7c4 100644
--- a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb
+++ b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb
@@ -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 \

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 57/64] mongodb: upgrade 4.4.29 -> 4.4.30
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (55 preceding siblings ...)
  2026-11-19 18:33 ` [blacksail][PATCH 56/64] mongodb: update to 4.4.29 ankur.tyagi85
@ 2026-11-19 18:33 ` ankur.tyagi85
  2026-11-19 18:33 ` [blacksail][PATCH 58/64] mongodb: ignore CVE-2025-14911 ankur.tyagi85
                   ` (6 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:33 UTC (permalink / raw)
  To: openembedded-devel
  Cc: Gyorgy Sarvari, Anuj Mittal, Mike Looijmans, Khem Raj,
	Ankur Tyagi

From: Gyorgy Sarvari <skandigraun@gmail.com>

This is a security release to fix CVE-2025-14847:
https://nvd.nist.gov/vuln/detail/CVE-2025-14847

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
(cherry picked from commit 08c49b447b5a615aaaeb89802f503ec6d1722b74)
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../meta-python/recipes-dbs/mongodb/mongodb_git.bb          | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb
index ae9123c7c4..ccae6e9dcd 100644
--- a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb
+++ b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb
@@ -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 \

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 58/64] mongodb: ignore CVE-2025-14911
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (56 preceding siblings ...)
  2026-11-19 18:33 ` [blacksail][PATCH 57/64] mongodb: upgrade 4.4.29 -> 4.4.30 ankur.tyagi85
@ 2026-11-19 18:33 ` ankur.tyagi85
  2026-11-19 18:33 ` [blacksail][PATCH 59/64] mongodb: Fix build with current python, SCons, clang and OpenSSL ankur.tyagi85
                   ` (5 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:33 UTC (permalink / raw)
  To: openembedded-devel
  Cc: Gyorgy Sarvari, Anuj Mittal, Mike Looijmans, Khem Raj,
	Ankur Tyagi

From: Gyorgy Sarvari <skandigraun@gmail.com>

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.

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
(cherry picked from commit 272e975c34e5bd8863e72477c461755839932d88)
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../meta-python/recipes-dbs/mongodb/mongodb_git.bb               | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb
index ccae6e9dcd..e7a4d1e34b 100644
--- a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb
+++ b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb
@@ -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'
 

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 59/64] mongodb: Fix build with current python, SCons, clang and OpenSSL
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (57 preceding siblings ...)
  2026-11-19 18:33 ` [blacksail][PATCH 58/64] mongodb: ignore CVE-2025-14911 ankur.tyagi85
@ 2026-11-19 18:33 ` ankur.tyagi85
  2026-11-19 18:33 ` [blacksail][PATCH 60/64] mongodb: Backport fix for SERVER-49099 ankur.tyagi85
                   ` (4 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:33 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Khem Raj, Ankur Tyagi

From: Khem Raj <khem.raj@oss.qualcomm.com>

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
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
(cherry picked from commit 2903830b48e5a304ad62aa65e5c2b44c2fe67f67)
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 ...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

diff --git a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-Use-packaging-instead-of-pkg_resources-for-version-p.patch b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-Use-packaging-instead-of-pkg_resources-for-version-p.patch
new file mode 100644
index 0000000000..d45b9f8021
--- /dev/null
+++ b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-Use-packaging-instead-of-pkg_resources-for-version-p.patch
@@ -0,0 +1,51 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Khem Raj <khem.raj@oss.qualcomm.com>
+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 <khem.raj@oss.qualcomm.com>
+---
+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
+ 
diff --git a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0002-SConstruct-Pass-call-to-CheckLibWithHeader-as-a-keyw.patch b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0002-SConstruct-Pass-call-to-CheckLibWithHeader-as-a-keyw.patch
new file mode 100644
index 0000000000..d4b5586a97
--- /dev/null
+++ b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0002-SConstruct-Pass-call-to-CheckLibWithHeader-as-a-keyw.patch
@@ -0,0 +1,56 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Khem Raj <khem.raj@oss.qualcomm.com>
+Date: Mon, 9 Nov 2026 08:10:00 -0800
+Subject: [PATCH] SConstruct: Pass call to CheckLibWithHeader as a keyword
+
+Newer SCons added an extra_libs parameter to CheckLibWithHeader() ahead
+of call, so the call snippet passed positionally is treated as a list of
+extra libraries and each character becomes a -l option:
+
+  ... -lcrypto -lS -lS -lL -le -la -ly ... -l( -l0 -l) -l;
+  Couldn't find OpenSSL crypto.h header and library
+
+Pass it as a keyword argument, which works with old and new SCons.
+
+Upstream-Status: Inappropriate [v4.4 branch is EOL]
+Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
+---
+diff --git a/SConstruct b/SConstruct
+--- a/SConstruct
++++ b/SConstruct
+@@ -3499,7 +3499,7 @@
+                 cryptoLibName,
+                 ["openssl/crypto.h"],
+                 "C",
+-                "SSLeay_version(0);",
++                call="SSLeay_version(0);",
+                 autoadd=True):
+             maybeIssueDarwinSSLAdvice(conf.env)
+             conf.env.ConfError("Couldn't find OpenSSL crypto.h header and library")
+@@ -3656,7 +3656,7 @@
+         if conf.CheckLibWithHeader(
+             "curl",
+             ["curl/curl.h"], "C",
+-            "curl_global_init(0);",
++            call="curl_global_init(0);",
+             autoadd=False):
+             return True
+ 
+@@ -3782,7 +3782,7 @@
+             "sasl2",
+             ["stddef.h","sasl/sasl.h"],
+             "C",
+-            "sasl_version_info(0, 0, 0, 0, 0, 0);",
++            call="sasl_version_info(0, 0, 0, 0, 0, 0);",
+             autoadd=False ):
+         myenv.ConfError("Couldn't find SASL header/libraries")
+ 
+@@ -3947,7 +3947,7 @@
+                 ["mongoc-1.0"],
+                 ["mongoc/mongoc.h"],
+                 "C",
+-                "mongoc_get_major_version();",
++                call="mongoc_get_major_version();",
+                 autoadd=False ):
+             conf.env['MONGO_HAVE_LIBMONGOC'] = "library"
+         if not conf.env['MONGO_HAVE_LIBMONGOC'] and env.TargetOSIs('darwin') and conf.CheckMongoCFramework():
diff --git a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0003-boost-Fix-build-with-clang-23.patch b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0003-boost-Fix-build-with-clang-23.patch
new file mode 100644
index 0000000000..3a188033f6
--- /dev/null
+++ b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0003-boost-Fix-build-with-clang-23.patch
@@ -0,0 +1,176 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Khem Raj <khem.raj@oss.qualcomm.com>
+Date: Mon, 9 Nov 2026 09:00:00 -0800
+Subject: [PATCH] boost: Fix build with clang 23
+
+Backport fixes from newer Boost to the bundled Boost 1.70:
+
+- numeric_conversion and log: use boost::integral_constant instead of
+  mpl::integral_c for enum constants. mpl::integral_c computes the
+  next/prior values, which are outside the range of the enum, and clang
+  now rejects that:
+
+    error: in-class initializer for static data member is not a constant expression
+    note: integer value -1 is outside the valid range of values [0, 3] for the enumeration type 'lock_access_mode'
+
+- thread: fix a typo in run_it's move assignment operator, which clang
+  now diagnoses in uninstantiated templates:
+
+    error: no member named 'that' in 'boost::detail::run_it<FutureExecutorContinuationSharedState>'
+
+Upstream-Status: Backport [https://github.com/boostorg/numeric_conversion/commit/50a1eae942effb0a9b90724323ef8f2a67e7984a https://github.com/boostorg/log/commit/77f1e20bd69c2e7a9e25e6a9818ae6105f7d070c https://github.com/boostorg/thread/commit/49ccf9c30a0ca556873dbf64b12b0d741d1b3e66]
+Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
+---
+diff --git a/src/third_party/boost-1.70.0/boost/log/utility/strictest_lock.hpp b/src/third_party/boost-1.70.0/boost/log/utility/strictest_lock.hpp
+index 5dd48b4f..05c7a037 100644
+--- a/src/third_party/boost-1.70.0/boost/log/utility/strictest_lock.hpp
++++ b/src/third_party/boost-1.70.0/boost/log/utility/strictest_lock.hpp
+@@ -17,6 +17,7 @@
+ #define BOOST_LOG_UTILITY_STRICTEST_LOCK_HPP_INCLUDED_
+ 
+ #include <boost/mpl/integral_c.hpp>
++#include <boost/type_traits/integral_constant.hpp>
+ #include <boost/log/detail/config.hpp>
+ #include <boost/log/detail/locks.hpp>
+ #if defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
+@@ -67,44 +68,44 @@ template< typename LockT >
+ struct thread_access_mode_of;
+ 
+ template< typename MutexT >
+-struct thread_access_mode_of< no_lock< MutexT > > : mpl::integral_c< lock_access_mode, unlocked_access >
++struct thread_access_mode_of< no_lock< MutexT > > : boost::integral_constant< lock_access_mode, unlocked_access >
+ {
+ };
+ 
+ #if !defined(BOOST_LOG_NO_THREADS)
+ 
+ template< typename MutexT >
+-struct thread_access_mode_of< lock_guard< MutexT > > : mpl::integral_c< lock_access_mode, exclusive_access >
++struct thread_access_mode_of< lock_guard< MutexT > > : boost::integral_constant< lock_access_mode, exclusive_access >
+ {
+ };
+ 
+ template< typename MutexT >
+-struct thread_access_mode_of< shared_lock_guard< MutexT > > : mpl::integral_c< lock_access_mode, shared_access >
++struct thread_access_mode_of< shared_lock_guard< MutexT > > : boost::integral_constant< lock_access_mode, shared_access >
+ {
+ };
+ 
+ template< typename MutexT >
+-struct thread_access_mode_of< unique_lock< MutexT > > : mpl::integral_c< lock_access_mode, exclusive_access >
++struct thread_access_mode_of< unique_lock< MutexT > > : boost::integral_constant< lock_access_mode, exclusive_access >
+ {
+ };
+ 
+ template< typename MutexT >
+-struct thread_access_mode_of< shared_lock< MutexT > > : mpl::integral_c< lock_access_mode, shared_access >
++struct thread_access_mode_of< shared_lock< MutexT > > : boost::integral_constant< lock_access_mode, shared_access >
+ {
+ };
+ 
+ template< typename MutexT >
+-struct thread_access_mode_of< upgrade_lock< MutexT > > : mpl::integral_c< lock_access_mode, shared_access >
++struct thread_access_mode_of< upgrade_lock< MutexT > > : boost::integral_constant< lock_access_mode, shared_access >
+ {
+ };
+ 
+ template< typename MutexT >
+-struct thread_access_mode_of< boost::log::aux::exclusive_lock_guard< MutexT > > : mpl::integral_c< lock_access_mode, exclusive_access >
++struct thread_access_mode_of< boost::log::aux::exclusive_lock_guard< MutexT > > : boost::integral_constant< lock_access_mode, exclusive_access >
+ {
+ };
+ 
+ template< typename MutexT >
+-struct thread_access_mode_of< boost::log::aux::shared_lock_guard< MutexT > > : mpl::integral_c< lock_access_mode, shared_access >
++struct thread_access_mode_of< boost::log::aux::shared_lock_guard< MutexT > > : boost::integral_constant< lock_access_mode, shared_access >
+ {
+ };
+ 
+diff --git a/src/third_party/boost-1.70.0/boost/numeric/conversion/detail/int_float_mixture.hpp b/src/third_party/boost-1.70.0/boost/numeric/conversion/detail/int_float_mixture.hpp
+index 464e5275..7690d07a 100644
+--- a/src/third_party/boost-1.70.0/boost/numeric/conversion/detail/int_float_mixture.hpp
++++ b/src/third_party/boost-1.70.0/boost/numeric/conversion/detail/int_float_mixture.hpp
+@@ -16,15 +16,15 @@
+ #include "boost/numeric/conversion/int_float_mixture_enum.hpp"
+ #include "boost/numeric/conversion/detail/meta.hpp"
+ 
+-#include "boost/mpl/integral_c.hpp"
++#include "boost/type_traits/integral_constant.hpp"
+ 
+ namespace boost { namespace numeric { namespace convdetail
+ {
+   // Integral Constants for 'IntFloatMixture'
+-  typedef mpl::integral_c<int_float_mixture_enum, integral_to_integral> int2int_c ;
+-  typedef mpl::integral_c<int_float_mixture_enum, integral_to_float>    int2float_c ;
+-  typedef mpl::integral_c<int_float_mixture_enum, float_to_integral>    float2int_c ;
+-  typedef mpl::integral_c<int_float_mixture_enum, float_to_float>       float2float_c ;
++  typedef boost::integral_constant<int_float_mixture_enum, integral_to_integral> int2int_c ;
++  typedef boost::integral_constant<int_float_mixture_enum, integral_to_float>    int2float_c ;
++  typedef boost::integral_constant<int_float_mixture_enum, float_to_integral>    float2int_c ;
++  typedef boost::integral_constant<int_float_mixture_enum, float_to_float>       float2float_c ;
+ 
+   // Metafunction:
+   //
+diff --git a/src/third_party/boost-1.70.0/boost/numeric/conversion/detail/sign_mixture.hpp b/src/third_party/boost-1.70.0/boost/numeric/conversion/detail/sign_mixture.hpp
+index c7f9e42a..fde15840 100644
+--- a/src/third_party/boost-1.70.0/boost/numeric/conversion/detail/sign_mixture.hpp
++++ b/src/third_party/boost-1.70.0/boost/numeric/conversion/detail/sign_mixture.hpp
+@@ -16,15 +16,15 @@
+ #include "boost/numeric/conversion/sign_mixture_enum.hpp"
+ #include "boost/numeric/conversion/detail/meta.hpp"
+ 
+-#include "boost/mpl/integral_c.hpp"
++#include "boost/type_traits/integral_constant.hpp"
+ 
+ namespace boost { namespace numeric { namespace convdetail
+ {
+   // Integral Constants for 'SignMixture'
+-  typedef mpl::integral_c<sign_mixture_enum, unsigned_to_unsigned> unsig2unsig_c ;
+-  typedef mpl::integral_c<sign_mixture_enum, signed_to_signed>     sig2sig_c ;
+-  typedef mpl::integral_c<sign_mixture_enum, signed_to_unsigned>   sig2unsig_c ;
+-  typedef mpl::integral_c<sign_mixture_enum, unsigned_to_signed>   unsig2sig_c ;
++  typedef boost::integral_constant<sign_mixture_enum, unsigned_to_unsigned> unsig2unsig_c ;
++  typedef boost::integral_constant<sign_mixture_enum, signed_to_signed>     sig2sig_c ;
++  typedef boost::integral_constant<sign_mixture_enum, signed_to_unsigned>   sig2unsig_c ;
++  typedef boost::integral_constant<sign_mixture_enum, unsigned_to_signed>   unsig2sig_c ;
+ 
+   // Metafunction:
+   //
+diff --git a/src/third_party/boost-1.70.0/boost/numeric/conversion/detail/udt_builtin_mixture.hpp b/src/third_party/boost-1.70.0/boost/numeric/conversion/detail/udt_builtin_mixture.hpp
+index 36dbc491..a39d29fd 100644
+--- a/src/third_party/boost-1.70.0/boost/numeric/conversion/detail/udt_builtin_mixture.hpp
++++ b/src/third_party/boost-1.70.0/boost/numeric/conversion/detail/udt_builtin_mixture.hpp
+@@ -15,15 +15,15 @@
+ #include "boost/numeric/conversion/udt_builtin_mixture_enum.hpp"
+ #include "boost/numeric/conversion/detail/meta.hpp"
+ 
+-#include "boost/mpl/integral_c.hpp"
++#include "boost/type_traits/integral_constant.hpp"
+ 
+ namespace boost { namespace numeric { namespace convdetail
+ {
+   // Integral Constants for 'UdtMixture'
+-  typedef mpl::integral_c<udt_builtin_mixture_enum, builtin_to_builtin> builtin2builtin_c ;
+-  typedef mpl::integral_c<udt_builtin_mixture_enum, builtin_to_udt>     builtin2udt_c ;
+-  typedef mpl::integral_c<udt_builtin_mixture_enum, udt_to_builtin>     udt2builtin_c ;
+-  typedef mpl::integral_c<udt_builtin_mixture_enum, udt_to_udt>         udt2udt_c ;
++  typedef boost::integral_constant<udt_builtin_mixture_enum, builtin_to_builtin> builtin2builtin_c ;
++  typedef boost::integral_constant<udt_builtin_mixture_enum, builtin_to_udt>     builtin2udt_c ;
++  typedef boost::integral_constant<udt_builtin_mixture_enum, udt_to_builtin>     udt2builtin_c ;
++  typedef boost::integral_constant<udt_builtin_mixture_enum, udt_to_udt>         udt2udt_c ;
+ 
+   // Metafunction:
+   //
+diff --git a/src/third_party/boost-1.70.0/boost/thread/future.hpp b/src/third_party/boost-1.70.0/boost/thread/future.hpp
+index 3d1b29d4..2862fc0a 100644
+--- a/src/third_party/boost-1.70.0/boost/thread/future.hpp
++++ b/src/third_party/boost-1.70.0/boost/thread/future.hpp
+@@ -4669,7 +4669,7 @@ namespace detail
+       }
+       run_it& operator=(BOOST_THREAD_RV_REF(run_it) x) BOOST_NOEXCEPT {
+         if (this != &x) {
+-          that_=x.that;
++          that_=x.that_;
+           x.that_.reset();
+         }
+         return *this;
diff --git a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0004-ssl-Fix-build-with-OpenSSL-4.patch b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0004-ssl-Fix-build-with-OpenSSL-4.patch
new file mode 100644
index 0000000000..fdf6852119
--- /dev/null
+++ b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0004-ssl-Fix-build-with-OpenSSL-4.patch
@@ -0,0 +1,117 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Khem Raj <khem.raj@oss.qualcomm.com>
+Date: Mon, 9 Nov 2026 09:00:00 -0800
+Subject: [PATCH] ssl: Fix build with OpenSSL 4
+
+OpenSSL 4 makes ASN1_STRING opaque, removes ASN1_STRING_data() and
+ERR_remove_state(), and returns const pointers from
+X509_EXTENSION_get_object() and X509_EXTENSION_get_data().
+
+Use the ASN1_STRING accessors, which are available since OpenSSL 1.1,
+make the extension pointers const, and only call ERR_remove_state() with
+OpenSSL older than 1.1, where it is not a no-op.
+
+Upstream-Status: Inappropriate [v4.4 branch is EOL]
+Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
+---
+diff --git a/src/mongo/util/net/openssl_init.cpp b/src/mongo/util/net/openssl_init.cpp
+index c4980bb0..93b6e4fc 100644
+--- a/src/mongo/util/net/openssl_init.cpp
++++ b/src/mongo/util/net/openssl_init.cpp
+@@ -77,7 +77,9 @@ public:
+ 
+         // The `guard` callback will cause an invocation of `getID`, so it must be destroyed first.
+         static thread_local ManagedId managedId;
++#if OPENSSL_VERSION_NUMBER < 0x10100000L
+         static thread_local auto guard = makeGuard([] { ERR_remove_state(0); });
++#endif
+ 
+         return managedId.id;
+     }
+diff --git a/src/mongo/util/net/ssl_manager_openssl.cpp b/src/mongo/util/net/ssl_manager_openssl.cpp
+index 60cde955..fa55bb7d 100644
+--- a/src/mongo/util/net/ssl_manager_openssl.cpp
++++ b/src/mongo/util/net/ssl_manager_openssl.cpp
+@@ -1433,7 +1433,10 @@ SSLX509Name getCertificateSubjectX509Name(X509* cert) {
+ 
+         const auto* str = X509_NAME_ENTRY_get_data(entry);
+         rdn.emplace_back(
+-            buffer, str->type, std::string(reinterpret_cast<const char*>(str->data), str->length));
++            buffer,
++            ASN1_STRING_type(str),
++            std::string(reinterpret_cast<const char*>(ASN1_STRING_get0_data(str)),
++                        ASN1_STRING_length(str)));
+     }
+     if (!rdn.empty()) {
+         entries.push_back(std::move(rdn));
+@@ -2904,7 +2907,7 @@ Future<SSLPeerInfo> SSLManagerOpenSSL::parseAndValidatePeerCertificate(
+             const GENERAL_NAME* currentName = sk_GENERAL_NAME_value(sanNames, i);
+             if (currentName && currentName->type == GEN_DNS) {
+                 std::string dnsName(
+-                    reinterpret_cast<char*>(ASN1_STRING_data(currentName->d.dNSName)));
++                    reinterpret_cast<const char*>(ASN1_STRING_get0_data(currentName->d.dNSName)));
+                 auto swCIDRDNSName = CIDR::parse(dnsName);
+                 if (swCIDRDNSName.isOK()) {
+                     LOGV2_WARNING(23237,
+@@ -2925,14 +2928,16 @@ Future<SSLPeerInfo> SSLManagerOpenSSL::parseAndValidatePeerCertificate(
+                 auto ipAddrStruct = currentName->d.iPAddress;
+                 struct sockaddr_storage ss;
+                 memset(&ss, 0, sizeof(ss));
+-                if (ipAddrStruct->length == 4) {
++                const int ipAddrLength = ASN1_STRING_length(ipAddrStruct);
++                const unsigned char* ipAddrData = ASN1_STRING_get0_data(ipAddrStruct);
++                if (ipAddrLength == 4) {
+                     struct sockaddr_in* sa = reinterpret_cast<struct sockaddr_in*>(&ss);
+                     sa->sin_family = AF_INET;
+-                    memcpy(&(sa->sin_addr), ipAddrStruct->data, ipAddrStruct->length);
+-                } else if (ipAddrStruct->length == 16) {
++                    memcpy(&(sa->sin_addr), ipAddrData, ipAddrLength);
++                } else if (ipAddrLength == 16) {
+                     struct sockaddr_in6* sa = reinterpret_cast<struct sockaddr_in6*>(&ss);
+                     sa->sin6_family = AF_INET6;
+-                    memcpy(&(sa->sin6_addr), ipAddrStruct->data, ipAddrStruct->length);
++                    memcpy(&(sa->sin6_addr), ipAddrData, ipAddrLength);
+                 }
+                 auto ipAddress =
+                     SockAddr(reinterpret_cast<struct sockaddr*>(&ss), sizeof(ss)).getAddr();
+@@ -3026,15 +3031,16 @@ StatusWith<stdx::unordered_set<RoleName>> SSLManagerOpenSSL::_parsePeerRoles(X50
+     stdx::unordered_set<RoleName> roles;
+     for (int i = 0; i < extCount; i++) {
+         X509_EXTENSION* ex = sk_X509_EXTENSION_value(exts, i);
+-        ASN1_OBJECT* obj = X509_EXTENSION_get_object(ex);
++        const ASN1_OBJECT* obj = X509_EXTENSION_get_object(ex);
+ 
+         if (!OBJ_cmp(obj, rolesObj)) {
+             // We've found an extension which has our roles OID
+-            ASN1_OCTET_STRING* data = X509_EXTENSION_get_data(ex);
++            const ASN1_OCTET_STRING* data = X509_EXTENSION_get_data(ex);
+ 
+             return parsePeerRoles(
+-                ConstDataRange(reinterpret_cast<char*>(data->data),
+-                               reinterpret_cast<char*>(data->data) + data->length));
++                ConstDataRange(reinterpret_cast<const char*>(ASN1_STRING_get0_data(data)),
++                               reinterpret_cast<const char*>(ASN1_STRING_get0_data(data)) +
++                                   ASN1_STRING_length(data)));
+         }
+     }
+ 
+@@ -3054,14 +3060,15 @@ StatusWith<boost::optional<std::vector<DERInteger>>> SSLManagerOpenSSL::_parseTL
+     ASN1_OBJECT* featuresObj = OBJ_nid2obj(NID_tlsfeature);
+     for (int i = 0; i < extCount; i++) {
+         X509_EXTENSION* ex = sk_X509_EXTENSION_value(exts, i);
+-        ASN1_OBJECT* obj = X509_EXTENSION_get_object(ex);
++        const ASN1_OBJECT* obj = X509_EXTENSION_get_object(ex);
+ 
+         if (!OBJ_cmp(obj, featuresObj)) {
+             // We've found an extension which has the features OID
+-            ASN1_OCTET_STRING* data = X509_EXTENSION_get_data(ex);
++            const ASN1_OCTET_STRING* data = X509_EXTENSION_get_data(ex);
+             return parseTLSFeature(
+-                ConstDataRange(reinterpret_cast<char*>(data->data),
+-                               reinterpret_cast<char*>(data->data) + data->length));
++                ConstDataRange(reinterpret_cast<const char*>(ASN1_STRING_get0_data(data)),
++                               reinterpret_cast<const char*>(ASN1_STRING_get0_data(data)) +
++                                   ASN1_STRING_length(data)));
+         }
+     }
+     return boost::none;
diff --git a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb
index e7a4d1e34b..e1016681e4 100644
--- a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb
+++ b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb
@@ -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 \

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 60/64] mongodb: Backport fix for SERVER-49099
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (58 preceding siblings ...)
  2026-11-19 18:33 ` [blacksail][PATCH 59/64] mongodb: Fix build with current python, SCons, clang and OpenSSL ankur.tyagi85
@ 2026-11-19 18:33 ` ankur.tyagi85
  2026-11-19 18:33 ` [blacksail][PATCH 61/64] mongodb: Keep build paths out of buildInfo ankur.tyagi85
                   ` (3 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:33 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Khem Raj, Khem Raj, Ankur Tyagi

From: Khem Raj <khem.raj@oss.qualcomm.com>

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.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
AI-Generated: Uses Claude Code
(cherry picked from commit cc2835067bc19f55632483bba26b67aa6174197d)
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 ...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

diff --git a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0005-SERVER-49099-Remove-the-Node-swap-function-in-Biggie.patch b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0005-SERVER-49099-Remove-the-Node-swap-function-in-Biggie.patch
new file mode 100644
index 0000000000..b2d1d92f30
--- /dev/null
+++ b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0005-SERVER-49099-Remove-the-Node-swap-function-in-Biggie.patch
@@ -0,0 +1,58 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Yuhong Zhang <danielzhangyh@gmail.com>
+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 <khem.raj@oss.qualcomm.com>
+---
+ 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;
+         }
diff --git a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb
index e1016681e4..22169ddd64 100644
--- a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb
+++ b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb
@@ -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 \

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 61/64] mongodb: Keep build paths out of buildInfo
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (59 preceding siblings ...)
  2026-11-19 18:33 ` [blacksail][PATCH 60/64] mongodb: Backport fix for SERVER-49099 ankur.tyagi85
@ 2026-11-19 18:33 ` ankur.tyagi85
  2026-11-19 18:33 ` [blacksail][PATCH 62/64] frr: Fix build with bison rejecting paths in output directives ankur.tyagi85
                   ` (2 subsequent siblings)
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:33 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Khem Raj, Khem Raj, Ankur Tyagi

From: Khem Raj <khem.raj@oss.qualcomm.com>

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.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 17fb07cf799cc98205c63c2d2cc956fc8d12b533)
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 .../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

diff --git a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/oe-buildinfo.vars b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/oe-buildinfo.vars
new file mode 100644
index 0000000000..950dc4baa2
--- /dev/null
+++ b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/oe-buildinfo.vars
@@ -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
diff --git a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb
index 22169ddd64..6c4fdf91a9 100644
--- a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb
+++ b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb
@@ -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 \

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 62/64] frr: Fix build with bison rejecting paths in output directives
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (60 preceding siblings ...)
  2026-11-19 18:33 ` [blacksail][PATCH 61/64] mongodb: Keep build paths out of buildInfo ankur.tyagi85
@ 2026-11-19 18:33 ` ankur.tyagi85
  2026-11-19 18:33 ` [blacksail][PATCH 63/64] tuna: Fix build with PEP 517 frontends ankur.tyagi85
  2026-11-19 18:33 ` [blacksail][PATCH 64/64] libplacebo: update SRC_URI branch ankur.tyagi85
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:33 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Khem Raj, Ankur Tyagi

From: Khem Raj <khem.raj@oss.qualcomm.com>

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
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
(cherry picked from commit cf06742a7c064d293c715e143fdabf91bf072893)
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 ...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

diff --git a/meta-networking/recipes-protocols/frr/frr/0001-lib-Don-t-use-paths-in-bison-output-defines-directiv.patch b/meta-networking/recipes-protocols/frr/frr/0001-lib-Don-t-use-paths-in-bison-output-defines-directiv.patch
new file mode 100644
index 0000000000..ac732d9ebc
--- /dev/null
+++ b/meta-networking/recipes-protocols/frr/frr/0001-lib-Don-t-use-paths-in-bison-output-defines-directiv.patch
@@ -0,0 +1,54 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Donatas Abraitis <donatas@opensourcerouting.org>
+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 <donatas@opensourcerouting.org>
+
+Upstream-Status: Backport [https://github.com/FRRouting/frr/commit/b7ad39d799d98c982713b29c1d0ba6d49691308b]
+Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
+---
+ 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
diff --git a/meta-networking/recipes-protocols/frr/frr_10.6.2.bb b/meta-networking/recipes-protocols/frr/frr_10.6.2.bb
index b72af9f244..f4a98e2471 100644
--- a/meta-networking/recipes-protocols/frr/frr_10.6.2.bb
+++ b/meta-networking/recipes-protocols/frr/frr_10.6.2.bb
@@ -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"
 

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 63/64] tuna: Fix build with PEP 517 frontends
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (61 preceding siblings ...)
  2026-11-19 18:33 ` [blacksail][PATCH 62/64] frr: Fix build with bison rejecting paths in output directives ankur.tyagi85
@ 2026-11-19 18:33 ` ankur.tyagi85
  2026-11-19 18:33 ` [blacksail][PATCH 64/64] libplacebo: update SRC_URI branch ankur.tyagi85
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:33 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Khem Raj, Ankur Tyagi

From: Khem Raj <khem.raj@oss.qualcomm.com>

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
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
(cherry picked from commit df1403411fb4a301af728cf225a49860c5ea3d7c)
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 ...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

diff --git a/meta-python/recipes-extended/tuna/tuna/0001-tuna-Do-not-import-tuna-from-setup.py.patch b/meta-python/recipes-extended/tuna/tuna/0001-tuna-Do-not-import-tuna-from-setup.py.patch
new file mode 100644
index 0000000000..94b8fd917c
--- /dev/null
+++ b/meta-python/recipes-extended/tuna/tuna/0001-tuna-Do-not-import-tuna-from-setup.py.patch
@@ -0,0 +1,48 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+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/20261028061243.4061773-1-raj.khem@gmail.com/]
+Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
+---
+ 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 = "acme@redhat.com, jkacur@redhat.com",
diff --git a/meta-python/recipes-extended/tuna/tuna_0.21.bb b/meta-python/recipes-extended/tuna/tuna_0.21.bb
index de80d1aa7a..0e96eabbdc 100644
--- a/meta-python/recipes-extended/tuna/tuna_0.21.bb
+++ b/meta-python/recipes-extended/tuna/tuna_0.21.bb
@@ -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"
 

^ permalink raw reply related	[flat|nested] 65+ messages in thread

* [blacksail][PATCH 64/64] libplacebo: update SRC_URI branch
  2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
                   ` (62 preceding siblings ...)
  2026-11-19 18:33 ` [blacksail][PATCH 63/64] tuna: Fix build with PEP 517 frontends ankur.tyagi85
@ 2026-11-19 18:33 ` ankur.tyagi85
  63 siblings, 0 replies; 65+ messages in thread
From: ankur.tyagi85 @ 2026-11-19 18:33 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Ankur Tyagi

From: Ankur Tyagi <ankur.tyagi85@gmail.com>

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
 meta-oe/recipes-multimedia/mplayer/libplacebo_7.360.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-oe/recipes-multimedia/mplayer/libplacebo_7.360.1.bb b/meta-oe/recipes-multimedia/mplayer/libplacebo_7.360.1.bb
index 94767730a8..6c6c640da7 100644
--- a/meta-oe/recipes-multimedia/mplayer/libplacebo_7.360.1.bb
+++ b/meta-oe/recipes-multimedia/mplayer/libplacebo_7.360.1.bb
@@ -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

^ permalink raw reply related	[flat|nested] 65+ messages in thread

end of thread, other threads:[~2026-11-19 18:38 UTC | newest]

Thread overview: 65+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-19 18:32 [blacksail][PATCH 00/64] Blacksail pull request ankur.tyagi85
2026-11-19 18:32 ` [blacksail][PATCH 01/64] nng: correct upstream branch name ankur.tyagi85
2026-11-19 18:32 ` [blacksail][PATCH 02/64] zchunk: upgrade 1.5.4 -> 1.5.5 ankur.tyagi85
2026-11-19 18:32 ` [blacksail][PATCH 03/64] tcpreplay: upgrade 4.6.1 -> 4.6.2 ankur.tyagi85
2026-11-19 18:32 ` [blacksail][PATCH 04/64] proftpd: upgrade 1.3.9d -> 1.3.9e ankur.tyagi85
2026-11-19 18:32 ` [blacksail][PATCH 05/64] weechat: Upgrade 4.10.0 -> 4.10.1 ankur.tyagi85
2026-11-19 18:32 ` [blacksail][PATCH 06/64] json-schema-validator: upgrade 2.4.0 -> 2.4.1 ankur.tyagi85
2026-11-19 18:32 ` [blacksail][PATCH 07/64] valkey: Upgrade 9.1.2 -> 9.1.3 ankur.tyagi85
2026-11-19 18:32 ` [blacksail][PATCH 08/64] haveged: upgrade 1.9.26 -> 1.9.27 ankur.tyagi85
2026-11-19 18:32 ` [blacksail][PATCH 09/64] libraw: upgrade 0.22.2 -> 0.22.3 ankur.tyagi85
2026-11-19 18:32 ` [blacksail][PATCH 10/64] python3-httplib2: Upgrade 0.32.0 -> 0.32.1 ankur.tyagi85
2026-11-19 18:32 ` [blacksail][PATCH 11/64] python3-tzdata: Upgrade 2026.5 -> 2026.6 ankur.tyagi85
2026-11-19 18:32 ` [blacksail][PATCH 12/64] glaze: Install the CMake files in /usr/lib/cmake/glaze (as intended) ankur.tyagi85
2026-11-19 18:32 ` [blacksail][PATCH 13/64] assimp: patch CVE-2026-117608 ankur.tyagi85
2026-11-19 18:32 ` [blacksail][PATCH 14/64] flatcc: patch CVE-2026-116733 ankur.tyagi85
2026-11-19 18:32 ` [blacksail][PATCH 15/64] flatcc: patch CVE-2026-116734 ankur.tyagi85
2026-11-19 18:32 ` [blacksail][PATCH 16/64] ndpi: patch CVE-2026-116744 ankur.tyagi85
2026-11-19 18:32 ` [blacksail][PATCH 17/64] cockpit: upgrade 366 -> 366.1 ankur.tyagi85
2026-11-19 18:32 ` [blacksail][PATCH 18/64] imx-cst: restore PKCS#11 signing on OpenSSL 4 via the provider ankur.tyagi85
2026-11-19 18:32 ` [blacksail][PATCH 19/64] libwebsockets: patch CVE-2026-114550 ankur.tyagi85
2026-11-19 18:32 ` [blacksail][PATCH 20/64] spitools: upgrade 1.1.1 -> 1.2.0 ankur.tyagi85
2026-11-19 18:32 ` [blacksail][PATCH 21/64] hdf5: patch CVE-2026-19026, CVE-2026-19027 and CVE-2026-19028 ankur.tyagi85
2026-11-19 18:32 ` [blacksail][PATCH 22/64] hdf5: patch CVE-2026-19023 and CVE-2026-19024 ankur.tyagi85
2026-11-19 18:32 ` [blacksail][PATCH 23/64] hdf5: patch CVE-2026-120689 ankur.tyagi85
2026-11-19 18:32 ` [blacksail][PATCH 24/64] hdf5: patch CVE-2026-120754 and CVE-2026-120755 ankur.tyagi85
2026-11-19 18:32 ` [blacksail][PATCH 25/64] hdf5: patch CVE-2026-120756 ankur.tyagi85
2026-11-19 18:32 ` [blacksail][PATCH 26/64] hdf5: patch CVE-2026-120757 ankur.tyagi85
2026-11-19 18:32 ` [blacksail][PATCH 27/64] hdf5: patch CVE-2026-120758 ankur.tyagi85
2026-11-19 18:32 ` [blacksail][PATCH 28/64] libgphoto2: patch CVE-2026-120451 ankur.tyagi85
2026-11-19 18:32 ` [blacksail][PATCH 29/64] libgphoto2: patch CVE-2026-120452 ankur.tyagi85
2026-11-19 18:32 ` [blacksail][PATCH 30/64] python3-django: upgrade 5.2.18 -> 5.2.19 ankur.tyagi85
2026-11-19 18:32 ` [blacksail][PATCH 31/64] python3-django: upgrade 6.0.9 -> 6.0.10 ankur.tyagi85
2026-11-19 18:33 ` [blacksail][PATCH 32/64] uriparser: upgrade 1.0.2 -> 1.0.3 ankur.tyagi85
2026-11-19 18:33 ` [blacksail][PATCH 33/64] libmikmod: Upgrade 3.3.15 -> 3.3.16 ankur.tyagi85
2026-11-19 18:33 ` [blacksail][PATCH 34/64] weechat: upgrade 4.10.1 -> 4.10.2 ankur.tyagi85
2026-11-19 18:33 ` [blacksail][PATCH 35/64] libopenmpt: upgrade 0.8.9 -> 0.8.10 ankur.tyagi85
2026-11-19 18:33 ` [blacksail][PATCH 36/64] mctp: upgrade 2.6.1 -> 2.6.2 ankur.tyagi85
2026-11-19 18:33 ` [blacksail][PATCH 37/64] 7zip: upgrade 26.05 -> 26.06 ankur.tyagi85
2026-11-19 18:33 ` [blacksail][PATCH 38/64] apitrace: patch CVE-2026-126050 ankur.tyagi85
2026-11-19 18:33 ` [blacksail][PATCH 39/64] cockpit: mark CVE-2024-2947 fixed ankur.tyagi85
2026-11-19 18:33 ` [blacksail][PATCH 40/64] brotli: set CVE_PRODUCT to "google:brotli" ankur.tyagi85
2026-11-19 18:33 ` [blacksail][PATCH 41/64] ettercap: patch CVEs CVE-2026-125400 - CVE-2026-125406 ankur.tyagi85
2026-11-19 18:33 ` [blacksail][PATCH 42/64] tinyproxy: patch CVE-2026-125371 ankur.tyagi85
2026-11-19 18:33 ` [blacksail][PATCH 43/64] webmin: patch CVE-2026-125391 ankur.tyagi85
2026-11-19 18:33 ` [blacksail][PATCH 44/64] webmin: patch CVE-2026-125392 ankur.tyagi85
2026-11-19 18:33 ` [blacksail][PATCH 45/64] python3-aiohttp: patch CVE-2026-111063 ankur.tyagi85
2026-11-19 18:33 ` [blacksail][PATCH 46/64] python3-aiohttp: patch CVE-2026-111065 ankur.tyagi85
2026-11-19 18:33 ` [blacksail][PATCH 47/64] python3-aiohttp: patch CVE-2026-111066 ankur.tyagi85
2026-11-19 18:33 ` [blacksail][PATCH 48/64] python3-aiohttp: patch CVE-2026-111748 ankur.tyagi85
2026-11-19 18:33 ` [blacksail][PATCH 49/64] python3-aiohttp: patch CVE-2026-111749 ankur.tyagi85
2026-11-19 18:33 ` [blacksail][PATCH 50/64] python3-aiohttp: patch CVE-2026-111750 ankur.tyagi85
2026-11-19 18:33 ` [blacksail][PATCH 51/64] python3-filelock: upgrade 4.0.4 -> 4.0.12 ankur.tyagi85
2026-11-19 18:33 ` [blacksail][PATCH 52/64] mpv: fix a file descriptor leak in the render API ankur.tyagi85
2026-11-19 18:33 ` [blacksail][PATCH 53/64] mpv: make the drmprime overlay framebuffer the whole frame ankur.tyagi85
2026-11-19 18:33 ` [blacksail][PATCH 54/64] mpv: patch CVE-2026-123095 ankur.tyagi85
2026-11-19 18:33 ` [blacksail][PATCH 55/64] mongodb: fix build with python 3.12 ankur.tyagi85
2026-11-19 18:33 ` [blacksail][PATCH 56/64] mongodb: update to 4.4.29 ankur.tyagi85
2026-11-19 18:33 ` [blacksail][PATCH 57/64] mongodb: upgrade 4.4.29 -> 4.4.30 ankur.tyagi85
2026-11-19 18:33 ` [blacksail][PATCH 58/64] mongodb: ignore CVE-2025-14911 ankur.tyagi85
2026-11-19 18:33 ` [blacksail][PATCH 59/64] mongodb: Fix build with current python, SCons, clang and OpenSSL ankur.tyagi85
2026-11-19 18:33 ` [blacksail][PATCH 60/64] mongodb: Backport fix for SERVER-49099 ankur.tyagi85
2026-11-19 18:33 ` [blacksail][PATCH 61/64] mongodb: Keep build paths out of buildInfo ankur.tyagi85
2026-11-19 18:33 ` [blacksail][PATCH 62/64] frr: Fix build with bison rejecting paths in output directives ankur.tyagi85
2026-11-19 18:33 ` [blacksail][PATCH 63/64] tuna: Fix build with PEP 517 frontends ankur.tyagi85
2026-11-19 18:33 ` [blacksail][PATCH 64/64] libplacebo: update SRC_URI branch ankur.tyagi85

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.