Bug 1835399 (CVE-2020-11045)

Summary: CVE-2020-11045 freerdp: out of bounds read in update_read_bitmap_data function
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: mads, negativo17, oholy, pahan
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: freerdp 2.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-29 22:01:01 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: 1835400, 1835401, 1835402, 1836385, 1836386    
Bug Blocks: 1835410    

Description Guilherme de Almeida Suckevicz 2020-05-13 17:53:06 UTC
In FreeRDP after 1.0 and before 2.0.0, there is an out-of-bound read in in update_read_bitmap_data that allows client memory to be read to an image buffer. The result displayed on screen as colour.

References:
https://github.com/FreeRDP/FreeRDP/issues/6005
https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-3x39-248q-f4q6

Upstream commit:
https://github.com/FreeRDP/FreeRDP/commit/f8890a645c221823ac133dbf991f8a65ae50d637

Comment 1 Guilherme de Almeida Suckevicz 2020-05-13 17:53:29 UTC
Created freerdp tracking bugs for this issue:

Affects: epel-all [bug 1835402]
Affects: fedora-all [bug 1835401]


Created freerdp1.2 tracking bugs for this issue:

Affects: fedora-all [bug 1835400]

Comment 2 Todd Cullum 2020-05-15 18:18:49 UTC
Technical Summary:

update_read_bitmap_data() does not check the length of the stream remaining before reading 8 bytes of data from the stream; thus it is possible to read up to 8 bytes past the end of the stream buffer, when certain bitmap flags are set. The read data will be stored in bitmap metadata size variables.

Comment 4 errata-xmlrpc 2020-09-29 20:43:40 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2020:4031 https://access.redhat.com/errata/RHSA-2020:4031

Comment 5 Product Security DevOps Team 2020-09-29 22:01:01 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-11045

Comment 6 errata-xmlrpc 2020-11-04 02:38:39 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2020:4647 https://access.redhat.com/errata/RHSA-2020:4647