Skip to contentSkip to conversation

unbound: patch CVE-2026-80225

PATCH New [email protected] 1 participant 11 messages Sep 27

lore
Share & tools
lore
#0 lore raw

PATCH 1/11 unbound: patch CVE-2026-80225

From: Ankur Tyagi <[email protected]>

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

---
 .../unbound/unbound/CVE-2026-80225.patch      | 286 ++++++++++++++++++
 .../recipes-support/unbound/unbound_1.24.2.bb |   1 +
 2 files changed, 287 insertions(+)
 create mode 100644 meta-networking/recipes-support/unbound/unbound/CVE-2026-80225.patch
meta-networking/recipes-support/unbound/unbound/CVE-2026-80225.patch new file +286 -0
new file mode 100644
index 0000000000..fb7dda7a15
@@ -0,0 +1,286 @@
+From 5d92dbc699c7a347be74b3752b1c3ee690e4dec1 Mon Sep 17 00:00:00 2001
+From: "W.C.A. Wijngaards" <[email protected]>
+Date: Wed, 16 Sep 2026 09:16:29 +0200
+Subject: [PATCH] - Fix CVE-2026-80225, Possible degradation of service from
+ continuous   queries on the same TCP/DoT connection. Thanks to Qifan Zhang
+ from   Palo Alto Networks for the report.
+
+(cherry picked from commit e619ead2dbcde8fc47f03b2ac68987b3377da4c7)
+
+CVE: CVE-2026-80225
+Upstream-Status: Backport [https://github.com/NLnetLabs/unbound/commit/e619ead2dbcde8fc47f03b2ac68987b3377da4c7]
+
+Signed-off-by: Ankur Tyagi <[email protected]>
+---
+ services/listen_dnsport.c | 12 ++++++-
+ services/listen_dnsport.h |  8 ++++-
+ testcode/testbound.c      | 10 ++++++
+ util/fptr_wlist.c         |  2 ++
+ util/netevent.c           | 66 ++++++++++++++++++++++++++++++++++++++-
+ util/netevent.h           |  9 ++++++
+ 6 files changed, 104 insertions(+), 3 deletions(-)
+
+diff --git a/services/listen_dnsport.c b/services/listen_dnsport.c
+index d49d4ad4c..9b6fb557c 100644
+--- a/services/listen_dnsport.c
++++ b/services/listen_dnsport.c
+@@ -2134,7 +2134,7 @@ void listen_start_accept(struct listen_dnsport* listen)
+ }
+ 
+ struct tcp_req_info*
+-tcp_req_info_create(struct sldns_buffer* spoolbuf)
++tcp_req_info_create(struct comm_base* base, struct sldns_buffer* spoolbuf)
+ {
+ 	struct tcp_req_info* req = (struct tcp_req_info*)malloc(sizeof(*req));
+ 	if(!req) {
+@@ -2142,6 +2142,12 @@ tcp_req_info_create(struct sldns_buffer* spoolbuf)
+ 		return NULL;
+ 	}
+ 	memset(req, 0, sizeof(*req));
++	req->read_again_timer = comm_timer_create(base, tcp_read_again_cb, req);
++	if(!req->read_again_timer) {
++		log_err("malloc failure");
++		free(req);
++		return NULL;
++	}
+ 	req->spool_buffer = spoolbuf;
+ 	return req;
+ }
+@@ -2151,6 +2157,7 @@ tcp_req_info_delete(struct tcp_req_info* req)
+ {
+ 	if(!req) return;
+ 	tcp_req_info_clear(req);
++	comm_timer_delete(req->read_again_timer);
+ 	/* cp is pointer back to commpoint that owns this struct and
+ 	 * called delete on us */
+ 	/* spool_buffer is shared udp buffer, not deleted here */
+@@ -2189,6 +2196,9 @@ void tcp_req_info_clear(struct tcp_req_info* req)
+ 	req->done_req_list = NULL;
+ 	req->num_done_req = 0;
+ 	req->read_is_closed = 0;
++
++	if(comm_timer_is_set(req->read_again_timer))
++		comm_timer_disable(req->read_again_timer);
+ }
+ 
+ void
+diff --git a/services/listen_dnsport.h b/services/listen_dnsport.h
+index 963595a1c..79f46705f 100644
+--- a/services/listen_dnsport.h
++++ b/services/listen_dnsport.h
+@@ -345,6 +345,10 @@ struct tcp_req_info {
+ 	int num_done_req;
+ 	/** list of pending writable result packets, malloced one at a time */
+ 	struct tcp_req_done_item* done_req_list;
++	/** the read again timer, when the number of pipelined TCP queries
++	 * is large, it waits, zero time, for a new event loop to service
++	 * the remainder of the TCP traffic on the fd. */
++	struct comm_timer* read_again_timer;
+ };
+ 
+ /**
+@@ -375,10 +379,12 @@ struct tcp_req_done_item {
+  * Create tcp request info structure that keeps track of open
+  * requests on the TCP channel that are resolved at the same time,
+  * and the pending results that have to get written back to that client.
++ * @param base: comm base for read again timer.
+  * @param spoolbuf: shared buffer
+  * @return new structure or NULL on alloc failure.
+  */
+-struct tcp_req_info* tcp_req_info_create(struct sldns_buffer* spoolbuf);
++struct tcp_req_info* tcp_req_info_create(struct comm_base* base,
++	struct sldns_buffer* spoolbuf);
+ 
+ /**
+  * Delete tcp request structure.  Called by owning commpoint.
+diff --git a/testcode/testbound.c b/testcode/testbound.c
+index 063037df4..3a3bcaef6 100644
+--- a/testcode/testbound.c
++++ b/testcode/testbound.c
+@@ -786,3 +786,13 @@ size_t doq_table_quic_size_get(struct doq_table* ATTR_UNUSED(table))
+ 	return 0;
+ }
+ #endif
++
++void tcp_read_again_cb(void* ATTR_UNUSED(arg))
++{
++	/* nothing */
++}
++
++void tcp_more_read_again_cb(void* ATTR_UNUSED(arg))
++{
++	/* nothing */
++}
+diff --git a/util/fptr_wlist.c b/util/fptr_wlist.c
+index 3c863d5e1..2cf3d320e 100644
+--- a/util/fptr_wlist.c
++++ b/util/fptr_wlist.c
+@@ -141,6 +141,8 @@ fptr_whitelist_comm_timer(void (*fptr)(void*))
+ #ifdef UB_ON_WINDOWS
+ 	else if(fptr == &wsvc_cron_cb) return 1;
+ #endif
++	else if(fptr == &tcp_read_again_cb) return 1;
++	else if(fptr == &tcp_more_read_again_cb) return 1;
+ 	else if(fptr == &auth_xfer_timer) return 1;
+ 	else if(fptr == &auth_xfer_probe_timer_callback) return 1;
+ 	else if(fptr == &auth_xfer_transfer_timer_callback) return 1;
+diff --git a/util/netevent.c b/util/netevent.c
+index aedcb5e07..0dde9059c 100644
+--- a/util/netevent.c
++++ b/util/netevent.c
+@@ -122,6 +122,10 @@
+ #define NUM_UDP_PER_SELECT 1
+ #endif
+ 
++/** The number of TCP queries over a TCP connection, per read indication
++ * from select. */
++#define NUM_TCP_PER_SELECT 100
++
+ /** timeout in millisec to wait for write to unblock, packets dropped after.*/
+ #define SEND_BLOCKED_WAIT_TIMEOUT 200
+ /** max number of times to wait for write to unblock, packets dropped after.*/
+@@ -4546,6 +4550,10 @@ comm_point_tcp_handle_write(int fd, struct comm_point* c)
+ static int
+ tcp_req_info_read_again(int fd, struct comm_point* c)
+ {
++	/* One event-loop visit drains at most this many pipelined queries;
++	 * the rest is re-queued, so that other file descriptors get
++	 * serviced in between. */
++	int budget = NUM_TCP_PER_SELECT;
+ 	while(c->tcp_req_info->read_again) {
+ 		int r;
+ 		c->tcp_req_info->read_again = 0;
+@@ -4562,6 +4570,16 @@ tcp_req_info_read_again(int fd, struct comm_point* c)
+ 			}
+ 			return 0;
+ 		}
++		if(--budget <= 0 && c->tcp_req_info->read_again) {
++			/* Defer the rest of the drain to the next loop turn.
++			 * This uses a zero delay timer. For TLS the undrained
++			 * remainder sits in OpenSSL's user-space buffer. */
++			struct timeval tv;
++			memset(&tv, 0, sizeof(tv));
++			verbose(VERB_ALGO, "Defer tcp_req_info read again");
++			comm_timer_set(c->tcp_req_info->read_again_timer, &tv);
++			return 1;
++		}
+ 	}
+ 	return 1;
+ }
+@@ -4575,6 +4593,7 @@ tcp_more_read_again(int fd, struct comm_point* c)
+ 	/* this continues until the read routines get EAGAIN or so,
+ 	 * and thus does not call the callback, and the bool is 0 */
+ 	int* moreread = c->tcp_more_read_again;
++	int budget = NUM_TCP_PER_SELECT;
+ 	while(moreread && *moreread) {
+ 		*moreread = 0;
+ 		if(!comm_point_tcp_handle_read(fd, c, 0)) {
+@@ -4587,6 +4606,30 @@ tcp_more_read_again(int fd, struct comm_point* c)
+ 			}
+ 			return;
+ 		}
++		if(--budget <= 0 && *moreread) {
++			/* Defer the rest of the drain to the next loop turn.
++			 * This uses a zero delay timer. For TLS the undrained
++			 * remainder sits in OpenSSL's user-space buffer. */
++			struct timeval tv;
++			memset(&tv, 0, sizeof(tv));
++			if(!c->tcp_more_read_again_timer) {
++				c->tcp_more_read_again_timer = comm_timer_create(c->ev->base, tcp_more_read_again_cb, c);
++				if(!c->tcp_more_read_again_timer) {
++					log_err("out of memory for tcp more read again timer");
++					reclaim_tcp_handler(c);
++					if(!c->tcp_do_close) {
++						fptr_ok(fptr_whitelist_comm_point(
++							c->callback));
++						(void)(*c->callback)(c, c->cb_arg,
++							NETEVENT_CLOSED, NULL);
++					}
++					return;
++				}
++			}
++			verbose(VERB_ALGO, "Defer more read again");
++			comm_timer_set(c->tcp_more_read_again_timer, &tv);
++			return;
++		}
+ 	}
+ }
+ 
+@@ -4614,6 +4657,23 @@ tcp_more_write_again(int fd, struct comm_point* c)
+ 	}
+ }
+ 
++void
++tcp_read_again_cb(void* arg)
++{
++	struct tcp_req_info* req = (struct tcp_req_info*)arg;
++	verbose(VERB_ALGO, "tcp_read_again_cb");
++	if(!tcp_req_info_read_again(req->cp->fd, req->cp))
++		return;
++}
++
++void
++tcp_more_read_again_cb(void* arg)
++{
++	struct comm_point* c = (struct comm_point*)arg;
++	verbose(VERB_ALGO, "tcp_more_read_again_cb");
++	tcp_more_read_again(c->fd, c);
++}
++
+ void
+ comm_point_tcp_handle_callback(int fd, short event, void* arg)
+ {
+@@ -6025,7 +6085,7 @@ comm_point_create_tcp_handler(struct comm_base *base,
+ 	c->pp2_enabled = parent->pp2_enabled;
+ 	c->pp2_header_state = pp2_header_none;
+ 	if(spoolbuf) {
+-		c->tcp_req_info = tcp_req_info_create(spoolbuf);
++		c->tcp_req_info = tcp_req_info_create(base, spoolbuf);
+ 		if(!c->tcp_req_info) {
+ 			log_err("could not create tcp commpoint");
+ 			sldns_buffer_free(c->buffer);
+@@ -6584,6 +6644,9 @@ comm_point_close(struct comm_point* c)
+ 		*c->tcp_more_read_again = 0;
+ 	if(c->tcp_more_write_again && *c->tcp_more_write_again)
+ 		*c->tcp_more_write_again = 0;
++	if(c->tcp_more_read_again_timer &&
++		comm_timer_is_set(c->tcp_more_read_again_timer))
++		comm_timer_disable(c->tcp_more_read_again_timer);
+ 
+ 	/* close fd after removing from event lists, or epoll.. is messed up */
+ 	if(c->fd != -1 && !c->do_not_close) {
+@@ -6623,6 +6686,7 @@ comm_point_delete(struct comm_point* c)
+ 		free(c->tcp_handlers);
+ 	}
+ 	free(c->timeout);
++	comm_timer_delete(c->tcp_more_read_again_timer);
+ 	if(c->type == comm_tcp || c->type == comm_local || c->type == comm_http) {
+ 		sldns_buffer_free(c->buffer);
+ #ifdef USE_DNSCRYPT
+diff --git a/util/netevent.h b/util/netevent.h
+index c5114bbbe..dae2c375a 100644
+--- a/util/netevent.h
++++ b/util/netevent.h
+@@ -380,6 +380,9 @@ struct comm_point {
+ 	 * Or leave NULL if it is not used at all. */
+ 	int* tcp_more_write_again;
+ 
++	/** resume timer for tcp_more_read_again */
++	struct comm_timer* tcp_more_read_again_timer;
++
+ 	/** if set, read/write completes:
+ 		read/write state of tcp is toggled.
+ 		buffer reset/bytecount reset.
+@@ -1127,6 +1130,12 @@ void doq_send_pkt(struct comm_point* c, struct doq_pkt_addr* paddr,
+ /** doq timer callback function. */
+ void doq_timer_cb(void* arg);
+ 
++/** tcp read again callback function. For tcp req info listen. */
++void tcp_read_again_cb(void* arg);
++
++/** tcp more read again callback function. For outside network. */
++void tcp_more_read_again_cb(void* arg);
++
+ /**
+  * This routine is published for checks and tests, and is only used internally.
+  * handle libevent callback for timer comm.
meta-networking/recipes-support/unbound/unbound_1.24.2.bb +1 -0
index faf315876c..0b59d7c9f9 100644
@@ -43,6 +43,7 @@ SRC_URI = "git://github.com/NLnetLabs/unbound.git;protocol=https;branch=master;t
            file://CVE-2026-55991.patch \
            file://CVE-2026-56416.patch \
            file://CVE-2026-56444.patch \
+           file://CVE-2026-80225.patch \
            "
 
 SRCREV = "f6269baa605d31859f28770e01a24e3677e5f82c"
#1 lore raw

PATCH 2/11 unbound: patch CVE-2026-81642

From: Ankur Tyagi <[email protected]>

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

---
 .../unbound/unbound/CVE-2026-81642.patch      | 30 +++++++++++++++++++
 .../recipes-support/unbound/unbound_1.24.2.bb |  1 +
 2 files changed, 31 insertions(+)
 create mode 100644 meta-networking/recipes-support/unbound/unbound/CVE-2026-81642.patch
meta-networking/recipes-support/unbound/unbound/CVE-2026-81642.patch new file +30 -0
new file mode 100644
index 0000000000..9f77424a95
@@ -0,0 +1,30 @@
+From a774b2050a1543e87def9cba0e25dcdabffde526 Mon Sep 17 00:00:00 2001
+From: "W.C.A. Wijngaards" <[email protected]>
+Date: Wed, 16 Sep 2026 09:18:49 +0200
+Subject: [PATCH] - Fix CVE-2026-81642, Heap buffer overflow and possible
+ Remote Code   Execution when digesting DNSKEY. Thanks to Yuqi Qiu and Xiang
+ Li   from Nankai University, AOSP Lab for the report.
+
+(cherry picked from commit 8c2e0fd6cc5b6eaa618ac72227808824b4edee7c)
+
+CVE: CVE-2026-81642
+Upstream-Status: Backport [https://github.com/NLnetLabs/unbound/commit/8c2e0fd6cc5b6eaa618ac72227808824b4edee7c]
+
+Signed-off-by: Ankur Tyagi <[email protected]>
+---
+ validator/val_sigcrypt.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/validator/val_sigcrypt.c b/validator/val_sigcrypt.c
+index cde281870..b9bfe685c 100644
+--- a/validator/val_sigcrypt.c
++++ b/validator/val_sigcrypt.c
+@@ -305,6 +305,8 @@ ds_create_dnskey_digest(struct module_env* env,
+ 	 * digest = digest_algorithm( DNSKEY owner name | DNSKEY RDATA);
+ 	 *	DNSKEY RDATA = Flags | Protocol | Algorithm | Public Key. */
+ 	sldns_buffer_clear(b);
++	if(!sldns_buffer_available(b, dnskey_rrset->rk.dname_len + dnskey_len-2))
++		return 0; /* buffer too small */
+ 	sldns_buffer_write(b, dnskey_rrset->rk.dname, 
+ 		dnskey_rrset->rk.dname_len);
+ 	query_dname_tolower(sldns_buffer_begin(b));
meta-networking/recipes-support/unbound/unbound_1.24.2.bb +1 -0
index 0b59d7c9f9..c8d7c6cdab 100644
@@ -44,6 +44,7 @@ SRC_URI = "git://github.com/NLnetLabs/unbound.git;protocol=https;branch=master;t
            file://CVE-2026-56416.patch \
            file://CVE-2026-56444.patch \
            file://CVE-2026-80225.patch \
+           file://CVE-2026-81642.patch \
            "
 
 SRCREV = "f6269baa605d31859f28770e01a24e3677e5f82c"
#2 lore raw

PATCH 3/11 unbound: patch CVE-2026-78227

In reply to [email protected]

From: Ankur Tyagi <[email protected]>

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

---
 .../unbound/unbound/CVE-2026-78227.patch      | 30 +++++++++++++++++++
 .../recipes-support/unbound/unbound_1.24.2.bb |  1 +
 2 files changed, 31 insertions(+)
 create mode 100644 meta-networking/recipes-support/unbound/unbound/CVE-2026-78227.patch
meta-networking/recipes-support/unbound/unbound/CVE-2026-78227.patch new file +30 -0
new file mode 100644
index 0000000000..b434885a1a
@@ -0,0 +1,30 @@
+From 1bec118f61aaf13cc5d1dfbaf1d45e0af8986901 Mon Sep 17 00:00:00 2001
+From: "W.C.A. Wijngaards" <[email protected]>
+Date: Wed, 16 Sep 2026 09:25:05 +0200
+Subject: [PATCH] - Fix CVE-2026-78227, Use-after-free in DoQ stream output
+ buffer on   reset re-transmission. Thanks to Yuqi Qiu and Xiang Li from
+ Nankai   University, AOSP Lab for the report.
+
+(cherry picked from commit 7914901915dd46817e7ae9877776d6fb6fc2060e)
+
+CVE: CVE-2026-78227
+Upstream-Status: Backport [https://github.com/NLnetLabs/unbound/commit/7914901915dd46817e7ae9877776d6fb6fc2060e]
+
+Signed-off-by: Ankur Tyagi <[email protected]>
+---
+ services/listen_dnsport.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/services/listen_dnsport.c b/services/listen_dnsport.c
+index 9b6fb557c..f748070f8 100644
+--- a/services/listen_dnsport.c
++++ b/services/listen_dnsport.c
+@@ -4477,7 +4477,7 @@ doq_stream_reset_cb(ngtcp2_conn* ATTR_UNUSED(conn), int64_t stream_id,
+ 			"unknown stream %d", (int)stream_id);
+ 		return 0;
+ 	}
+-	if(!doq_stream_close(doq_conn, stream, 0))
++	if(!doq_stream_close(doq_conn, stream, 1))
+ 		return NGTCP2_ERR_CALLBACK_FAILURE;
+ 	return 0;
+ }
meta-networking/recipes-support/unbound/unbound_1.24.2.bb +1 -0
index c8d7c6cdab..1ab81879f2 100644
@@ -45,6 +45,7 @@ SRC_URI = "git://github.com/NLnetLabs/unbound.git;protocol=https;branch=master;t
            file://CVE-2026-56444.patch \
            file://CVE-2026-80225.patch \
            file://CVE-2026-81642.patch \
+           file://CVE-2026-78227.patch \
            "
 
 SRCREV = "f6269baa605d31859f28770e01a24e3677e5f82c"
#3 lore raw

PATCH 4/11 unbound: patch CVE-2026-77860

In reply to [email protected]

From: Ankur Tyagi <[email protected]>

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

---
 .../unbound/unbound/CVE-2026-77860.patch      | 31 +++++++++++++++++++
 .../recipes-support/unbound/unbound_1.24.2.bb |  1 +
 2 files changed, 32 insertions(+)
 create mode 100644 meta-networking/recipes-support/unbound/unbound/CVE-2026-77860.patch
meta-networking/recipes-support/unbound/unbound/CVE-2026-77860.patch new file +31 -0
new file mode 100644
index 0000000000..266166b729
@@ -0,0 +1,31 @@
+From 46671c9294ef76e2056a447eca8a561f3f48719e Mon Sep 17 00:00:00 2001
+From: "W.C.A. Wijngaards" <[email protected]>
+Date: Wed, 16 Sep 2026 09:29:04 +0200
+Subject: [PATCH] - Fix CVE-2026-77860, 'serve-expired' can bypass Unbound
+ 'wait-limit'.   Thanks to Xuanchao Xie, Lutong Chen, and Kaiping Xue from the
+   University of Science and Technology of China (USTC) for the   report.
+
+(cherry picked from commit bd71e3b8a6dd87682bf454dc3687fc9e70b1bb78)
+
+CVE: CVE-2026-77860
+Upstream-Status: Backport [https://github.com/NLnetLabs/unbound/commit/bd71e3b8a6dd87682bf454dc3687fc9e70b1bb78]
+
+Signed-off-by: Ankur Tyagi <[email protected]>
+---
+ services/mesh.c | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/services/mesh.c b/services/mesh.c
+index a6798953e..20e4f1a26 100644
+--- a/services/mesh.c
++++ b/services/mesh.c
+@@ -2563,8 +2563,7 @@ mesh_serve_expired_callback(void* arg)
+ 		if(r->query_reply.c->tcp_req_info)
+ 			tcp_req_info_remove_mesh_state(r->query_reply.c->tcp_req_info, mstate);
+ 		/* mesh_send_reply removed mesh state from http2_stream. */
+-		infra_wait_limit_dec(mstate->s.env->infra_cache,
+-			&r->query_reply, mstate->s.env->cfg);
++		/* mesh_send_reply decremented wait_limit. */
+ 		prev = r;
+ 		prev_buffer = r_buffer;
+ 	}
meta-networking/recipes-support/unbound/unbound_1.24.2.bb +1 -0
index 1ab81879f2..1d810fba6c 100644
@@ -46,6 +46,7 @@ SRC_URI = "git://github.com/NLnetLabs/unbound.git;protocol=https;branch=master;t
            file://CVE-2026-80225.patch \
            file://CVE-2026-81642.patch \
            file://CVE-2026-78227.patch \
+           file://CVE-2026-77860.patch \
            "
 
 SRCREV = "f6269baa605d31859f28770e01a24e3677e5f82c"
#4 lore raw

PATCH 5/11 python3-tornado: patch CVE-2026-91990

In reply to [email protected]

From: Ankur Tyagi <[email protected]>

Backport patch from v6.5.8 matching CVE description.

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

---
 .../python3-tornado/CVE-2026-91990.patch      | 40 +++++++++++++++++++
 .../python/python3-tornado_6.5.7.bb           |  3 ++
 2 files changed, 43 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-tornado/CVE-2026-91990.patch
meta-python/recipes-devtools/python/python3-tornado/CVE-2026-91990.patch new file +40 -0
new file mode 100644
index 0000000000..65b43b61a1
@@ -0,0 +1,40 @@
+From 151ba03ad569ec1c13593899550f4ab7d1fa03c8 Mon Sep 17 00:00:00 2001
+From: Ben Darnell <[email protected]>
+Date: Wed, 5 Aug 2026 14:13:32 -0400
+Subject: [PATCH] httputil: Apply multipart max_parts limit earlier
+
+This prevents some CPU and memory amplification attacks.
+
+(cherry picked from commit de85b3f87446e323e881bbaa3d5a74f4b76e5f05)
+
+CVE: CVE-2026-91990
+Upstream-Status: Backport [https://github.com/tornadoweb/tornado/commit/de85b3f87446e323e881bbaa3d5a74f4b76e5f05]
+
+Signed-off-by: Ankur Tyagi <[email protected]>
+---
+ tornado/httputil.py | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/tornado/httputil.py b/tornado/httputil.py
+index 0c9ad832..f698db21 100644
+--- a/tornado/httputil.py
++++ b/tornado/httputil.py
+@@ -37,7 +37,6 @@ from urllib.parse import urlencode, urlparse, urlunparse, parse_qsl
+ from tornado.escape import native_str, parse_qs_bytes, utf8, to_unicode
+ from tornado.util import ObjectDict, unicode_type
+ 
+-
+ # responses is unused in this file, but we re-export it to other files.
+ # Reference it so pyflakes doesn't complain.
+ responses
+@@ -1078,7 +1077,9 @@ def parse_multipart_form_data(
+     final_boundary_index = data.rfind(b"--" + boundary + b"--")
+     if final_boundary_index == -1:
+         raise HTTPInputError("Invalid multipart/form-data: no final boundary found")
+-    parts = data[:final_boundary_index].split(b"--" + boundary + b"\r\n")
++    parts = data[:final_boundary_index].split(
++        b"--" + boundary + b"\r\n", config.max_parts + 1
++    )
+     if len(parts) > config.max_parts:
+         raise HTTPInputError("multipart/form-data has too many parts")
+     for part in parts:
meta-python/recipes-devtools/python/python3-tornado_6.5.7.bb +3 -0
index 4dda1541b8..5d3db11b6b 100644
@@ -8,6 +8,9 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
 
 SRC_URI[sha256sum] = "66c513a76cda70d53907bc27cf1447557699c2e95aa48ba27a442ff61c3ddfc2"
 
+SRC_URI += "file://CVE-2026-91990.patch \
+"
+
 inherit pypi python_setuptools_build_meta
 
 # Requires _compression which is currently located in misc
#5 lore raw

PATCH 6/11 python3-tornado: patch CVE-2026-82397

In reply to [email protected]

From: Ankur Tyagi <[email protected]>

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

---
 .../python3-tornado/CVE-2026-82397.patch      | 149 ++++++++++++++++++
 .../python/python3-tornado_6.5.7.bb           |   1 +
 2 files changed, 150 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-tornado/CVE-2026-82397.patch
meta-python/recipes-devtools/python/python3-tornado/CVE-2026-82397.patch new file +149 -0
new file mode 100644
index 0000000000..71278d5d23
@@ -0,0 +1,149 @@
+From eba9e5652af3edbf9d8f2375194b5c63362d0c91 Mon Sep 17 00:00:00 2001
+From: Ben Darnell <[email protected]>
+Date: Wed, 5 Aug 2026 21:20:58 -0400
+Subject: [PATCH] httputil: Enforce a new limit on the number of arguments in a
+ request
+
+Large POST bodies can be very expensive to parse in the worst case,
+so use the (new in Python 3.8) max_num_fields argument to limit the
+cost. A new field in ParseBodyConfig allows users to configure this
+limit. The default is 1000, which is the same as that used in php and
+node.js.
+
+(cherry picked from commit 8d6363ed7b69d5f0da806efe34d256627a2191de)
+
+CVE: CVE-2026-82397
+Upstream-Status: Backport [https://github.com/tornadoweb/tornado/commit/8d6363ed7b69d5f0da806efe34d256627a2191de]
+
+Signed-off-by: Ankur Tyagi <[email protected]>
+---
+ tornado/escape.py             | 16 ++++++++++++++--
+ tornado/httputil.py           | 26 +++++++++++++++++++++++++-
+ tornado/test/httputil_test.py | 18 ++++++++++++++++++
+ 3 files changed, 57 insertions(+), 3 deletions(-)
+
+diff --git a/tornado/escape.py b/tornado/escape.py
+index 8515bf58..a1c16b36 100644
+--- a/tornado/escape.py
++++ b/tornado/escape.py
+@@ -171,7 +171,11 @@ def url_unescape(
+ 
+ 
+ def parse_qs_bytes(
+-    qs: Union[str, bytes], keep_blank_values: bool = False, strict_parsing: bool = False
++    qs: Union[str, bytes],
++    keep_blank_values: bool = False,
++    strict_parsing: bool = False,
++    *,
++    max_num_fields: Optional[int] = None,
+ ) -> Dict[str, List[bytes]]:
+     """Parses a query string like urlparse.parse_qs,
+     but takes bytes and returns the values as byte strings.
+@@ -179,13 +183,21 @@ def parse_qs_bytes(
+     Keys still become type str (interpreted as latin1 in python3!)
+     because it's too painful to keep them as byte strings in
+     python3 and in practice they're nearly always ascii anyway.
++
++    .. versionadded:: 6.5.8
++       The ``max_num_fields`` argument. ValueError is raised if this limit is exceeded.
+     """
+     # This is gross, but python3 doesn't give us another way.
+     # Latin1 is the universal donor of character encodings.
+     if isinstance(qs, bytes):
+         qs = qs.decode("latin1")
+     result = urllib.parse.parse_qs(
+-        qs, keep_blank_values, strict_parsing, encoding="latin1", errors="strict"
++        qs,
++        keep_blank_values,
++        strict_parsing,
++        encoding="latin1",
++        errors="strict",
++        max_num_fields=max_num_fields,
+     )
+     encoded = {}
+     for k, v in result.items():
+diff --git a/tornado/httputil.py b/tornado/httputil.py
+index f698db21..b80c796c 100644
+--- a/tornado/httputil.py
++++ b/tornado/httputil.py
+@@ -947,6 +947,23 @@ class ParseMultipartConfig:
+     """
+ 
+ 
[email protected]
++class ParseUrlEncodedConfig:
++    """This class configures the parsing of ``application/x-www-form-urlencoded`` request bodies.
++
++    Its primary purpose is to place limits on the size and complexity of request messages
++    to avoid potential denial-of-service attacks.
++
++    .. versionadded:: 6.5.8
++    """
++
++    max_arguments: int = 1000
++    """The maximum number of arguments accepted in a urlencoded request.
++
++    Each ``<input>`` element in an HTML form corresponds to at least one argument.
++    """
++
++
+ @dataclasses.dataclass
+ class ParseBodyConfig:
+     """This class configures the parsing of request bodies.
+@@ -957,6 +974,9 @@ class ParseBodyConfig:
+     multipart: ParseMultipartConfig = dataclasses.field(
+         default_factory=ParseMultipartConfig
+     )
++    urlencoded: ParseUrlEncodedConfig = dataclasses.field(
++        default_factory=ParseUrlEncodedConfig
++    )
+     """Configuration for ``multipart/form-data`` request bodies."""
+ 
+ 
+@@ -1015,7 +1035,11 @@ def parse_body_arguments(
+             )
+         try:
+             # real charset decoding will happen in RequestHandler.decode_argument()
+-            uri_arguments = parse_qs_bytes(body, keep_blank_values=True)
++            uri_arguments = parse_qs_bytes(
++                body,
++                keep_blank_values=True,
++                max_num_fields=config.urlencoded.max_arguments,
++            )
+         except Exception as e:
+             raise HTTPInputError("Invalid x-www-form-urlencoded body: %s" % e) from e
+         for name, values in uri_arguments.items():
+diff --git a/tornado/test/httputil_test.py b/tornado/test/httputil_test.py
+index 92683ae9..afb15879 100644
+--- a/tornado/test/httputil_test.py
++++ b/tornado/test/httputil_test.py
+@@ -1,4 +1,5 @@
+ from tornado.httputil import (
++    parse_body_arguments,
+     url_concat,
+     parse_multipart_form_data,
+     HTTPHeaders,
+@@ -95,6 +96,23 @@ class QsParseTest(unittest.TestCase):
+         self.assertIn(("b", "2"), qsl)
+ 
+ 
++class UrlEncodedDataTest(unittest.TestCase):
++    def test_urlencoded_data(self):
++        data = b"a=1&b=2&a=3"
++        args, files = form_data_args()
++        parse_body_arguments("application/x-www-form-urlencoded", data, args, files)
++        self.assertEqual(args["a"], [b"1", b"3"])
++        self.assertEqual(args["b"], [b"2"])
++        self.assertEqual(files, {})
++
++    def test_max_arguments(self):
++        data = b"".join(b"a=1&" for _ in range(1001))
++        args, files = form_data_args()
++        with self.assertRaises(HTTPInputError) as cm:
++            parse_body_arguments("application/x-www-form-urlencoded", data, args, files)
++        self.assertIn("Max number of fields exceeded", str(cm.exception))
++
++
+ class MultipartFormDataTest(unittest.TestCase):
+     def test_file_upload(self):
+         data = b"""\
meta-python/recipes-devtools/python/python3-tornado_6.5.7.bb +1 -0
index 5d3db11b6b..ce7b903ef7 100644
@@ -9,6 +9,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
 SRC_URI[sha256sum] = "66c513a76cda70d53907bc27cf1447557699c2e95aa48ba27a442ff61c3ddfc2"
 
 SRC_URI += "file://CVE-2026-91990.patch \
+            file://CVE-2026-82397.patch \
 "
 
 inherit pypi python_setuptools_build_meta
#6 lore raw

PATCH 7/11 python3-tornado: patch CVE-2026-91991

In reply to [email protected]

From: Ankur Tyagi <[email protected]>

Backport patch from v6.5.8 matching CVE description.

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

---
 .../python3-tornado/CVE-2026-91991.patch      | 57 +++++++++++++++++++
 .../python/python3-tornado_6.5.7.bb           |  1 +
 2 files changed, 58 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-tornado/CVE-2026-91991.patch
meta-python/recipes-devtools/python/python3-tornado/CVE-2026-91991.patch new file +57 -0
new file mode 100644
index 0000000000..6bd755af57
@@ -0,0 +1,57 @@
+From 566a5ff64a530dfbc6bb6afbb1615c3e7addfd8d Mon Sep 17 00:00:00 2001
+From: Ben Darnell <[email protected]>
+Date: Wed, 5 Aug 2026 21:33:26 -0400
+Subject: [PATCH] web: Also check for semicolons in deprecated mixed-case
+ cookie args
+
+(cherry picked from commit da284767eae8e1f0484f123b8c3225f6465b09c7)
+
+CVE: CVE-2026-91991
+Upstream-Status: Backport [https://github.com/tornadoweb/tornado/commit/da284767eae8e1f0484f123b8c3225f6465b09c7]
+
+Signed-off-by: Ankur Tyagi <[email protected]>
+---
+ tornado/test/web_test.py | 12 ++++++++++++
+ tornado/web.py           |  6 ++++++
+ 2 files changed, 18 insertions(+)
+
+diff --git a/tornado/test/web_test.py b/tornado/test/web_test.py
+index 9bd1d49c..27e7fcfe 100644
+--- a/tornado/test/web_test.py
++++ b/tornado/test/web_test.py
+@@ -329,6 +329,18 @@ class CookieTest(WebTestCase):
+                                 "unexpected exception for char %r in domain: %s\n"
+                                 % (char, e)
+                             )
++                    try:
++                        self.set_cookie("foo", "bar", DoMaIn="example" + char + ".com")
++                        self.write(
++                            "Didn't get expected exception for char %r in DoMaIn\n"
++                            % char
++                        )
++                    except http.cookies.CookieError as e:
++                        if "Invalid cookie attribute DoMaIn" not in str(e):
++                            self.write(
++                                "unexpected exception for char %r in DoMaIn: %s\n"
++                                % (char, e)
++                            )
+ 
+                     try:
+                         self.set_cookie("foo", "bar", path="/" + char)
+diff --git a/tornado/web.py b/tornado/web.py
+index ec7ec3f5..6f1ae304 100644
+--- a/tornado/web.py
++++ b/tornado/web.py
+@@ -717,6 +717,12 @@ class RequestHandler:
+                 raise http.cookies.CookieError(
+                     f"Invalid cookie attribute {attr_name}={attr_value!r} for cookie {name!r}"
+                 )
++        for k, v in kwargs.items():
++            # Also check for disallowed characters in deprecated kwargs.
++            if re.search(r"[\x00-\x20\x3b\x7f]", str(v)):
++                raise http.cookies.CookieError(
++                    f"Invalid cookie attribute {k}={v!r} for cookie {name!r}"
++                )
+         if not hasattr(self, "_new_cookie"):
+             self._new_cookie = (
+                 http.cookies.SimpleCookie()
meta-python/recipes-devtools/python/python3-tornado_6.5.7.bb +1 -0
index ce7b903ef7..ca5b0a0470 100644
@@ -10,6 +10,7 @@ SRC_URI[sha256sum] = "66c513a76cda70d53907bc27cf1447557699c2e95aa48ba27a442ff61c
 
 SRC_URI += "file://CVE-2026-91990.patch \
             file://CVE-2026-82397.patch \
+            file://CVE-2026-91991.patch \
 "
 
 inherit pypi python_setuptools_build_meta
#7 lore raw

PATCH 8/11 freerdp3: patch CVE-2026-85089

In reply to [email protected]

From: Ankur Tyagi <[email protected]>

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

---
 .../freerdp/freerdp3/CVE-2026-85089-1.patch   | 28 +++++++++++++++++++
 .../freerdp/freerdp3/CVE-2026-85089-2.patch   | 28 +++++++++++++++++++
 .../freerdp/freerdp3_3.24.2.bb                |  2 ++
 3 files changed, 58 insertions(+)
 create mode 100644 meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-85089-1.patch
 create mode 100644 meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-85089-2.patch
meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-85089-1.patch new file +28 -0
new file mode 100644
index 0000000000..78a985642d
@@ -0,0 +1,28 @@
+From 2ccd047f64930ae10518ea14f476b2f311218814 Mon Sep 17 00:00:00 2001
+From: Armin Novak <[email protected]>
+Date: Thu, 13 Aug 2026 11:23:46 +0200
+Subject: [PATCH] [core,info] write zero to info data padding
+
+(cherry picked from commit 056cede398d71c1f2540baebc26ec3327a249301)
+
+CVE: CVE-2026-85089
+Upstream-Status: Backport [https://github.com/FreeRDP/FreeRDP/commit/056cede398d71c1f2540baebc26ec3327a249301]
+
+Signed-off-by: Ankur Tyagi <[email protected]>
+---
+ libfreerdp/core/info.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libfreerdp/core/info.c b/libfreerdp/core/info.c
+index a11cc12ff..003bec52a 100644
+--- a/libfreerdp/core/info.c
++++ b/libfreerdp/core/info.c
+@@ -1495,7 +1495,7 @@ static BOOL rdp_write_logon_info_plain(wStream* s)
+ 	if (!Stream_EnsureRemainingCapacity(s, 576))
+ 		return FALSE;
+ 
+-	Stream_Seek(s, 576);
++	Stream_Zero(s, 576);
+ 	return TRUE;
+ }
+ 
meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-85089-2.patch new file +28 -0
new file mode 100644
index 0000000000..90e921dc39
@@ -0,0 +1,28 @@
+From 1228a148cb3754a78b8c40737e14d0be5030a382 Mon Sep 17 00:00:00 2001
+From: Armin Novak <[email protected]>
+Date: Thu, 13 Aug 2026 11:24:02 +0200
+Subject: [PATCH] [winpr,utils] initialize wStream buffer with zero
+
+(cherry picked from commit 483c9388119f06bac420d92053cff9ef94e83bea)
+
+CVE: CVE-2026-85089
+Upstream-Status: Backport [https://github.com/FreeRDP/FreeRDP/commit/483c9388119f06bac420d92053cff9ef94e83bea]
+
+Signed-off-by: Ankur Tyagi <[email protected]>
+---
+ winpr/libwinpr/utils/stream.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/winpr/libwinpr/utils/stream.c b/winpr/libwinpr/utils/stream.c
+index c0beba7fc..224459584 100644
+--- a/winpr/libwinpr/utils/stream.c
++++ b/winpr/libwinpr/utils/stream.c
+@@ -98,7 +98,7 @@ wStream* Stream_New(BYTE* buffer, size_t size)
+ 	if (buffer)
+ 		s->buffer = buffer;
+ 	else
+-		s->buffer = (BYTE*)malloc(size);
++		s->buffer = (BYTE*)calloc(size, sizeof(BYTE));
+ 
+ 	if (!s->buffer)
+ 	{
meta-oe/recipes-support/freerdp/freerdp3_3.24.2.bb +2 -0
index edd2fddf94..1c46a8b9ca 100644
@@ -25,6 +25,8 @@ SRC_URI = "git://github.com/FreeRDP/FreeRDP.git;nobranch=1;protocol=https;tag=${
            file://CVE-2026-64621.patch \
            file://CVE-2026-66401.patch \
            file://CVE-2026-67288.patch \
+           file://CVE-2026-85089-1.patch \
+           file://CVE-2026-85089-2.patch \
 "
 
 
#8 lore raw

PATCH 9/11 freerdp3: patch CVE-2026-85090

In reply to [email protected]

From: Ankur Tyagi <[email protected]>

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

---
 .../freerdp/freerdp3/CVE-2026-85090.patch     | 59 +++++++++++++++++++
 .../freerdp/freerdp3_3.24.2.bb                |  1 +
 2 files changed, 60 insertions(+)
 create mode 100644 meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-85090.patch
meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-85090.patch new file +59 -0
new file mode 100644
index 0000000000..ee3077c1c0
@@ -0,0 +1,59 @@
+From 22476c6898945934fb86b1672a372894fb68a111 Mon Sep 17 00:00:00 2001
+From: Armin Novak <[email protected]>
+Date: Thu, 13 Aug 2026 16:09:28 +0200
+Subject: [PATCH] [primitives,yuv444] limit data read to actual height
+
+(cherry picked from commit d0a481cb74ab57bca24791fe11b89464a332d3f1)
+
+CVE: CVE-2026-85090
+Upstream-Status: Backport [https://github.com/FreeRDP/FreeRDP/commit/d0a481cb74ab57bca24791fe11b89464a332d3f1]
+
+Signed-off-by: Ankur Tyagi <[email protected]>
+---
+ libfreerdp/primitives/neon/prim_YUV_neon.c  | 3 ++-
+ libfreerdp/primitives/prim_YUV.c            | 3 ++-
+ libfreerdp/primitives/sse/prim_YUV_sse4.1.c | 3 ++-
+ 3 files changed, 6 insertions(+), 3 deletions(-)
+
+diff --git a/libfreerdp/primitives/neon/prim_YUV_neon.c b/libfreerdp/primitives/neon/prim_YUV_neon.c
+index f44016cda..3e74c7ea1 100644
+--- a/libfreerdp/primitives/neon/prim_YUV_neon.c
++++ b/libfreerdp/primitives/neon/prim_YUV_neon.c
+@@ -668,7 +668,8 @@ static pstatus_t neon_ChromaV1ToYUV444(const BYTE* WINPR_RESTRICT pSrcRaw[3],
+ 			pX = pDst[2] + dstStep[2] * pos;
+ 		}
+ 
+-		memcpy(pX, Ya, nWidth);
++		if (y < nHeight)
++			memcpy(pX, Ya, nWidth);
+ 	}
+ 
+ 	/* B6 and B7 */
+diff --git a/libfreerdp/primitives/prim_YUV.c b/libfreerdp/primitives/prim_YUV.c
+index 65a5a8dd6..0db8c0e68 100644
+--- a/libfreerdp/primitives/prim_YUV.c
++++ b/libfreerdp/primitives/prim_YUV.c
+@@ -146,7 +146,8 @@ static inline pstatus_t general_ChromaV1ToYUV444(const BYTE* WINPR_RESTRICT pSrc
+ 			pX = pDst[2] + dstStep[2] * pos;
+ 		}
+ 
+-		memcpy(pX, Ya, nWidth);
++		if (y < nHeight)
++			memcpy(pX, Ya, nWidth);
+ 	}
+ 
+ 	/* B6 and B7 */
+diff --git a/libfreerdp/primitives/sse/prim_YUV_sse4.1.c b/libfreerdp/primitives/sse/prim_YUV_sse4.1.c
+index 6fed9945c..9ab1762a8 100644
+--- a/libfreerdp/primitives/sse/prim_YUV_sse4.1.c
++++ b/libfreerdp/primitives/sse/prim_YUV_sse4.1.c
+@@ -1534,7 +1534,8 @@ static pstatus_t sse41_ChromaV1ToYUV444(const BYTE* WINPR_RESTRICT pSrcRaw[3],
+ 			pX = pDst[2] + 1ULL * dstStep[2] * pos;
+ 		}
+ 
+-		memcpy(pX, Ya, nWidth);
++		if (y < nHeight)
++			memcpy(pX, Ya, nWidth);
+ 	}
+ 
+ 	/* B6 and B7 */
meta-oe/recipes-support/freerdp/freerdp3_3.24.2.bb +1 -0
index 1c46a8b9ca..6270ea6a2d 100644
@@ -27,6 +27,7 @@ SRC_URI = "git://github.com/FreeRDP/FreeRDP.git;nobranch=1;protocol=https;tag=${
            file://CVE-2026-67288.patch \
            file://CVE-2026-85089-1.patch \
            file://CVE-2026-85089-2.patch \
+           file://CVE-2026-85090.patch \
 "
 
 
#9 lore raw

PATCH 10/11 php: upgrade 8.5.10 -> 8.5.11

In reply to [email protected]

From: Jason Schonberg <[email protected]>

This is a security release.

CVE-2025-1218 CVE-2025-14181
CVE-2026-91765 CVE-2026-91766 CVE-2026-91767 CVE-2026-91768 CVE-2026-91769 CVE-2026-6103 CVE-2026-93682 CVE-2026-92842 CVE-2026-17545

Changelog: https://www.php.net/ChangeLog-8.php#8.5.11

(cherry picked from commit 38accdd03182817dd97a7689f8a50568410b3ac5)
---
 meta-oe/recipes-devtools/php/{php_8.5.10.bb => php_8.5.11.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-oe/recipes-devtools/php/{php_8.5.10.bb => php_8.5.11.bb} (99%)
meta-oe/recipes-devtools/php/php_8.5.11.bb renamed from meta-oe/recipes-devtools/php/php_8.5.10.bb +1 -1
similarity index 99%
rename from meta-oe/recipes-devtools/php/php_8.5.10.bb
rename to meta-oe/recipes-devtools/php/php_8.5.11.bb
index aab18777c7..c9f8f478f8 100644
@@ -32,7 +32,7 @@ UPSTREAM_CHECK_REGEX = "releases/tag/php-(?P<pver>\d+(\.\d+)+)"
 
 S = "${UNPACKDIR}/php-${PV}"
 
-SRC_URI[sha256sum] = "d79bd4f3a9248e5cb5833766ba0d51cd35dd01b8727f23f30bcdba6fabc51d3e"
+SRC_URI[sha256sum] = "dc940716a8c73e531c0078eecb955d595d321ec2cc9d47149cf0089ea6e18f64"
 
 CVE_STATUS_GROUPS += "CVE_STATUS_PHP"
 CVE_STATUS_PHP[status] = "fixed-version: The name of this product is exactly the same as github.com/emlog/emlog. CVE can be safely ignored."
#10 lore raw

PATCH 11/11 gpsd: patch CVE-2026-60122

In reply to [email protected]

From: Ankur Tyagi <[email protected]>

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

---
 .../gpsd/gpsd/CVE-2026-60122.patch            | 45 +++++++++++++++++++
 .../recipes-navigation/gpsd/gpsd_3.27.5.bb    |  1 +
 2 files changed, 46 insertions(+)
 create mode 100644 meta-oe/recipes-navigation/gpsd/gpsd/CVE-2026-60122.patch
meta-oe/recipes-navigation/gpsd/gpsd/CVE-2026-60122.patch new file +45 -0
new file mode 100644
index 0000000000..da8fa5f4d2
@@ -0,0 +1,45 @@
+From 50bf98d0240b94bbec6ce06be33cdaf99e2f6214 Mon Sep 17 00:00:00 2001
+From: "Gary E. Miller" <[email protected]>
+Date: Mon, 20 Jul 2026 20:12:16 -0700
+Subject: [PATCH] clients/gpsprof.py.in: ensure sats.used is boolean.  Issue
+ 406
+
+Prevfent command injection by sates.used.  Force to boolean.
+
+(cherry picked from commit 5a9c44a42136b9bb98d460a8a716e9fd344a8d93)
+
+CVE: CVE-2026-60122
+Upstream-Status: Backport [https://gitlab.com/gpsd/gpsd/-/commit/5a9c44a42136b9bb98d460a8a716e9fd344a8d93]
+Signed-off-by: Ankur Tyagi <[email protected]>
+---
+ clients/gpsprof.py.in | 9 ++++++++-
+ 1 file changed, 8 insertions(+), 1 deletion(-)
+
+diff --git a/clients/gpsprof.py.in b/clients/gpsprof.py.in
+index e91367ee3..07123d417 100644
+--- a/clients/gpsprof.py.in
++++ b/clients/gpsprof.py.in
+@@ -334,8 +334,11 @@ class spaceplot(plotter):
+             # get sat used count
+             sats_used = 0
+             for sat in self.session.satellites:
+-                if sat.used:
++                if sat.used is True:
+                     sats_used += 1
++                else:
++                    # ensure it is boolean.
++                    sat.used = False
+ 
+             if 'altHAE' not in self.session.data:
+                 self.session.data['altHAE'] = gps.NaN
+@@ -783,6 +786,10 @@ class polarplot(plotter):
+                     used += 1
+                     if 'polarunused' == self.name:
+                         continue
++                else:
++                    # ensure it is boolean.
++                    sat['used'] = False;
++
+                 if (('polarused' == self.name and
+                      sat['used'] is False)):
+                     continue
meta-oe/recipes-navigation/gpsd/gpsd_3.27.5.bb +1 -0
index 7819dc532d..ed16ee4fc1 100644
@@ -11,6 +11,7 @@ SRC_URI = "${SAVANNAH_GNU_MIRROR}/${BPN}/${BP}.tar.gz \
            file://CVE-2026-58459-1.patch \
            file://CVE-2026-58459-2.patch \
            file://CVE-2026-58459-3.patch \
+           file://CVE-2026-60122.patch \
            file://gpsd.init \
            "
 SRC_URI[sha256sum] = "409873f5048462ef1ac413a51ab35caa8b50b31be62b3347bee1cc2994e7c649"