abseil-cpp: ignore CVE-2025-0838
PATCH 1/22 abseil-cpp: ignore CVE-2025-0838
From: Ankur Tyagi <[email protected]>
The commit[1] mentioned in the NVD[2] is part of the current version[3].
[1] https://github.com/abseil/abseil-cpp/commit/5a0e2cb5e3958dd90bb8569a2766622cb74d90c1
[2] https://nvd.nist.gov/vuln/detail/CVE-2025-0838
[3] https://github.com/abseil/abseil-cpp/commit/54fac219c4ef0bc379dfffb0b8098725d77ac81b
--- meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_20240116.3.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_20240116.3.bb +2 -0
@@ -53,3 +53,5 @@ python split_dynamic_packages() { ALLOW_EMPTY:${PN} = "1" BBCLASSEXTEND = "native nativesdk" + +CVE_STATUS[CVE-2025-0838] = "cpe-incorrect: The current version (20240116.3) is not affected."
PATCH 2/22 freerdp3: fix CVE-2026-25941
From: Ankur Tyagi <[email protected]>
Details: https://nvd.nist.gov/vuln/detail/CVE-2026-25941
--- .../freerdp/freerdp3/CVE-2026-25941.patch | 28 +++++++++++++++++++ .../recipes-support/freerdp/freerdp3_3.4.0.bb | 1 + 2 files changed, 29 insertions(+) create mode 100644 meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-25941.patch
meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-25941.patch new file +28 -0
@@ -0,0 +1,28 @@ +From 52f2ae7b2377efc80abb742e452a8565372fd29e Mon Sep 17 00:00:00 2001 +From: Armin Novak <[email protected]> +Date: Mon, 9 Feb 2026 13:18:51 +0100 +Subject: [PATCH] [channels,rdpgfx] check available stream length + +(cherry picked from commit 2e3b77e28ac6a398897d28ba464dcc5dfab9c9e2) + +CVE: CVE-2026-25941 +Upstream-Status: Backport [https://github.com/FreeRDP/FreeRDP/commit/2e3b77e28ac6a398897d28ba464dcc5dfab9c9e2] +Signed-off-by: Ankur Tyagi <[email protected]> +--- + channels/rdpgfx/client/rdpgfx_main.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/channels/rdpgfx/client/rdpgfx_main.c b/channels/rdpgfx/client/rdpgfx_main.c +index dd59c8b23..c08436b40 100644 +--- a/channels/rdpgfx/client/rdpgfx_main.c ++++ b/channels/rdpgfx/client/rdpgfx_main.c +@@ -1371,7 +1371,8 @@ static UINT rdpgfx_recv_wire_to_surface_2_pdu(GENERIC_CHANNEL_CALLBACK* callback + Stream_Read_UINT8(s, pdu.pixelFormat); /* pixelFormat (1 byte) */ + Stream_Read_UINT32(s, pdu.bitmapDataLength); /* bitmapDataLength (4 bytes) */ + pdu.bitmapData = Stream_Pointer(s); +- Stream_Seek(s, pdu.bitmapDataLength); ++ if (!Stream_SafeSeek(s, pdu.bitmapDataLength)) ++ return ERROR_INVALID_DATA; + + DEBUG_RDPGFX(gfx->log, + "RecvWireToSurface2Pdu: surfaceId: %" PRIu16 " codecId: %s (0x%04" PRIX16 ") "
meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb +1 -0
@@ -20,6 +20,7 @@ SRC_URI = "git://github.com/FreeRDP/FreeRDP.git;branch=master;protocol=https \ file://CVE-2024-32661.patch \ file://CVE-2024-32662.patch \ file://CVE-2025-4478.patch \ + file://CVE-2026-25941.patch \ " S = "${WORKDIR}/git"
PATCH 3/22 freerdp3: fix CVE-2026-33952
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Details: https://nvd.nist.gov/vuln/detail/CVE-2026-33952
--- .../freerdp/freerdp3/CVE-2026-33952.patch | 38 +++++++++++++++++++ .../recipes-support/freerdp/freerdp3_3.4.0.bb | 1 + 2 files changed, 39 insertions(+) create mode 100644 meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-33952.patch
meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-33952.patch new file +38 -0
@@ -0,0 +1,38 @@ +From 30e05bdaf4096decf4ce0b1c448cd03c6786323b Mon Sep 17 00:00:00 2001 +From: Armin Novak <[email protected]> +Date: Wed, 25 Mar 2026 09:04:43 +0100 +Subject: [PATCH] [core,gateway] Check rpcconn_common_hdr_t::auth_length is + valid + +Do sanity checks for rpcconn_common_hdr_t::auth_length read from +network, abort if the value is out of range. + +(cherry picked from commit 4ac0b6467d371a1ad47c1f751c5b305e4c068adb) + +CVE: CVE-2026-33952 +Upstream-Status: Backport [https://github.com/FreeRDP/FreeRDP/commit/4ac0b6467d371a1ad47c1f751c5b305e4c068adb] +Signed-off-by: Ankur Tyagi <[email protected]> +--- + libfreerdp/core/gateway/rts.c | 9 +++++++++ + 1 file changed, 9 insertions(+) + +diff --git a/libfreerdp/core/gateway/rts.c b/libfreerdp/core/gateway/rts.c +index 2ba757815..9702582da 100644 +--- a/libfreerdp/core/gateway/rts.c ++++ b/libfreerdp/core/gateway/rts.c +@@ -253,6 +253,15 @@ BOOL rts_read_common_pdu_header(wStream* s, rpcconn_common_hdr_t* header, BOOL i + header->frag_length, sizeof(rpcconn_common_hdr_t)); + return FALSE; + } ++ if (header->auth_length > header->frag_length - 8ull) ++ { ++ if (!ignoreErrors) ++ WLog_WARN(TAG, ++ "Invalid header->auth_length(%" PRIu16 ") > header->frag_length(%" PRIu16 ++ ") - 8ull", ++ header->frag_length, header->auth_length); ++ return FALSE; ++ } + + if (!ignoreErrors) + {
meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb +1 -0
@@ -21,6 +21,7 @@ SRC_URI = "git://github.com/FreeRDP/FreeRDP.git;branch=master;protocol=https \ file://CVE-2024-32662.patch \ file://CVE-2025-4478.patch \ file://CVE-2026-25941.patch \ + file://CVE-2026-33952.patch \ " S = "${WORKDIR}/git"
PATCH 4/22 freerdp3: fix CVE-2026-23948
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Details: https://nvd.nist.gov/vuln/detail/CVE-2026-23948
--- .../freerdp/freerdp3/CVE-2026-23948.patch | 55 +++++++++++++++++++ .../recipes-support/freerdp/freerdp3_3.4.0.bb | 1 + 2 files changed, 56 insertions(+) create mode 100644 meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-23948.patch
meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-23948.patch new file +55 -0
@@ -0,0 +1,55 @@ +From b5693e6cc688e7cd36016f53392998b1945ff7df Mon Sep 17 00:00:00 2001 +From: akallabeth <[email protected]> +Date: Mon, 19 Jan 2026 20:11:24 +0100 +Subject: [PATCH] [core,info] fix missing NULL check + +CVE: CVE-2026-23948 +Upstream-Status: Backport [https://github.com/FreeRDP/FreeRDP/commit/4d44e3c097656a8b9ec696353647b0888ca45860] +Signed-off-by: Ankur Tyagi <[email protected]> +--- + libfreerdp/core/info.c | 13 ++++++++----- + 1 file changed, 8 insertions(+), 5 deletions(-) + +diff --git a/libfreerdp/core/info.c b/libfreerdp/core/info.c +index 3395e4d2e..81e59a060 100644 +--- a/libfreerdp/core/info.c ++++ b/libfreerdp/core/info.c +@@ -1424,7 +1424,7 @@ static BOOL rdp_write_logon_info_v1(wStream* s, logon_info* info) + return TRUE; + } + +-static BOOL rdp_write_logon_info_v2(wStream* s, logon_info* info) ++static BOOL rdp_write_logon_info_v2(wStream* s, const logon_info* info) + { + size_t domainLen = 0; + size_t usernameLen = 0; +@@ -1439,11 +1439,13 @@ static BOOL rdp_write_logon_info_v2(wStream* s, logon_info* info) + */ + Stream_Write_UINT32(s, logonInfoV2Size); + Stream_Write_UINT32(s, info->sessionId); +- domainLen = strnlen(info->domain, UINT32_MAX); ++ if (info->domain) ++ domainLen = strnlen(info->domain, UINT32_MAX); + if (domainLen >= UINT32_MAX / sizeof(WCHAR)) + return FALSE; + Stream_Write_UINT32(s, (UINT32)(domainLen + 1) * sizeof(WCHAR)); +- usernameLen = strnlen(info->username, UINT32_MAX); ++ if (info->username) ++ usernameLen = strnlen(info->username, UINT32_MAX); + if (usernameLen >= UINT32_MAX / sizeof(WCHAR)) + return FALSE; + Stream_Write_UINT32(s, (UINT32)(usernameLen + 1) * sizeof(WCHAR)); +@@ -1510,10 +1512,11 @@ static BOOL rdp_write_logon_info_ex(wStream* s, logon_info_ex* info) + + BOOL rdp_send_save_session_info(rdpContext* context, UINT32 type, void* data) + { +- wStream* s = NULL; + BOOL status = 0; ++ ++ WINPR_ASSERT(context); + rdpRdp* rdp = context->rdp; +- s = rdp_data_pdu_init(rdp); ++ wStream* s = rdp_data_pdu_init(rdp); + + if (!s) + return FALSE;
meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb +1 -0
@@ -22,6 +22,7 @@ SRC_URI = "git://github.com/FreeRDP/FreeRDP.git;branch=master;protocol=https \ file://CVE-2025-4478.patch \ file://CVE-2026-25941.patch \ file://CVE-2026-33952.patch \ + file://CVE-2026-23948.patch \ " S = "${WORKDIR}/git"
PATCH 5/22 freerdp3: fix CVE-2026-24491
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Details: https://nvd.nist.gov/vuln/detail/CVE-2026-24491
--- .../freerdp/freerdp3/CVE-2026-24491.patch | 52 +++++++++++++++++++ .../recipes-support/freerdp/freerdp3_3.4.0.bb | 1 + 2 files changed, 53 insertions(+) create mode 100644 meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-24491.patch
meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-24491.patch new file +52 -0
@@ -0,0 +1,52 @@ +From ef948ef4659f59c10a71083fa8cb5d5da77e94a9 Mon Sep 17 00:00:00 2001 +From: akallabeth <[email protected]> +Date: Mon, 26 Jan 2026 10:06:29 +0100 +Subject: [PATCH] [channels,drdynvc] reset channel_callback before close + +The channel_callback usually frees up the memory of the callback. To +ensure that there is no access to any of the data structures in it +invalidate the pointer used to access it before a free. + +CVE: CVE-2026-24491 +Upstream-Status: Backport [https://github.com/FreeRDP/FreeRDP/commit/e02e052f6692550e539d10f99de9c35a23492db2] +Signed-off-by: Ankur Tyagi <[email protected]> +--- + channels/drdynvc/client/drdynvc_main.c | 6 ++---- + 1 file changed, 2 insertions(+), 4 deletions(-) + +diff --git a/channels/drdynvc/client/drdynvc_main.c b/channels/drdynvc/client/drdynvc_main.c +index 0b85c0fe3..64c83333a 100644 +--- a/channels/drdynvc/client/drdynvc_main.c ++++ b/channels/drdynvc/client/drdynvc_main.c +@@ -485,14 +485,13 @@ static UINT dvcman_channel_close(DVCMAN_CHANNEL* channel, BOOL perRequest, BOOL + channel->state = DVC_CHANNEL_CLOSED; + + IWTSVirtualChannelCallback* cb = channel->channel_callback; ++ channel->channel_callback = NULL; + if (cb) + { + check_open_close_receive(channel); + IFCALL(cb->OnClose, cb); + } + +- channel->channel_callback = NULL; +- + if (channel->dvcman && channel->dvcman->drdynvc) + { + if (context) +@@ -763,14 +762,13 @@ out: + */ + static UINT dvcman_open_channel(drdynvcPlugin* drdynvc, DVCMAN_CHANNEL* channel) + { +- IWTSVirtualChannelCallback* pCallback = NULL; + UINT error = CHANNEL_RC_OK; + + WINPR_ASSERT(drdynvc); + WINPR_ASSERT(channel); + if (channel->state == DVC_CHANNEL_RUNNING) + { +- pCallback = channel->channel_callback; ++ IWTSVirtualChannelCallback* pCallback = channel->channel_callback; + + if (pCallback->OnOpen) + {
meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb +1 -0
@@ -23,6 +23,7 @@ SRC_URI = "git://github.com/FreeRDP/FreeRDP.git;branch=master;protocol=https \ file://CVE-2026-25941.patch \ file://CVE-2026-33952.patch \ file://CVE-2026-23948.patch \ + file://CVE-2026-24491.patch \ " S = "${WORKDIR}/git"
PATCH 6/22 freerdp3: fix CVE-2026-24675
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Details: https://nvd.nist.gov/vuln/detail/CVE-2026-24675
--- .../freerdp/freerdp3/CVE-2026-24675.patch | 32 +++++++++++++++++++ .../recipes-support/freerdp/freerdp3_3.4.0.bb | 1 + 2 files changed, 33 insertions(+) create mode 100644 meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-24675.patch
meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-24675.patch new file +32 -0
@@ -0,0 +1,32 @@ +From be9e04d4060bd826eeb94dc0689d261391f74722 Mon Sep 17 00:00:00 2001 +From: akallabeth <[email protected]> +Date: Mon, 26 Jan 2026 11:54:56 +0100 +Subject: [PATCH] [channels,urbdrc] do not free MsConfig on failure + +let the channel handle it later. + +(cherry picked from commit d676518809c319eec15911c705c13536036af2ae) + +CVE: CVE-2026-24675 +Upstream-Status: Backport [https://github.com/FreeRDP/FreeRDP/commit/d676518809c319eec15911c705c13536036af2ae] +Signed-off-by: Ankur Tyagi <[email protected]> +--- + channels/urbdrc/client/data_transfer.c | 4 +--- + 1 file changed, 1 insertion(+), 3 deletions(-) + +diff --git a/channels/urbdrc/client/data_transfer.c b/channels/urbdrc/client/data_transfer.c +index 7a7e5a2b4..074a8c05b 100644 +--- a/channels/urbdrc/client/data_transfer.c ++++ b/channels/urbdrc/client/data_transfer.c +@@ -581,10 +581,8 @@ static UINT urb_select_interface(IUDEVICE* pdev, GENERIC_CHANNEL_CALLBACK* callb + MsConfig = pdev->get_MsConfig(pdev); + InterfaceNumber = MsInterface->InterfaceNumber; + if (!msusb_msinterface_replace(MsConfig, InterfaceNumber, MsInterface)) +- { +- msusb_msconfig_free(MsConfig); + return ERROR_BAD_CONFIGURATION; +- } ++ + /* complete configuration setup */ + if (!pdev->complete_msconfig_setup(pdev, MsConfig)) + {
meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb +1 -0
@@ -24,6 +24,7 @@ SRC_URI = "git://github.com/FreeRDP/FreeRDP.git;branch=master;protocol=https \ file://CVE-2026-33952.patch \ file://CVE-2026-23948.patch \ file://CVE-2026-24491.patch \ + file://CVE-2026-24675.patch \ " S = "${WORKDIR}/git"
PATCH 7/22 freerdp3: fix CVE-2026-24676
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Details: https://nvd.nist.gov/vuln/detail/CVE-2026-24676
--- .../freerdp/freerdp3/CVE-2026-24676.patch | 34 +++++++++++++++++++ .../recipes-support/freerdp/freerdp3_3.4.0.bb | 1 + 2 files changed, 35 insertions(+) create mode 100644 meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-24676.patch
meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-24676.patch new file +34 -0
@@ -0,0 +1,34 @@ +From 0a2248a4adbee77122270062bebe00143d3ee96a Mon Sep 17 00:00:00 2001 +From: akallabeth <[email protected]> +Date: Mon, 26 Jan 2026 10:20:23 +0100 +Subject: [PATCH] [channels,audin] reset audin->format + +Whenever the underlying structure changes reset the pointer to NULL + +CVE: CVE-2026-24676 +Upstream-Status: Backport [https://github.com/FreeRDP/FreeRDP/commit/026b81ae5831ac1598d8f7371e0d0996fac7db00] +Signed-off-by: Ankur Tyagi <[email protected]> +--- + channels/audin/client/audin_main.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/channels/audin/client/audin_main.c b/channels/audin/client/audin_main.c +index 1578d26ac..2c91d9f60 100644 +--- a/channels/audin/client/audin_main.c ++++ b/channels/audin/client/audin_main.c +@@ -206,6 +206,7 @@ static UINT audin_process_formats(AUDIN_PLUGIN* audin, AUDIN_CHANNEL_CALLBACK* c + } + + Stream_Seek_UINT32(s); /* cbSizeFormatsPacket */ ++ audin->format = NULL; + callback->formats = audio_formats_new(NumFormats); + + if (!callback->formats) +@@ -280,6 +281,7 @@ out: + + if (error != CHANNEL_RC_OK) + { ++ audin->format = NULL; + audio_formats_free(callback->formats, NumFormats); + callback->formats = NULL; + }
meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb +1 -0
@@ -25,6 +25,7 @@ SRC_URI = "git://github.com/FreeRDP/FreeRDP.git;branch=master;protocol=https \ file://CVE-2026-23948.patch \ file://CVE-2026-24491.patch \ file://CVE-2026-24675.patch \ + file://CVE-2026-24676.patch \ " S = "${WORKDIR}/git"
PATCH 8/22 freerdp3: ignore CVE-2026-24677 and CVE-2026-24678
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Both vulnerabilities exists in the functions which were added in version 3.6.0[1]
Details:
https://nvd.nist.gov/vuln/detail/CVE-2026-24677
https://nvd.nist.gov/vuln/detail/CVE-2026-24678
[1] https://github.com/FreeRDP/FreeRDP/commit/a81d111ac4023d31e10ebf579fa34c93bf56bce5
--- meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb +2 -0
@@ -81,3 +81,5 @@ do_configure:append() { FILES:${PN} += "${datadir}" CVE_STATUS[CVE-2025-68118] = "not-applicable-platform: only affects Windows" +CVE_STATUS[CVE-2026-24677] = "cpe-incorrect: The current version (3.4.0) is not affected." +CVE_STATUS[CVE-2026-24678] = "cpe-incorrect: The current version (3.4.0) is not affected."
PATCH 9/22 freerdp3: fix CVE-2026-24679
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Details: https://nvd.nist.gov/vuln/detail/CVE-2026-24679
--- .../freerdp/freerdp3/CVE-2026-24679.patch | 44 +++++++++++++++++++ .../recipes-support/freerdp/freerdp3_3.4.0.bb | 1 + 2 files changed, 45 insertions(+) create mode 100644 meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-24679.patch
meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-24679.patch new file +44 -0
@@ -0,0 +1,44 @@ +From d128bdb4131634a7f877500da9fee4fee99bf019 Mon Sep 17 00:00:00 2001 +From: akallabeth <[email protected]> +Date: Mon, 26 Jan 2026 10:59:39 +0100 +Subject: [PATCH] [channels,urbdrc] ensure InterfaceNumber is within range + +(cherry picked from commit 2d563a50be17c1b407ca448b1321378c0726dd31) + +CVE: CVE-2026-24679 +Upstream-Status: Backport [https://github.com/FreeRDP/FreeRDP/commit/2d563a50be17c1b407ca448b1321378c0726dd31] +Signed-off-by: Ankur Tyagi <[email protected]> +--- + channels/urbdrc/client/libusb/libusb_udevice.c | 12 ++++++------ + 1 file changed, 6 insertions(+), 6 deletions(-) + +diff --git a/channels/urbdrc/client/libusb/libusb_udevice.c b/channels/urbdrc/client/libusb/libusb_udevice.c +index c226eb806..ea12e55e0 100644 +--- a/channels/urbdrc/client/libusb/libusb_udevice.c ++++ b/channels/urbdrc/client/libusb/libusb_udevice.c +@@ -532,19 +532,19 @@ static int libusb_udev_select_interface(IUDEVICE* idev, BYTE InterfaceNumber, BY + int error = 0; + int diff = 0; + UDEVICE* pdev = (UDEVICE*)idev; +- URBDRC_PLUGIN* urbdrc = NULL; +- MSUSB_CONFIG_DESCRIPTOR* MsConfig = NULL; +- MSUSB_INTERFACE_DESCRIPTOR** MsInterfaces = NULL; + + if (!pdev || !pdev->urbdrc) + return -1; + +- urbdrc = pdev->urbdrc; +- MsConfig = pdev->MsConfig; ++ URBDRC_PLUGIN* urbdrc = pdev->urbdrc; ++ MSUSB_CONFIG_DESCRIPTOR* MsConfig = pdev->MsConfig; + + if (MsConfig) + { +- MsInterfaces = MsConfig->MsInterfaces; ++ if (InterfaceNumber >= MsConfig->NumInterfaces) ++ return -2; ++ ++ MSUSB_INTERFACE_DESCRIPTOR** MsInterfaces = MsConfig->MsInterfaces; + if (MsInterfaces) + { + WLog_Print(urbdrc->log, WLOG_INFO,
meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb +1 -0
@@ -26,6 +26,7 @@ SRC_URI = "git://github.com/FreeRDP/FreeRDP.git;branch=master;protocol=https \ file://CVE-2026-24491.patch \ file://CVE-2026-24675.patch \ file://CVE-2026-24676.patch \ + file://CVE-2026-24679.patch \ " S = "${WORKDIR}/git"
PATCH 10/22 freerdp3: fix CVE-2026-24680 and CVE-2026-27950
In reply to [email protected]From: Ankur Tyagi <[email protected]>
There was only SDL2 client until commit[1] created SDL2 and SDL3 clients from version 3.6.0 onwards.
[1] https://github.com/FreeRDP/FreeRDP/commit/8281186a6d9dad20e8345d85a1732e2974636555
Details:
https://nvd.nist.gov/vuln/detail/CVE-2026-24680
https://nvd.nist.gov/vuln/detail/CVE-2026-27950
--- .../CVE-2026-24680_CVE-2026-27950.patch | 24 +++++++++++++++++++ .../recipes-support/freerdp/freerdp3_3.4.0.bb | 1 + 2 files changed, 25 insertions(+) create mode 100644 meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-24680_CVE-2026-27950.patch
meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-24680_CVE-2026-27950.patch new file +24 -0
@@ -0,0 +1,24 @@ +From a2e077bc8dea8a7d1b16b98f31b6f6fbc00c0c24 Mon Sep 17 00:00:00 2001 +From: akallabeth <[email protected]> +Date: Mon, 26 Jan 2026 11:01:17 +0100 +Subject: [PATCH] [client,sdl] reset pointer after memory release + +CVE: CVE-2026-24680 CVE-2026-27950 +Upstream-Status: Backport [https://github.com/FreeRDP/FreeRDP/commit/c42ecbd183b001e76bfc3614cddfad0034acc758] +Signed-off-by: Ankur Tyagi <[email protected]> +--- + client/SDL/sdl_pointer.cpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/client/SDL/sdl_pointer.cpp b/client/SDL/sdl_pointer.cpp +index ad8a4f316..a9203a20b 100644 +--- a/client/SDL/sdl_pointer.cpp ++++ b/client/SDL/sdl_pointer.cpp +@@ -63,6 +63,7 @@ static BOOL sdl_Pointer_New(rdpContext* context, rdpPointer* pointer) + &context->gdi->palette)) + { + winpr_aligned_free(ptr->data); ++ ptr->data = nullptr; + return FALSE; + } +
meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb +1 -0
@@ -27,6 +27,7 @@ SRC_URI = "git://github.com/FreeRDP/FreeRDP.git;branch=master;protocol=https \ file://CVE-2026-24675.patch \ file://CVE-2026-24676.patch \ file://CVE-2026-24679.patch \ + file://CVE-2026-24680_CVE-2026-27950.patch \ " S = "${WORKDIR}/git"
PATCH 11/22 freerdp3: fix CVE-2026-24681
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Details: https://nvd.nist.gov/vuln/detail/CVE-2026-24681
--- .../freerdp/freerdp3/CVE-2026-24681.patch | 26 +++++++++++++++++++ .../recipes-support/freerdp/freerdp3_3.4.0.bb | 1 + 2 files changed, 27 insertions(+) create mode 100644 meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-24681.patch
meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-24681.patch new file +26 -0
@@ -0,0 +1,26 @@ +From 00579b7be58db6dc7bf70db4a005cfe9a9e73131 Mon Sep 17 00:00:00 2001 +From: akallabeth <[email protected]> +Date: Mon, 26 Jan 2026 11:07:25 +0100 +Subject: [PATCH] [channels,urbdrc] cancel all usb transfers on channel close + +(cherry picked from commit 414f701464929c217f2509bcbd6d2c1f00f7ed73) + +CVE: CVE-2026-24681 +Upstream-Status: Backport [https://github.com/FreeRDP/FreeRDP/commit/414f701464929c217f2509bcbd6d2c1f00f7ed73] +Signed-off-by: Ankur Tyagi <[email protected]> +--- + channels/urbdrc/client/libusb/libusb_udevice.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/channels/urbdrc/client/libusb/libusb_udevice.c b/channels/urbdrc/client/libusb/libusb_udevice.c +index ea12e55e0..0d0f54f0a 100644 +--- a/channels/urbdrc/client/libusb/libusb_udevice.c ++++ b/channels/urbdrc/client/libusb/libusb_udevice.c +@@ -1125,6 +1125,7 @@ static void libusb_udev_mark_channel_closed(IUDEVICE* idev) + const uint8_t devNr = idev->get_dev_number(idev); + + pdev->status |= URBDRC_DEVICE_CHANNEL_CLOSED; ++ pdev->iface.cancel_all_transfer_request(&pdev->iface); + urbdrc->udevman->unregister_udevice(urbdrc->udevman, busNr, devNr); + } + }
meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb +1 -0
@@ -28,6 +28,7 @@ SRC_URI = "git://github.com/FreeRDP/FreeRDP.git;branch=master;protocol=https \ file://CVE-2026-24676.patch \ file://CVE-2026-24679.patch \ file://CVE-2026-24680_CVE-2026-27950.patch \ + file://CVE-2026-24681.patch \ " S = "${WORKDIR}/git"
PATCH 12/22 freerdp3: fix CVE-2026-24682
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Details: https://nvd.nist.gov/vuln/detail/CVE-2026-24682
--- .../freerdp/freerdp3/CVE-2026-24682.patch | 31 +++++++++++++++++++ .../recipes-support/freerdp/freerdp3_3.4.0.bb | 1 + 2 files changed, 32 insertions(+) create mode 100644 meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-24682.patch
meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-24682.patch new file +31 -0
@@ -0,0 +1,31 @@ +From 603f5b79dc142626baed8df6b9abb23d390dfc4e Mon Sep 17 00:00:00 2001 +From: akallabeth <[email protected]> +Date: Mon, 26 Jan 2026 10:14:08 +0100 +Subject: [PATCH] [channels,audin] fix audin_server_recv_formats cleanup + +(cherry picked from commit 1c5c74223179d425a1ce6dbbb6a3dd2a958b7aee) + +CVE: CVE-2026-24682 +Upstream-Status: Backport [https://github.com/FreeRDP/FreeRDP/commit/1c5c74223179d425a1ce6dbbb6a3dd2a958b7aee] +Signed-off-by: Ankur Tyagi <[email protected]> +--- + channels/audin/server/audin.c | 6 +----- + 1 file changed, 1 insertion(+), 5 deletions(-) + +diff --git a/channels/audin/server/audin.c b/channels/audin/server/audin.c +index d67937ab7..f0bf96464 100644 +--- a/channels/audin/server/audin.c ++++ b/channels/audin/server/audin.c +@@ -128,11 +128,7 @@ static UINT audin_server_recv_formats(audin_server_context* context, wStream* s, + AUDIO_FORMAT* format = &pdu.SoundFormats[i]; + + if (!audio_format_read(s, format)) +- { +- WLog_Print(audin->log, WLOG_ERROR, "Failed to read audio format"); +- audio_formats_free(pdu.SoundFormats, i + i); +- return ERROR_INVALID_DATA; +- } ++ goto fail; + + audio_format_print(audin->log, WLOG_DEBUG, format); + }
meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb +1 -0
@@ -29,6 +29,7 @@ SRC_URI = "git://github.com/FreeRDP/FreeRDP.git;branch=master;protocol=https \ file://CVE-2026-24679.patch \ file://CVE-2026-24680_CVE-2026-27950.patch \ file://CVE-2026-24681.patch \ + file://CVE-2026-24682.patch \ " S = "${WORKDIR}/git"
PATCH 13/22 freerdp3: fix CVE-2026-24683
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Details: https://nvd.nist.gov/vuln/detail/CVE-2026-24683
--- .../freerdp/freerdp3/CVE-2026-24683.patch | 114 ++++++++++++++++++ .../recipes-support/freerdp/freerdp3_3.4.0.bb | 1 + 2 files changed, 115 insertions(+) create mode 100644 meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-24683.patch
meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-24683.patch new file +114 -0
@@ -0,0 +1,114 @@ +From da05a4039644b0821c0a61806d40688ac08f3ce0 Mon Sep 17 00:00:00 2001 +From: akallabeth <[email protected]> +Date: Mon, 26 Jan 2026 12:08:48 +0100 +Subject: [PATCH] [channels,ainput] lock context when updating listener + +(cherry picked from commit d9ca272dce7a776ab475e9b1a8e8c3d2968c8486) + +CVE: CVE-2026-24683 +Upstream-Status: Backport [https://github.com/FreeRDP/FreeRDP/commit/d9ca272dce7a776ab475e9b1a8e8c3d2968c8486] +Signed-off-by: Ankur Tyagi <[email protected]> +--- + channels/ainput/client/ainput_main.c | 36 ++++++++++++++++++++-------- + 1 file changed, 26 insertions(+), 10 deletions(-) + +diff --git a/channels/ainput/client/ainput_main.c b/channels/ainput/client/ainput_main.c +index 1a2128dcc..5f66cf90e 100644 +--- a/channels/ainput/client/ainput_main.c ++++ b/channels/ainput/client/ainput_main.c +@@ -45,6 +45,7 @@ struct AINPUT_PLUGIN_ + AInputClientContext* context; + UINT32 MajorVersion; + UINT32 MinorVersion; ++ CRITICAL_SECTION lock; + }; + + /** +@@ -85,18 +86,15 @@ static UINT ainput_on_data_received(IWTSVirtualChannelCallback* pChannelCallback + + static UINT ainput_send_input_event(AInputClientContext* context, UINT64 flags, INT32 x, INT32 y) + { +- AINPUT_PLUGIN* ainput = NULL; +- GENERIC_CHANNEL_CALLBACK* callback = NULL; + BYTE buffer[32] = { 0 }; +- UINT64 time = 0; + wStream sbuffer = { 0 }; + wStream* s = Stream_StaticInit(&sbuffer, buffer, sizeof(buffer)); + + WINPR_ASSERT(s); + WINPR_ASSERT(context); + +- time = GetTickCount64(); +- ainput = (AINPUT_PLUGIN*)context->handle; ++ const UINT64 time = GetTickCount64(); ++ AINPUT_PLUGIN* ainput = (AINPUT_PLUGIN*)context->handle; + WINPR_ASSERT(ainput); + + if (ainput->MajorVersion != AINPUT_VERSION_MAJOR) +@@ -105,8 +103,6 @@ static UINT ainput_send_input_event(AInputClientContext* context, UINT64 flags, + ainput->MajorVersion, ainput->MinorVersion); + return CHANNEL_RC_UNSUPPORTED_VERSION; + } +- callback = ainput->base.listener_callback->channel_callback; +- WINPR_ASSERT(callback); + + { + char ebuffer[128] = { 0 }; +@@ -125,10 +121,15 @@ static UINT ainput_send_input_event(AInputClientContext* context, UINT64 flags, + Stream_SealLength(s); + + /* ainput back what we have received. AINPUT does not have any message IDs. */ ++ EnterCriticalSection(&ainput->lock); ++ GENERIC_CHANNEL_CALLBACK* callback = ainput->base.listener_callback->channel_callback; ++ WINPR_ASSERT(callback); + WINPR_ASSERT(callback->channel); + WINPR_ASSERT(callback->channel->Write); +- return callback->channel->Write(callback->channel, (ULONG)Stream_Length(s), Stream_Buffer(s), +- NULL); ++ const UINT rc = callback->channel->Write(callback->channel, (ULONG)Stream_Length(s), ++ Stream_Buffer(s), NULL); ++ LeaveCriticalSection(&ainput->lock); ++ return rc; + } + + /** +@@ -140,8 +141,16 @@ static UINT ainput_on_close(IWTSVirtualChannelCallback* pChannelCallback) + { + GENERIC_CHANNEL_CALLBACK* callback = (GENERIC_CHANNEL_CALLBACK*)pChannelCallback; + +- free(callback); ++ if (callback) ++ { ++ AINPUT_PLUGIN* ainput = (AINPUT_PLUGIN*)callback->plugin; ++ WINPR_ASSERT(ainput); + ++ /* Lock here to ensure that no ainput_send_input_event is in progress. */ ++ EnterCriticalSection(&ainput->lock); ++ free(callback); ++ LeaveCriticalSection(&ainput->lock); ++ } + return CHANNEL_RC_OK; + } + +@@ -155,14 +164,21 @@ static UINT init_plugin_cb(GENERIC_DYNVC_PLUGIN* base, rdpContext* rcontext, rdp + context->handle = (void*)base; + context->AInputSendInputEvent = ainput_send_input_event; + ++ InitializeCriticalSection(&ainput->lock); ++ ++ EnterCriticalSection(&ainput->lock); + ainput->context = context; + ainput->base.iface.pInterface = context; ++ LeaveCriticalSection(&ainput->lock); + return CHANNEL_RC_OK; + } + + static void terminate_plugin_cb(GENERIC_DYNVC_PLUGIN* base) + { + AINPUT_PLUGIN* ainput = (AINPUT_PLUGIN*)base; ++ WINPR_ASSERT(ainput); ++ ++ DeleteCriticalSection(&ainput->lock); + free(ainput->context); + } +
meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb +1 -0
@@ -30,6 +30,7 @@ SRC_URI = "git://github.com/FreeRDP/FreeRDP.git;branch=master;protocol=https \ file://CVE-2026-24680_CVE-2026-27950.patch \ file://CVE-2026-24681.patch \ file://CVE-2026-24682.patch \ + file://CVE-2026-24683.patch \ " S = "${WORKDIR}/git"
PATCH 14/22 freerdp3: fix CVE-2026-29774
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Details: https://nvd.nist.gov/vuln/detail/CVE-2026-29774
--- .../freerdp/freerdp3/CVE-2026-29774.patch | 75 +++++++++++++++++++ .../recipes-support/freerdp/freerdp3_3.4.0.bb | 1 + 2 files changed, 76 insertions(+) create mode 100644 meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-29774.patch
meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-29774.patch new file +75 -0
@@ -0,0 +1,75 @@ +From b590224c94effa3104a2db98a59478a9c4ed6f02 Mon Sep 17 00:00:00 2001 +From: Armin Novak <[email protected]> +Date: Sat, 28 Feb 2026 11:38:23 +0100 +Subject: [PATCH] [codec,h264] validate rectangles before use + +CVE: CVE-2026-29774 +Upstream-Status: Backport [https://github.com/FreeRDP/FreeRDP/commit/6482b7a92fff3959582cef052d1967ad6bde3738] +Signed-off-by: Ankur Tyagi <[email protected]> +--- + libfreerdp/codec/h264.c | 38 ++++++++++++++++++++++++++++++++++++++ + 1 file changed, 38 insertions(+) + +diff --git a/libfreerdp/codec/h264.c b/libfreerdp/codec/h264.c +index 718bd2ccf..13d592600 100644 +--- a/libfreerdp/codec/h264.c ++++ b/libfreerdp/codec/h264.c +@@ -91,6 +91,36 @@ BOOL avc420_ensure_buffer(H264_CONTEXT* h264, UINT32 stride, UINT32 width, UINT3 + return TRUE; + } + ++static BOOL isRectValid(UINT32 width, UINT32 height, const RECTANGLE_16* rect) ++{ ++ WINPR_ASSERT(rect); ++ if (rect->left > width) ++ return FALSE; ++ if (rect->right > width) ++ return FALSE; ++ if (rect->left >= rect->right) ++ return FALSE; ++ if (rect->top > height) ++ return FALSE; ++ if (rect->bottom > height) ++ return FALSE; ++ if (rect->top >= rect->bottom) ++ return FALSE; ++ return TRUE; ++} ++ ++static BOOL areRectsValid(UINT32 width, UINT32 height, const RECTANGLE_16* rects, UINT32 count) ++{ ++ WINPR_ASSERT(rects || (count == 0)); ++ for (size_t x = 0; x < count; x++) ++ { ++ const RECTANGLE_16* rect = &rects[x]; ++ if (!isRectValid(width, height, rect)) ++ return FALSE; ++ } ++ return TRUE; ++} ++ + INT32 avc420_decompress(H264_CONTEXT* h264, const BYTE* pSrcData, UINT32 SrcSize, BYTE* pDstData, + DWORD DstFormat, UINT32 nDstStep, UINT32 nDstWidth, UINT32 nDstHeight, + const RECTANGLE_16* regionRects, UINT32 numRegionRects) +@@ -101,6 +131,9 @@ INT32 avc420_decompress(H264_CONTEXT* h264, const BYTE* pSrcData, UINT32 SrcSize + if (!h264 || h264->Compressor) + return -1001; + ++ if (!areRectsValid(nDstWidth, nDstHeight, regionRects, numRegionRects)) ++ return -1013; ++ + status = h264->subsystem->Decompress(h264, pSrcData, SrcSize); + + if (status == 0) +@@ -523,6 +556,11 @@ INT32 avc444_decompress(H264_CONTEXT* h264, BYTE op, const RECTANGLE_16* regionR + if (!h264 || !regionRects || !pSrcData || !pDstData || h264->Compressor) + return -1001; + ++ if (!areRectsValid(nDstWidth, nDstHeight, regionRects, numRegionRects)) ++ return -1013; ++ if (!areRectsValid(nDstWidth, nDstHeight, auxRegionRects, numAuxRegionRect)) ++ return -1014; ++ + switch (op) + { + case 0: /* YUV420 in stream 1
meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb +1 -0
@@ -31,6 +31,7 @@ SRC_URI = "git://github.com/FreeRDP/FreeRDP.git;branch=master;protocol=https \ file://CVE-2026-24681.patch \ file://CVE-2026-24682.patch \ file://CVE-2026-24683.patch \ + file://CVE-2026-29774.patch \ " S = "${WORKDIR}/git"
PATCH 15/22 freerdp3: fix CVE-2026-29775
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Details: https://nvd.nist.gov/vuln/detail/CVE-2026-29775
--- .../freerdp/freerdp3/CVE-2026-29775.patch | 30 +++++++++++++++++++ .../recipes-support/freerdp/freerdp3_3.4.0.bb | 1 + 2 files changed, 31 insertions(+) create mode 100644 meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-29775.patch
meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-29775.patch new file +30 -0
@@ -0,0 +1,30 @@ +From e4bfcb3197787e7af4246366b643c16de99f56a2 Mon Sep 17 00:00:00 2001 +From: Armin Novak <[email protected]> +Date: Sat, 28 Feb 2026 11:38:55 +0100 +Subject: [PATCH] [cache,bitmap] overallocate bitmap cache + +(cherry picked from commit ffad58fd2b329efd81a3239e9d7e3c927b8e503f) + +CVE: CVE-2026-29775 +Upstream-Status: Backport [https://github.com/FreeRDP/FreeRDP/commit/ffad58fd2b329efd81a3239e9d7e3c927b8e503f] +Signed-off-by: Ankur Tyagi <[email protected]> +--- + libfreerdp/cache/bitmap.c | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/libfreerdp/cache/bitmap.c b/libfreerdp/cache/bitmap.c +index dd5ae1d71..0d694dd3f 100644 +--- a/libfreerdp/cache/bitmap.c ++++ b/libfreerdp/cache/bitmap.c +@@ -364,7 +364,10 @@ rdpBitmapCache* bitmap_cache_new(rdpContext* context) + const UINT32 BitmapCacheV2NumCells = + freerdp_settings_get_uint32(settings, FreeRDP_BitmapCacheV2NumCells); + bitmapCache->context = context; +- bitmapCache->cells = (BITMAP_V2_CELL*)calloc(BitmapCacheV2NumCells, sizeof(BITMAP_V2_CELL)); ++ ++ /* overallocate by 1. older RDP servers do send a off by 1 cache index. */ ++ bitmapCache->cells = ++ (BITMAP_V2_CELL*)calloc(BitmapCacheV2NumCells + 1ull, sizeof(BITMAP_V2_CELL)); + + if (!bitmapCache->cells) + goto fail;
meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb +1 -0
@@ -32,6 +32,7 @@ SRC_URI = "git://github.com/FreeRDP/FreeRDP.git;branch=master;protocol=https \ file://CVE-2026-24682.patch \ file://CVE-2026-24683.patch \ file://CVE-2026-29774.patch \ + file://CVE-2026-29775.patch \ " S = "${WORKDIR}/git"
PATCH 16/22 freerdp3: fix CVE-2026-29776
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Details: https://nvd.nist.gov/vuln/detail/CVE-2026-29776
--- .../freerdp/freerdp3/CVE-2026-29776.patch | 30 +++++++++++++++++++ .../recipes-support/freerdp/freerdp3_3.4.0.bb | 1 + 2 files changed, 31 insertions(+) create mode 100644 meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-29776.patch
meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-29776.patch new file +30 -0
@@ -0,0 +1,30 @@ +From 145c0c5f048894e4a7d09a4465eab7551f035bb0 Mon Sep 17 00:00:00 2001 +From: Armin Novak <[email protected]> +Date: Tue, 3 Mar 2026 13:58:09 +0100 +Subject: [PATCH] [core,orders] improve input validation + +check length before subtracting. Might underflow and be cought by the +next check, but lets be strict. + +(cherry picked from commit a9e0abf2eac8c2e370fa155bf1abb9d044c0ca8a) + +CVE: CVE-2026-29776 +Upstream-Status: Backport [https://github.com/FreeRDP/FreeRDP/commit/a9e0abf2eac8c2e370fa155bf1abb9d044c0ca8a] +Signed-off-by: Ankur Tyagi <[email protected]> +--- + libfreerdp/core/orders.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/libfreerdp/core/orders.c b/libfreerdp/core/orders.c +index 855b700ac..a9d779418 100644 +--- a/libfreerdp/core/orders.c ++++ b/libfreerdp/core/orders.c +@@ -2214,6 +2214,8 @@ static CACHE_BITMAP_ORDER* update_read_cache_bitmap_order(rdpUpdate* update, wSt + goto fail; + + Stream_Read(s, bitmapComprHdr, 8); /* bitmapComprHdr (8 bytes) */ ++ if (cache_bitmap->bitmapLength < 8) ++ goto fail; + cache_bitmap->bitmapLength -= 8; + } + }
meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb +1 -0
@@ -33,6 +33,7 @@ SRC_URI = "git://github.com/FreeRDP/FreeRDP.git;branch=master;protocol=https \ file://CVE-2026-24683.patch \ file://CVE-2026-29774.patch \ file://CVE-2026-29775.patch \ + file://CVE-2026-29776.patch \ " S = "${WORKDIR}/git"
PATCH 17/22 freerdp3: fix CVE-2026-31806
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Details: https://nvd.nist.gov/vuln/detail/CVE-2026-31806
--- .../freerdp/freerdp3/CVE-2026-31806.patch | 36 +++++++++++++++++++ .../recipes-support/freerdp/freerdp3_3.4.0.bb | 1 + 2 files changed, 37 insertions(+) create mode 100644 meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-31806.patch
meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-31806.patch new file +36 -0
@@ -0,0 +1,36 @@ +From 9bf461ad116d081134adf37da9d6faa9459d1ad6 Mon Sep 17 00:00:00 2001 +From: Armin Novak <[email protected]> +Date: Mon, 9 Mar 2026 08:11:19 +0100 +Subject: [PATCH] [codec,nsc] limit copy area in nsc_process_message + +the rectangle decoded might not fit into the destination buffer. Limit +width and height of the area to copy to the one fitting. + +CVE: CVE-2026-31806 +Upstream-Status: Backport [https://github.com/FreeRDP/FreeRDP/commit/83d9aedea278a74af3e490ff5eeb889c016dbb2b] +Signed-off-by: Ankur Tyagi <[email protected]> +--- + libfreerdp/codec/nsc.c | 10 +++++++++- + 1 file changed, 9 insertions(+), 1 deletion(-) + +diff --git a/libfreerdp/codec/nsc.c b/libfreerdp/codec/nsc.c +index c2d92e48c..1cee9918d 100644 +--- a/libfreerdp/codec/nsc.c ++++ b/libfreerdp/codec/nsc.c +@@ -494,7 +494,15 @@ BOOL nsc_process_message(NSC_CONTEXT* context, UINT16 bpp, UINT32 width, UINT32 + return FALSE; + } + +- if (!freerdp_image_copy(pDstData, DstFormat, nDstStride, nXDst, nYDst, width, height, ++ uint32_t cwidth = width; ++ if (1ull * nXDst + width > nWidth) ++ cwidth = nWidth - nXDst; ++ ++ uint32_t cheight = height; ++ if (1ull * nYDst + height > nHeight) ++ cheight = nHeight - nYDst; ++ ++ if (!freerdp_image_copy(pDstData, DstFormat, nDstStride, nXDst, nYDst, cwidth, cheight, + context->BitmapData, PIXEL_FORMAT_BGRA32, 0, 0, 0, NULL, flip)) + return FALSE; +
meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb +1 -0
@@ -34,6 +34,7 @@ SRC_URI = "git://github.com/FreeRDP/FreeRDP.git;branch=master;protocol=https \ file://CVE-2026-29774.patch \ file://CVE-2026-29775.patch \ file://CVE-2026-29776.patch \ + file://CVE-2026-31806.patch \ " S = "${WORKDIR}/git"
PATCH 18/22 freerdp3: fix CVE-2026-31897
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Details: https://nvd.nist.gov/vuln/detail/CVE-2026-31897
--- .../freerdp/freerdp3/CVE-2026-31897.patch | 28 +++++++++++++++++++ .../recipes-support/freerdp/freerdp3_3.4.0.bb | 1 + 2 files changed, 29 insertions(+) create mode 100644 meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-31897.patch
meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-31897.patch new file +28 -0
@@ -0,0 +1,28 @@ +From 8a03413b6b154100076bfedf6388a348189a6791 Mon Sep 17 00:00:00 2001 +From: Armin Novak <[email protected]> +Date: Tue, 10 Mar 2026 09:17:23 +0100 +Subject: [PATCH] [codec,planar] add early length check to avoid oob read + +CVE: CVE-2026-31897 +Upstream-Status: Backport [https://github.com/FreeRDP/FreeRDP/commit/cd27c8faca0eeb0d4309cc5837dfdf3c42eba4e7] +Signed-off-by: Ankur Tyagi <[email protected]> +--- + libfreerdp/codec/planar.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/libfreerdp/codec/planar.c b/libfreerdp/codec/planar.c +index 4b51a023e..f3e00f9e5 100644 +--- a/libfreerdp/codec/planar.c ++++ b/libfreerdp/codec/planar.c +@@ -720,9 +720,9 @@ BOOL planar_decompress(BITMAP_PLANAR_CONTEXT* planar, const BYTE* pSrcData, UINT + + srcp = pSrcData; + +- if (!pSrcData) ++ if (!pSrcData || (SrcSize < 1)) + { +- WLog_ERR(TAG, "Invalid argument pSrcData=NULL"); ++ WLog_ERR(TAG, "Invalid argument pSrcData=%p [size=%" PRIu32 "]", pSrcData, SrcSize); + return FALSE; + } +
meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb +1 -0
@@ -35,6 +35,7 @@ SRC_URI = "git://github.com/FreeRDP/FreeRDP.git;branch=master;protocol=https \ file://CVE-2026-29775.patch \ file://CVE-2026-29776.patch \ file://CVE-2026-31806.patch \ + file://CVE-2026-31897.patch \ " S = "${WORKDIR}/git"
PATCH 19/22 freerdp3: fix CVE-2026-33984
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Detaisl: https://nvd.nist.gov/vuln/detail/CVE-2026-33984
--- .../freerdp/freerdp3/CVE-2026-33984.patch | 34 +++++++++++++++++++ .../recipes-support/freerdp/freerdp3_3.4.0.bb | 1 + 2 files changed, 35 insertions(+) create mode 100644 meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-33984.patch
meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-33984.patch new file +34 -0
@@ -0,0 +1,34 @@ +From d714759fc45ccf9ff179b912dd1714d0b4f2c5bc Mon Sep 17 00:00:00 2001 +From: Armin Novak <[email protected]> +Date: Wed, 25 Mar 2026 09:48:54 +0100 +Subject: [PATCH] [codec,clear] update CLEAR_VBAR_ENTRY::size after alloc + +(cherry picked from commit dc7fdb165095139be779a4000199bc1706b06ad5) + +CVE: CVE-2026-33984 +Upstream-Status: Backport [https://github.com/FreeRDP/FreeRDP/commit/dc7fdb165095139be779a4000199bc1706b06ad5] +Signed-off-by: Ankur Tyagi <[email protected]> +--- + libfreerdp/codec/clear.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libfreerdp/codec/clear.c b/libfreerdp/codec/clear.c +index 512aeae20..d94536986 100644 +--- a/libfreerdp/codec/clear.c ++++ b/libfreerdp/codec/clear.c +@@ -553,7 +553,6 @@ static BOOL resize_vbar_entry(CLEAR_CONTEXT* clear, CLEAR_VBAR_ENTRY* vBarEntry) + const UINT32 oldPos = vBarEntry->size * bpp; + const UINT32 diffSize = (vBarEntry->count - vBarEntry->size) * bpp; + +- vBarEntry->size = vBarEntry->count; + BYTE* tmp = + (BYTE*)winpr_aligned_recalloc(vBarEntry->pixels, vBarEntry->count, 1ull * bpp, 32); + +@@ -566,6 +565,7 @@ static BOOL resize_vbar_entry(CLEAR_CONTEXT* clear, CLEAR_VBAR_ENTRY* vBarEntry) + + memset(&tmp[oldPos], 0, diffSize); + vBarEntry->pixels = tmp; ++ vBarEntry->size = vBarEntry->count; + } + + if (!vBarEntry->pixels && vBarEntry->size)
meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb +1 -0
@@ -36,6 +36,7 @@ SRC_URI = "git://github.com/FreeRDP/FreeRDP.git;branch=master;protocol=https \ file://CVE-2026-29776.patch \ file://CVE-2026-31806.patch \ file://CVE-2026-31897.patch \ + file://CVE-2026-33984.patch \ " S = "${WORKDIR}/git"
PATCH 20/22 giflib: patch CVE-2025-31344
In reply to [email protected]From: Gyorgy Sarvari <[email protected]>
Details: https://nvd.nist.gov/vuln/detail/CVE-2025-31344
Backport the commit that mentions this CVE ID explicitly in its message.
--- .../giflib/giflib/CVE-2025-31344.patch | 28 +++++++++++++++++++ .../recipes-devtools/giflib/giflib_5.2.2.bb | 3 +- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-devtools/giflib/giflib/CVE-2025-31344.patch
meta-oe/recipes-devtools/giflib/giflib/CVE-2025-31344.patch new file +28 -0
@@ -0,0 +1,28 @@ +From 949bf7ded2c23449439e2c3e1f63368cf7985800 Mon Sep 17 00:00:00 2001 +From: "Eric S. Raymond" <[email protected]> +Date: Wed, 18 Feb 2026 18:06:50 -0500 +Subject: [PATCH] Resolve SourceForge bug #187: CVE-2025-31344 + +CVE: CVE-2025-31344 +Upstream-Status: Backport [https://sourceforge.net/p/giflib/code/ci/7bbe8ea1a595bb7509ffa0a86b076e9b720e85af] +Signed-off-by: Gyorgy Sarvari <[email protected]> +--- + gif2rgb.c | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/gif2rgb.c b/gif2rgb.c +index d51226d..4ce2104 100644 +--- a/gif2rgb.c ++++ b/gif2rgb.c +@@ -329,6 +329,11 @@ static void DumpScreen2RGB(char *FileName, int OneFileFlag, + GifRow = ScreenBuffer[i]; + GifQprintf("\b\b\b\b%-4d", ScreenHeight - i); + for (j = 0; j < ScreenWidth; j++) { ++ /* Check if color is within color palete */ ++ if (GifRow[j] >= ColorMap->ColorCount) { ++ GIF_EXIT(GifErrorString( ++ D_GIF_ERR_IMAGE_DEFECT)); ++ } + ColorMapEntry = &ColorMap->Colors[GifRow[j]]; + Buffers[0][j] = ColorMapEntry->Red; + Buffers[1][j] = ColorMapEntry->Green;
meta-oe/recipes-devtools/giflib/giflib_5.2.2.bb +2 -1
@@ -11,7 +11,8 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/giflib/${BP}.tar.gz \ https://sourceforge.net/p/giflib/code/ci/d54b45b0240d455bbaedee4be5203d2703e59967/tree/doc/giflib-logo.gif?format=raw;subdir=${BP}/doc;name=logo;downloadfilename=giflib-logo.gif \ file://0001-Makefile-fix-typo-in-soname-argument.patch \ file://CVE-2026-23868.patch \ -" + file://CVE-2025-31344.patch \ + " SRC_URI[logo.sha256sum] = "1a54383986adad1521d00e003b4c482c27e8bc60690be944a1f3319c75abc2c9" SRC_URI[sha256sum] = "be7ffbd057cadebe2aa144542fd90c6838c6a083b5e8a9048b8ee3b66b29d5fb"
PATCH 21/22 libde265: upgrade 1.0.12 -> 1.0.16
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Dropped patches which are part of the upstream version.
https://github.com/strukturag/libde265/releases/tag/v1.0.16
https://github.com/strukturag/libde265/releases/tag/v1.0.15
https://github.com/strukturag/libde265/releases/tag/v1.0.14
https://github.com/strukturag/libde265/releases/tag/v1.0.13
---
.../libde265/libde265/CVE-2023-43887.patch | 39 -----------------
.../libde265/libde265/CVE-2023-47471.patch | 42 -------------------
...{libde265_1.0.12.bb => libde265_1.0.16.bb} | 4 +-
3 files changed, 1 insertion(+), 84 deletions(-)
delete mode 100644 meta-multimedia/recipes-multimedia/libde265/libde265/CVE-2023-43887.patch
delete mode 100644 meta-multimedia/recipes-multimedia/libde265/libde265/CVE-2023-47471.patch
rename meta-multimedia/recipes-multimedia/libde265/{libde265_1.0.12.bb => libde265_1.0.16.bb} (84%)meta-multimedia/recipes-multimedia/libde265/libde265/CVE-2023-43887.patch deleted +0 -39
@@ -1,39 +0,0 @@ -From e31a5389f2a4967b9ca298a3435d1af2f9a04cda Mon Sep 17 00:00:00 2001 -From: Dirk Farin <[email protected]> -Date: Fri, 1 Sep 2023 21:18:48 +0200 -Subject: [PATCH] fix #418 - -CVE: CVE-2023-43887 -Upstream-Status: Backport [https://github.com/strukturag/libde265/commit/63b596c915977f038eafd7647d1db25488a8c133] -(cherry picked from commit 63b596c915977f038eafd7647d1db25488a8c133) -Signed-off-by: Ankur Tyagi <[email protected]> ---- - libde265/decctx.cc | 9 +++++---- - 1 file changed, 5 insertions(+), 4 deletions(-) - -diff --git a/libde265/decctx.cc b/libde265/decctx.cc -index 223a6aaf..350f7e7a 100644 ---- a/libde265/decctx.cc -+++ b/libde265/decctx.cc -@@ -582,16 +582,17 @@ de265_error decoder_context::read_pps_NAL(bitreader& reader) - std::shared_ptr<pic_parameter_set> new_pps = std::make_shared<pic_parameter_set>(); - - bool success = new_pps->read(&reader,this); -+ if (!success) { -+ return DE265_WARNING_PPS_HEADER_INVALID; -+ } - - if (param_pps_headers_fd>=0) { - new_pps->dump(param_pps_headers_fd); - } - -- if (success) { -- pps[ (int)new_pps->pic_parameter_set_id ] = new_pps; -- } -+ pps[ (int)new_pps->pic_parameter_set_id ] = new_pps; - -- return success ? DE265_OK : DE265_WARNING_PPS_HEADER_INVALID; -+ return DE265_OK; - } - - de265_error decoder_context::read_sei_NAL(bitreader& reader, bool suffix)
meta-multimedia/recipes-multimedia/libde265/libde265/CVE-2023-47471.patch deleted +0 -42
42 lines not on this page · raw message
meta-multimedia/recipes-multimedia/libde265/libde265_1.0.16.bb renamed from meta-multimedia/recipes-multimedia/libde265/libde265_1.0.12.bb +1 -3
@@ -9,11 +9,9 @@ LICENSE_FLAGS = "commercial" LIC_FILES_CHKSUM = "file://COPYING;md5=695b556799abb2435c97a113cdca512f" SRC_URI = "git://github.com/strukturag/libde265.git;branch=master;protocol=https \ - file://CVE-2023-43887.patch \ - file://CVE-2023-47471.patch \ file://CVE-2025-61147.patch \ " -SRCREV = "a267c84707ab264928fa9b86de2ee749c48c318c" +SRCREV = "7ba65889d3d6d8a0d99b5360b028243ba843be3a" S = "${WORKDIR}/git"
PATCH 22/22 libraw: ignore CVE-2026-5318
In reply to [email protected]From: Ankur Tyagi <[email protected]>
Vulnerability exists in the function which was added in version 0.22.0[1]
Details: https://nvd.nist.gov/vuln/detail/CVE-2026-5318
[1] https://github.com/LibRaw/LibRaw/commit/12b0e5d60c57bb795382fda8494fc45f683550b8
--- meta-oe/recipes-support/libraw/libraw_0.21.2.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-oe/recipes-support/libraw/libraw_0.21.2.bb +2 -0
@@ -14,3 +14,5 @@ S = "${WORKDIR}/git" inherit autotools pkgconfig DEPENDS = "jpeg jasper lcms" + +CVE_STATUS[CVE-2026-5318] = "cpe-incorrect: The current version (0.21.2) is not affected."