CVEfocus › CVE database › CVE-2021-41160

CVE-2021-41160Improper region checks in FreeRDP allow out of bound write to memory

CVSS 5.3 MediumEPSS 1.7% (higher than 77% of CVEs)Published 2021-10-21Updated 2025-11-03Assigner: GitHub_M

FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. In affected versions a malicious server might trigger out of bound writes in a connected client. Connections using GDI or SurfaceCommands to send graphics updates to the client might send `0` width/height or out of bound rectangles to trigger out of bound writes. With `0` width or heigth the memory allocation will be `0` but the missing bounds checks allow writing to the pointer at this (not allocated) region. This issue has been patched in FreeRDP 2.4.1.

CWE-787

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

33Fixed
3Fix pending
9Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04freerdp2Fixed2.3.0+dfsg1-2ubuntu2UBUNTU-CVE-2021-41160
Ubuntu 20.04freerdp2Fixed2.2.0+dfsg1-0ubuntu0.20.04.2UBUNTU-CVE-2021-41160
Ubuntu 18.04freerdpFix pendingUBUNTU-CVE-2021-41160
Ubuntu 18.04freerdp2Fixed2.2.0+dfsg1-0ubuntu0.18.04.2UBUNTU-CVE-2021-41160
Ubuntu 16.04freerdpFix pendingUBUNTU-CVE-2021-41160
Ubuntu 14.04freerdpFix pending
Debian 12freerdp2Fixed2.4.1+dfsg1-1DEBIAN-CVE-2021-41160
Red Hat Enterprise Linux 9freerdpNot affected
Red Hat Enterprise Linux 9freerdp-develNot affected
Red Hat Enterprise Linux 9freerdp-libsNot affected
Red Hat Enterprise Linux 9libwinprNot affected
Red Hat Enterprise Linux 9libwinpr-develNot affected
Red Hat Enterprise Linux 8freerdpFixed2:2.2.0-7.el8_5RHSA-2021:4622
Red Hat Enterprise Linux 8freerdp-develFixed2:2.2.0-7.el8_5RHSA-2021:4622
Red Hat Enterprise Linux 8freerdp-libsFixed2:2.2.0-7.el8_5RHSA-2021:4622
Red Hat Enterprise Linux 8libwinprFixed2:2.2.0-7.el8_5RHSA-2021:4622
Red Hat Enterprise Linux 8libwinpr-develFixed2:2.2.0-7.el8_5RHSA-2021:4622
Red Hat Enterprise Linux 7freerdpFixed0:2.1.1-5.el7_9RHSA-2021:4619
Red Hat Enterprise Linux 7freerdp-develFixed0:2.1.1-5.el7_9RHSA-2021:4619
Red Hat Enterprise Linux 7freerdp-libsFixed0:2.1.1-5.el7_9RHSA-2021:4619
Red Hat Enterprise Linux 7libwinprFixed0:2.1.1-5.el7_9RHSA-2021:4619
Red Hat Enterprise Linux 7libwinpr-develFixed0:2.1.1-5.el7_9RHSA-2021:4619
Red Hat Enterprise Linux 6freerdpNot affected
Red Hat Enterprise Linux 6freerdp-develNot affected
Red Hat Enterprise Linux 6freerdp-libsNot affected
Red Hat Enterprise Linux 6freerdp-pluginsNot affected
AlmaLinux 8freerdpFixed2:2.2.0-7.el8_5ALSA-2021:4622
AlmaLinux 8freerdp-develFixed2:2.2.0-7.el8_5ALSA-2021:4622
AlmaLinux 8freerdp-libsFixed2:2.2.0-7.el8_5ALSA-2021:4622
AlmaLinux 8libwinprFixed2:2.2.0-7.el8_5ALSA-2021:4622
AlmaLinux 8libwinpr-develFixed2:2.2.0-7.el8_5ALSA-2021:4622
Rocky Linux 8freerdpFixed2:2.2.0-7.el8_5RLSA-2021:4622
Alpine Linux 3.24freerdpFixed2.4.1-r0ALPINE-CVE-2021-41160
Alpine Linux 3.24freerdp2Fixed2.4.1-r0ALPINE-CVE-2021-41160
Alpine Linux 3.23freerdpFixed2.4.1-r0ALPINE-CVE-2021-41160
Alpine Linux 3.23freerdp2Fixed2.4.1-r0ALPINE-CVE-2021-41160
Alpine Linux 3.22freerdpFixed2.4.1-r0ALPINE-CVE-2021-41160
Alpine Linux 3.22freerdp2Fixed2.4.1-r0ALPINE-CVE-2021-41160
Alpine Linux 3.21freerdpFixed2.4.1-r0ALPINE-CVE-2021-41160
Alpine Linux 3.20freerdpFixed2.4.1-r0ALPINE-CVE-2021-41160
Alpine Linux 3.19freerdpFixed2.4.1-r0ALPINE-CVE-2021-41160
Alpine Linux 3.18freerdpFixed2.4.1-r0ALPINE-CVE-2021-41160
Alpine Linux 3.17freerdpFixed2.4.1-r0ALPINE-CVE-2021-41160
Alpine Linux 3.16freerdpFixed2.4.1-r0ALPINE-CVE-2021-41160
Alpine Linux 3.15freerdpFixed2.4.1-r0ALPINE-CVE-2021-41160

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.