diff options
| author | Ankur Tyagi <ankur.tyagi85@gmail.com> | 2026-04-09 19:09:12 +1200 |
|---|---|---|
| committer | Anuj Mittal <anuj.mittal@oss.qualcomm.com> | 2026-04-13 12:40:21 +0530 |
| commit | 1bc75cd389ec9af2634738fde315a8a888fa2750 (patch) | |
| tree | b8be8a485976770005297492465870c8e3625fba /meta-oe | |
| parent | 2d96f24f2d12ad5534d1ed27bd42fe1017b2c394 (diff) | |
| download | meta-openembedded-1bc75cd389ec9af2634738fde315a8a888fa2750.tar.gz | |
freerdp3: fix CVE-2026-29775
Details: https://nvd.nist.gov/vuln/detail/CVE-2026-29775
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
Diffstat (limited to 'meta-oe')
| -rw-r--r-- | meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-29775.patch | 30 | ||||
| -rw-r--r-- | meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb | 1 |
2 files changed, 31 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-29775.patch b/meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-29775.patch new file mode 100644 index 0000000000..584481e330 --- /dev/null +++ b/meta-oe/recipes-support/freerdp/freerdp3/CVE-2026-29775.patch | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | From e4bfcb3197787e7af4246366b643c16de99f56a2 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Armin Novak <armin.novak@thincast.com> | ||
| 3 | Date: Sat, 28 Feb 2026 11:38:55 +0100 | ||
| 4 | Subject: [PATCH] [cache,bitmap] overallocate bitmap cache | ||
| 5 | |||
| 6 | (cherry picked from commit ffad58fd2b329efd81a3239e9d7e3c927b8e503f) | ||
| 7 | |||
| 8 | CVE: CVE-2026-29775 | ||
| 9 | Upstream-Status: Backport [https://github.com/FreeRDP/FreeRDP/commit/ffad58fd2b329efd81a3239e9d7e3c927b8e503f] | ||
| 10 | Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com> | ||
| 11 | --- | ||
| 12 | libfreerdp/cache/bitmap.c | 5 ++++- | ||
| 13 | 1 file changed, 4 insertions(+), 1 deletion(-) | ||
| 14 | |||
| 15 | diff --git a/libfreerdp/cache/bitmap.c b/libfreerdp/cache/bitmap.c | ||
| 16 | index dd5ae1d71..0d694dd3f 100644 | ||
| 17 | --- a/libfreerdp/cache/bitmap.c | ||
| 18 | +++ b/libfreerdp/cache/bitmap.c | ||
| 19 | @@ -364,7 +364,10 @@ rdpBitmapCache* bitmap_cache_new(rdpContext* context) | ||
| 20 | const UINT32 BitmapCacheV2NumCells = | ||
| 21 | freerdp_settings_get_uint32(settings, FreeRDP_BitmapCacheV2NumCells); | ||
| 22 | bitmapCache->context = context; | ||
| 23 | - bitmapCache->cells = (BITMAP_V2_CELL*)calloc(BitmapCacheV2NumCells, sizeof(BITMAP_V2_CELL)); | ||
| 24 | + | ||
| 25 | + /* overallocate by 1. older RDP servers do send a off by 1 cache index. */ | ||
| 26 | + bitmapCache->cells = | ||
| 27 | + (BITMAP_V2_CELL*)calloc(BitmapCacheV2NumCells + 1ull, sizeof(BITMAP_V2_CELL)); | ||
| 28 | |||
| 29 | if (!bitmapCache->cells) | ||
| 30 | goto fail; | ||
diff --git a/meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb b/meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb index f92d824d66..e3d71ee854 100644 --- a/meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb +++ b/meta-oe/recipes-support/freerdp/freerdp3_3.4.0.bb | |||
| @@ -32,6 +32,7 @@ SRC_URI = "git://github.com/FreeRDP/FreeRDP.git;branch=master;protocol=https \ | |||
| 32 | file://CVE-2026-24682.patch \ | 32 | file://CVE-2026-24682.patch \ |
| 33 | file://CVE-2026-24683.patch \ | 33 | file://CVE-2026-24683.patch \ |
| 34 | file://CVE-2026-29774.patch \ | 34 | file://CVE-2026-29774.patch \ |
| 35 | file://CVE-2026-29775.patch \ | ||
| 35 | " | 36 | " |
| 36 | 37 | ||
| 37 | S = "${WORKDIR}/git" | 38 | S = "${WORKDIR}/git" |
