Bug 1854871 (CVE-2020-4032)

Summary: CVE-2020-4032 freerdp: integer casting vulnerability in update_recv_secondary_order
Product: [Other] Security Response Reporter: Dhananjay Arunesh <darunesh>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: mads, negativo17, oholy, pahan, pokorra.mailinglists
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: freerdp 2.1.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-07-11 01:27:36 UTC 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: 1854872, 1854873    
Bug Blocks: 1854906    

Description Dhananjay Arunesh 2020-07-08 11:49:48 UTC
In FreeRDP before version 2.1.2, there is an integer casting vulnerability in update_recv_secondary_order. All clients with +glyph-cache /relax-order-checks are affected. This is fixed in version 2.1.2.

References:
http://www.freerdp.com/2020/06/22/2_1_2-released
https://github.com/FreeRDP/FreeRDP/commit/e7bffa64ef5ed70bac94f823e2b95262642f5296
https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-3898-mc89-x2vc

Comment 1 Dhananjay Arunesh 2020-07-08 11:51:55 UTC
Created freerdp tracking bugs for this issue:

Affects: epel-all [bug 1854873]
Affects: fedora-all [bug 1854872]

Comment 2 Todd Cullum 2020-07-10 20:12:03 UTC
Mitigation:

Do not run the freerdp client with the +glyph-cache and /relax-order-checks options.

Comment 3 Todd Cullum 2020-07-10 22:01:01 UTC
In libfreerdp/core/orders.c update_recv_secondary_order(), Stream_Seek() was replaced with Stream_SafeSeek() and a length variable computed in reverse order to avoid an incorrect version between numeric types. This flaw affects freerdp CLIENTs only.

Comment 4 Todd Cullum 2020-07-10 22:05:26 UTC
Statement:

This flaw does not affect versions of freerdp as shipped with any version of Red Hat Enterprise Linux as the vulnerable code was introduced in a newer version of freerdp.

Comment 5 Product Security DevOps Team 2020-07-11 01:27:36 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2020-4032

Comment 6 Product Security DevOps Team 2020-07-11 07:27:37 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2020-4032