It fixes CVE-2026-23530, CVE-2026-23531, CVE-2026-23532, CVE-2026-23533, CVE-2026-23534, CVE-2026-23883 and CVE-2026-23884. Resolves: RHEL-142414, RHEL-142398, RHEL-142382, RHEL-142366, RHEL-142350 Resolves: RHEL-142334, RHEL-142318
29 lines
807 B
Diff
29 lines
807 B
Diff
From 1bab198a2edd0d0e6e1627d21a433151ea190500 Mon Sep 17 00:00:00 2001
|
|
From: akallabeth <akallabeth@posteo.net>
|
|
Date: Thu, 15 Jan 2026 12:02:02 +0100
|
|
Subject: [PATCH] [codec,planar] fix decoder length checks
|
|
|
|
---
|
|
libfreerdp/codec/planar.c | 5 +++++
|
|
1 file changed, 5 insertions(+)
|
|
|
|
diff --git a/libfreerdp/codec/planar.c b/libfreerdp/codec/planar.c
|
|
index 1a06e36ed..94a640a55 100644
|
|
--- a/libfreerdp/codec/planar.c
|
|
+++ b/libfreerdp/codec/planar.c
|
|
@@ -727,6 +727,11 @@ BOOL freerdp_bitmap_decompress_planar(BITMAP_PLANAR_CONTEXT* WINPR_RESTRICT plan
|
|
WINPR_ASSERT(planar);
|
|
WINPR_ASSERT(prims);
|
|
|
|
+ if (planar->maxWidth < nSrcWidth)
|
|
+ return FALSE;
|
|
+ if (planar->maxHeight < nSrcHeight)
|
|
+ return FALSE;
|
|
+
|
|
if (nDstStep <= 0)
|
|
nDstStep = nDstWidth * FreeRDPGetBytesPerPixel(DstFormat);
|
|
|
|
--
|
|
2.52.0
|
|
|