Bug 2236650 (CVE-2023-40569)

Summary: CVE-2023-40569 freerdp: Out-of-bounds write in the `progressive_decompress` function due to incorrect calculations
Product: [Other] Security Response Reporter: Marian Rehak <mrehak>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: desktop-qa-list, oholy, pajung
Target Milestone: ---Keywords: Security
Target Release: ---Flags: pajung: needinfo-
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: freerdp 2.11.0, freerdp 3.0.0-beta3 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in FreeRDP. Incorrect calculations in the `progressive_decompress` function may allow for a buffer overflow, resulting in a crash.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2236653, 2236654, 2236655    
Bug Blocks: 2236652    

Description Marian Rehak 2023-09-01 05:40:41 UTC
FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. Affected versions are subject to an Out-Of-Bounds Write in the `progressive_decompress` function. This issue is likely down to incorrect calculations of the `nXSrc` and `nYSrc` variables. This issue has been addressed in versions 2.11.0 and 3.0.0-beta3. Users are advised to upgrade. there are no known workarounds for this vulnerability.

https://github.com/FreeRDP/FreeRDP/blob/5be5553e0da72178a4b94cc1ffbdace9ceb153e5/libfreerdp/codec/progressive.c#L2598-L2616
https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-hm8c-rcjg-c8qp

Comment 1 Marian Rehak 2023-09-01 05:43:11 UTC
Created freerdp tracking bugs for this issue:

Affects: fedora-all [bug 2236653]

Comment 5 errata-xmlrpc 2024-04-30 09:48:44 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2024:2208 https://access.redhat.com/errata/RHSA-2024:2208