mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-13 17:39:57 +00:00
freerdp3: patch CVE-2024-32040
Details: https://nvd.nist.gov/vuln/detail/CVE-2024-32040 Pick the patch that is marked to resolve the related github advisory. Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
This commit is contained in:
committed by
Anuj Mittal
parent
ca2667f23a
commit
057e1f5d06
@@ -0,0 +1,29 @@
|
||||
From f29088d17903aa8e58073b9811dc8a72f94cf4fb Mon Sep 17 00:00:00 2001
|
||||
From: akallabeth <akallabeth@posteo.net>
|
||||
Date: Tue, 16 Apr 2024 08:26:37 +0200
|
||||
Subject: [PATCH] fix missing check
|
||||
|
||||
in nsc_rle_decode abort if there are more bytes to be read then there
|
||||
are left.
|
||||
|
||||
CVE: CVE-2024-32040
|
||||
Upstream-Status: Backport [https://github.com/FreeRDP/FreeRDP/commit/d58cbc96aced4d082abf92b41a415a891c7ea309]
|
||||
|
||||
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
|
||||
---
|
||||
libfreerdp/codec/nsc.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/libfreerdp/codec/nsc.c b/libfreerdp/codec/nsc.c
|
||||
index 049b541f1..c2d92e48c 100644
|
||||
--- a/libfreerdp/codec/nsc.c
|
||||
+++ b/libfreerdp/codec/nsc.c
|
||||
@@ -160,7 +160,7 @@ static BOOL nsc_rle_decode(const BYTE* in, size_t inSize, BYTE* out, UINT32 outS
|
||||
len |= ((UINT32)(*in++)) << 24U;
|
||||
}
|
||||
|
||||
- if (outSize < len)
|
||||
+ if ((outSize < len) || (left < len))
|
||||
return FALSE;
|
||||
|
||||
outSize -= len;
|
||||
@@ -10,6 +10,7 @@ inherit pkgconfig cmake
|
||||
SRCREV = "708f3764897e06297469a7b0507b3c9ecc041ad7"
|
||||
SRC_URI = "git://github.com/FreeRDP/FreeRDP.git;branch=master;protocol=https \
|
||||
file://CVE-2024-32039.patch \
|
||||
file://CVE-2024-32040.patch \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
Reference in New Issue
Block a user