From: Peter Marko <[email protected]> Pick patch mentioned in NVD report.
Signed-off-by: Peter Marko <[email protected]> --- .../libwebsockets/CVE-2026-10650.patch | 46 +++++++++++++++++++ .../libwebsockets/libwebsockets_4.3.3.bb | 1 + 2 files changed, 47 insertions(+) create mode 100644 meta-oe/recipes-connectivity/libwebsockets/libwebsockets/CVE-2026-10650.patch diff --git a/meta-oe/recipes-connectivity/libwebsockets/libwebsockets/CVE-2026-10650.patch b/meta-oe/recipes-connectivity/libwebsockets/libwebsockets/CVE-2026-10650.patch new file mode 100644 index 0000000000..5846b3616d --- /dev/null +++ b/meta-oe/recipes-connectivity/libwebsockets/libwebsockets/CVE-2026-10650.patch @@ -0,0 +1,46 @@ +From 3f9f0c6ecaf0e6f3f219d30632c5d1f2479d7498 Mon Sep 17 00:00:00 2001 +From: Biniam F Demissie <[email protected]> +Date: Wed, 13 May 2026 04:25:55 +0100 +Subject: [PATCH] ssh: plugin: add limit to resource exhaustion + +CVE: CVE-2026-10650 +Upstream-Status: Backport [https://github.com/warmcat/libwebsockets/commit/3f9f0c6ecaf0e6f3f219d30632c5d1f2479d7498] +Signed-off-by: Peter Marko <[email protected]> +--- + plugins/ssh-base/sshd.c | 9 ++++++++- + 1 file changed, 8 insertions(+), 1 deletion(-) + +diff --git a/plugins/ssh-base/sshd.c b/plugins/ssh-base/sshd.c +index ea35cb8b7..c849644d4 100644 +--- a/plugins/ssh-base/sshd.c ++++ b/plugins/ssh-base/sshd.c +@@ -1,7 +1,7 @@ + /* + * libwebsockets - small server side websockets and web server implementation + * +- * Copyright (C) 2010 - 2019 Andy Green <[email protected]> ++ * Copyright (C) 2010 - 2026 Andy Green <[email protected]> + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to +@@ -28,6 +28,8 @@ + #include <string.h> + #include <stdlib.h> + ++#define LWS_SSH_MAX_PACKET_SIZE (256 * 1024) ++ + void *sshd_zalloc(size_t s) + { + void *p = malloc(s); +@@ -592,6 +594,11 @@ again: + pss->parser_state = SSHS_MSG_PADDING; + pss->ctr = 0; + pss->pos = 4; ++ ++ if (pss->msg_len > LWS_SSH_MAX_PACKET_SIZE) { ++ lwsl_notice("msg size %u exceeds maximum\n", pss->msg_len); ++ goto bail; ++ } + if (pss->msg_len < 2 + 4) { + lwsl_notice("illegal msg size\n"); + goto bail; diff --git a/meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.3.3.bb b/meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.3.3.bb index 413226ced2..ed2ac9df4a 100644 --- a/meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.3.3.bb +++ b/meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.3.3.bb @@ -11,6 +11,7 @@ SRCREV = "4415e84c095857629863804e941b9e1c2e9347ef" SRC_URI = "git://github.com/warmcat/libwebsockets.git;protocol=https;branch=v4.3-stable \ file://CVE-2025-11677.patch \ file://CVE-2025-11678.patch \ + file://CVE-2026-10650.patch \ " UPSTREAM_CHECK_URI = "https://github.com/warmcat/${BPN}/releases"
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#128237): https://lists.openembedded.org/g/openembedded-devel/message/128237 Mute This Topic: https://lists.openembedded.org/mt/120303161/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
