From: ankur.tyagi85@gmail.com
To: openembedded-devel@lists.openembedded.org
Cc: Ankur Tyagi <ankur.tyagi85@gmail.com>
Subject: [oe][meta-oe][wrynose][PATCH 12/15] freerdp3: patch CVE-2026-66401
Date: Wed, 9 Sep 2026 20:31:37 +1200 [thread overview]
Message-ID: <20260909083140.2494932-12-ankur.tyagi85@gmail.com> (raw)
In-Reply-To: <20260909083140.2494932-1-ankur.tyagi85@gmail.com>
From: Ankur Tyagi <ankur.tyagi85@gmail.com>
Backport commit matching GitHub advisory[1]
Details:
https://nvd.nist.gov/vuln/detail/cve-2026-66401
[1]https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-8jj2-67pg-j6mg
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
---
.../freerdp/freerdp3/CVE-2026-66401.patch | 86 +++++++++++++++++++
.../freerdp/freerdp3_3.24.2.bb | 1 +
2 files changed, 87 insertions(+)
create mode 100644 meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-66401.patch
diff --git a/meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-66401.patch b/meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-66401.patch
new file mode 100644
index 0000000000..480db4836c
--- /dev/null
+++ b/meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-66401.patch
@@ -0,0 +1,86 @@
+From 60d0c34ad36ea163b5937d1c9ce657d23dac0f1e Mon Sep 17 00:00:00 2001
+From: Armin Novak <armin.novak@thincast.com>
+Date: Sun, 12 Jul 2026 11:45:50 +0200
+Subject: [PATCH] [channels,rdpecam] fix reading of config descriptor
+
+(cherry picked from commit 1d35ecb77e2469cbc29da14c180777eb514d70cd)
+
+CVE: CVE-2026-66401
+Upstream-Status: Backport [https://github.com/FreeRDP/FreeRDP/commit/1d35ecb77e2469cbc29da14c180777eb514d70cd]
+
+Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
+---
+ channels/rdpecam/client/v4l/uvc_h264.c | 49 +++++++++++++++++---------
+ 1 file changed, 33 insertions(+), 16 deletions(-)
+
+diff --git a/channels/rdpecam/client/v4l/uvc_h264.c b/channels/rdpecam/client/v4l/uvc_h264.c
+index 30f0cf4b4..a3c716478 100644
+--- a/channels/rdpecam/client/v4l/uvc_h264.c
++++ b/channels/rdpecam/client/v4l/uvc_h264.c
+@@ -23,6 +23,8 @@
+ * limitations under the License.
+ */
+
++#include <winpr/wtypes.h>
++
+ #include <sys/ioctl.h>
+
+ #include <linux/uvcvideo.h>
+@@ -347,26 +349,41 @@ static uint8_t get_guid_unit_id_from_config_descriptor(struct libusb_config_desc
+ if (interface->bInterfaceClass != LIBUSB_CLASS_VIDEO ||
+ interface->bInterfaceSubClass != USB_VIDEO_CONTROL)
+ continue;
++ if (interface->extra_length < 0)
++ continue;
+
+- const uint8_t* ptr = interface->extra;
+- while (ptr < interface->extra + interface->extra_length)
++ size_t offset = 0;
++ const size_t extraLen = WINPR_ASSERTING_INT_CAST(size_t, interface->extra_length);
++ while (offset < extraLen)
+ {
+- const xu_descriptor* desc = (const xu_descriptor*)ptr;
+- if (desc->bDescriptorType == USB_VIDEO_CONTROL_INTERFACE &&
+- desc->bDescriptorSubType == USB_VIDEO_CONTROL_XU_TYPE &&
+- memcmp(desc->guidExtensionCode, guid, 16) == 0)
++ const size_t remaining = extraLen - offset;
++ if (remaining < 3)
++ break;
++ const xu_descriptor* desc = (const xu_descriptor*)&interface->extra[offset];
++
++ WINPR_STATIC_ASSERT(sizeof(xu_descriptor) == 16 + 4);
++ const size_t bLength = WINPR_ASSERTING_INT_CAST(size_t, desc->bLength);
++ if ((desc->bLength <= 0) || (bLength > remaining))
++ break;
++
++ if ((desc->bDescriptorType == USB_VIDEO_CONTROL_INTERFACE) &&
++ (desc->bDescriptorSubType == USB_VIDEO_CONTROL_XU_TYPE) &&
++ (bLength >= sizeof(xu_descriptor)))
+ {
+- int8_t unit_id = desc->bUnitID;
+-
+- WLog_DBG(TAG,
+- "For camera %04" PRIx16 ":%04" PRIx16
+- " found UVCX H264 UnitID %" PRId8,
+- ddesc->idVendor, ddesc->idProduct, unit_id);
+- if (unit_id < 0)
+- return 0;
+- return WINPR_CXX_COMPAT_CAST(uint8_t, unit_id);
++ if (memcmp(desc->guidExtensionCode, guid, 16) == 0)
++ {
++ int8_t unit_id = desc->bUnitID;
++
++ WLog_DBG(TAG,
++ "For camera %04" PRIx16 ":%04" PRIx16
++ " found UVCX H264 UnitID %" PRId8,
++ ddesc->idVendor, ddesc->idProduct, unit_id);
++ if (unit_id < 0)
++ return 0;
++ return WINPR_CXX_COMPAT_CAST(uint8_t, unit_id);
++ }
+ }
+- ptr += desc->bLength;
++ offset += bLength;
+ }
+ }
+ }
diff --git a/meta-oe/recipes-support/freerdp/freerdp3_3.24.2.bb b/meta-oe/recipes-support/freerdp/freerdp3_3.24.2.bb
index 493fa94c4c..7051cbeacc 100644
--- a/meta-oe/recipes-support/freerdp/freerdp3_3.24.2.bb
+++ b/meta-oe/recipes-support/freerdp/freerdp3_3.24.2.bb
@@ -23,6 +23,7 @@ SRC_URI = "git://github.com/FreeRDP/FreeRDP.git;nobranch=1;protocol=https;tag=${
file://CVE-2026-63652.patch \
file://CVE-2026-64620.patch \
file://CVE-2026-64621.patch \
+ file://CVE-2026-66401.patch \
"
next prev parent reply other threads:[~2026-09-09 8:32 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-09 8:31 [oe][meta-oe][wrynose][PATCH 1/15] freerdp3: patch CVE-2026-40254 ankur.tyagi85
2026-09-09 8:31 ` [oe][meta-oe][wrynose][PATCH 2/15] freerdp3: patch CVE-2026-55191 ankur.tyagi85
2026-09-09 8:31 ` [oe][meta-oe][wrynose][PATCH 3/15] freerdp3: patch CVE-2026-55192 ankur.tyagi85
2026-09-09 8:31 ` [oe][meta-oe][wrynose][PATCH 4/15] freerdp3: patch CVE-2026-55193 ankur.tyagi85
2026-09-09 8:31 ` [oe][meta-oe][wrynose][PATCH 5/15] freerdp3: patch CVE-2026-55194 ankur.tyagi85
2026-09-09 8:31 ` [oe][meta-oe][wrynose][PATCH 6/15] freerdp3: patch CVE-2026-55564 ankur.tyagi85
2026-09-09 8:31 ` [oe][meta-oe][wrynose][PATCH 7/15] freerdp3: patch CVE-2026-55648 ankur.tyagi85
2026-09-09 8:31 ` [oe][meta-oe][wrynose][PATCH 8/15] freerdp3: patch CVE-2026-63633 ankur.tyagi85
2026-09-09 8:31 ` [oe][meta-oe][wrynose][PATCH 9/15] freerdp3: patch CVE-2026-63652 ankur.tyagi85
2026-09-09 8:31 ` [oe][meta-oe][wrynose][PATCH 10/15] freerdp3: patch CVE-2026-64620 ankur.tyagi85
2026-09-09 8:31 ` [oe][meta-oe][wrynose][PATCH 11/15] freerdp3: patch CVE-2026-64621 ankur.tyagi85
2026-09-09 8:31 ` ankur.tyagi85 [this message]
2026-09-09 8:31 ` [oe][meta-oe][wrynose][PATCH 13/15] freerdp3: patch CVE-2026-67288 ankur.tyagi85
2026-09-09 8:31 ` [oe][meta-python][wrynose][PATCH 14/15] python3-gunicorn: mark CVE-2024-1135 patched ankur.tyagi85
2026-09-09 8:31 ` [oe][meta-python][wrynose][PATCH 15/15] python3-h11: mark CVE-2025-43859 patched ankur.tyagi85
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260909083140.2494932-12-ankur.tyagi85@gmail.com \
--to=ankur.tyagi85@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.