mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-09-27 00:30:20 +00:00
freerdp3: patch CVE-2026-64620
Backport commit matching GitHub advisory[1] Details: https://nvd.nist.gov/vuln/detail/cve-2026-64620 [1]https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-pjqx-v446-x7fc Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com> Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
From c04d10f9586ce92d7a7a3307744e16d554e20cfd Mon Sep 17 00:00:00 2001
|
||||
From: Armin Novak <armin.novak@thincast.com>
|
||||
Date: Thu, 2 Jul 2026 08:02:26 +0200
|
||||
Subject: [PATCH] [crypto] fix out buffer check
|
||||
|
||||
(cherry picked from commit 27014741a8c22a34d3040c559c82f4ed82841bef)
|
||||
|
||||
CVE: CVE-2026-64620
|
||||
Upstream-Status: Backport [https://github.com/FreeRDP/FreeRDP/commit/27014741a8c22a34d3040c559c82f4ed82841bef]
|
||||
|
||||
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
|
||||
---
|
||||
libfreerdp/crypto/crypto.c | 9 ++++++---
|
||||
1 file changed, 6 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/libfreerdp/crypto/crypto.c b/libfreerdp/crypto/crypto.c
|
||||
index 3d210f2d9..60f7c6cee 100644
|
||||
--- a/libfreerdp/crypto/crypto.c
|
||||
+++ b/libfreerdp/crypto/crypto.c
|
||||
@@ -103,11 +103,14 @@ static SSIZE_T crypto_rsa_common(const BYTE* input, size_t length, UINT32 key_le
|
||||
goto fail;
|
||||
if (BN_mod_exp(y, x, exp, mod, ctx) != 1)
|
||||
goto fail;
|
||||
- output_length = BN_bn2bin(y, output);
|
||||
+ {
|
||||
+ const int len = BN_num_bytes(y);
|
||||
+ if ((len < 0) || (WINPR_ASSERTING_INT_CAST(size_t, len) > out_length))
|
||||
+ goto fail;
|
||||
+ output_length = BN_bn2bin(y, output);
|
||||
+ }
|
||||
if (output_length < 0)
|
||||
goto fail;
|
||||
- if (WINPR_ASSERTING_INT_CAST(size_t, output_length) > out_length)
|
||||
- goto fail;
|
||||
crypto_reverse(output, WINPR_ASSERTING_INT_CAST(size_t, output_length));
|
||||
|
||||
if ((size_t)output_length < key_length)
|
||||
@@ -21,6 +21,7 @@ SRC_URI = "git://github.com/FreeRDP/FreeRDP.git;nobranch=1;protocol=https;tag=${
|
||||
file://CVE-2026-55648.patch \
|
||||
file://CVE-2026-63633.patch \
|
||||
file://CVE-2026-63652.patch \
|
||||
file://CVE-2026-64620.patch \
|
||||
"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user