Bug 2236718 (CVE-2023-40574)

Summary: CVE-2023-40574 freerdp: Out-Of-Bounds Write in general_YUV444ToRGB_8u_P3AC4R_BGRX
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
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: freerdp 3.0.0-beta3 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in FreeRDP. Incorrect calculations of the `nHeight` and `srcStep` variables may allow for an out-of-bounds write, leading to 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: 2236719, 2236720    
Bug Blocks: 2236652    

Description Marian Rehak 2023-09-01 10:55:34 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 `writePixelBGRX` function. This issue is likely down to incorrect calculations of the `nHeight` and `srcStep` variables. This issue has been addressed in version 3.0.0-beta3. Users are advised to upgrade. There are no known workarounds for this issue.

https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-422p-gj6x-93cw
https://github.com/FreeRDP/FreeRDP/blob/5be5553e0da72178a4b94cc1ffbdace9ceb153e5/libfreerdp/primitives/prim_YUV.c#L414-L445

Comment 2 Ondrej Holy 2023-09-01 14:06:49 UTC
The upstream report says that this vulnerability affects just version 3. But freerdp 3 isn't included in Fedora, or RHEL. So I think that this can be closed, can't be?