diff options
Diffstat (limited to 'meta-oe/recipes-support/freerdp/freerdp3')
| -rw-r--r-- | meta-oe/recipes-support/freerdp/freerdp3/CVE-2024-32459.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/freerdp/freerdp3/CVE-2024-32459.patch b/meta-oe/recipes-support/freerdp/freerdp3/CVE-2024-32459.patch new file mode 100644 index 0000000000..8370f055a5 --- /dev/null +++ b/meta-oe/recipes-support/freerdp/freerdp3/CVE-2024-32459.patch | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | From 8e385887fb3ffe0ec50f8c2cbdcbc66b5ff1569e Mon Sep 17 00:00:00 2001 | ||
| 2 | From: akallabeth <akallabeth@posteo.net> | ||
| 3 | Date: Tue, 16 Apr 2024 08:45:03 +0200 | ||
| 4 | Subject: [PATCH] fix missing input length check | ||
| 5 | |||
| 6 | CVE: CVE-2024-32459 | ||
| 7 | Upstream-Status: Backport [https://github.com/FreeRDP/FreeRDP/commit/91a1535f88a00bbb2b212b6a808a021aa4f486f8] | ||
| 8 | |||
| 9 | Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> | ||
| 10 | --- | ||
| 11 | libfreerdp/codec/ncrush.c | 6 ++++++ | ||
| 12 | 1 file changed, 6 insertions(+) | ||
| 13 | |||
| 14 | diff --git a/libfreerdp/codec/ncrush.c b/libfreerdp/codec/ncrush.c | ||
| 15 | index 4a7162c89..69921853b 100644 | ||
| 16 | --- a/libfreerdp/codec/ncrush.c | ||
| 17 | +++ b/libfreerdp/codec/ncrush.c | ||
| 18 | @@ -2068,6 +2068,12 @@ int ncrush_decompress(NCRUSH_CONTEXT* ncrush, const BYTE* pSrcData, UINT32 SrcSi | ||
| 19 | return 1; | ||
| 20 | } | ||
| 21 | |||
| 22 | + if (SrcSize < 4) | ||
| 23 | + { | ||
| 24 | + WLog_ERR(TAG, "Input size short: SrcSize %" PRIu32 " < 4", SrcSize); | ||
| 25 | + return -1; | ||
| 26 | + } | ||
| 27 | + | ||
| 28 | const BYTE* SrcEnd = &pSrcData[SrcSize]; | ||
| 29 | const BYTE* SrcPtr = pSrcData + 4; | ||
| 30 | |||
