CVE-2021-41160 json
Improper region checks in FreeRDP allow out of bound write to memory
published 2021-10-21 5 y ago modified 2026-06-17 4 mo ago also EUVD-2021-28270
- cvss
- 5.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.7%
- EPSS 1.7% chance of exploitation in 30 days, percentile 76%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- freerdp freerdp 2.4.1
- freerdp2 Debian 12 2.4.1+dfsg1-1
debian advisories DEBIAN-CVE-2021-41160
- freerdp2 Ubuntu 18.04 LTS 2.2.0+dfsg1-0ubuntu0.18.04.2
- freerdp2 Ubuntu 20.04 LTS 2.2.0+dfsg1-0ubuntu0.20.04.2
- freerdp2 Ubuntu 22.04 LTS 2.3.0+dfsg1-2ubuntu2
ubuntu advisories UBUNTU-CVE-2021-41160
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- freerdp RHEL 7 2.1.1-5.el7_9
- libwinpr RHEL 7 2.1.1-5.el7_9
- freerdp-libs RHEL 7 2.1.1-5.el7_9
- freerdp RHEL 8 2:2.2.0-7.el8_5
- libwinpr RHEL 8 2:2.2.0-7.el8_5
- freerdp-libs RHEL 8 2:2.2.0-7.el8_5
- freerdp RHEL 8.4 EUS 2:2.2.0-6.el8_4
- libwinpr RHEL 8.4 EUS 2:2.2.0-6.el8_4
red hat advisories RHSA-2021:4623RHSA-2021:4620RHSA-2021:4619RHSA-2021:4621RHSA-2021:4622
- freerdp SLE Workstation Extension 15 SP4, SLE Module for Package Hub 15 SP4, openSUSE Leap 15.4 2.4.0-150400.3.6.1
suse advisories SUSE-SU-2022:2993-1
- freerdp2 openSUSE Tumbleweed 2.4.1-1.1
opensuse advisories openSUSE-SU-2024:11591-1
- freerdp AlmaLinux 8 2:2.2.0-7.el8_5
- libwinpr AlmaLinux 8 2:2.2.0-7.el8_5
- freerdp-libs AlmaLinux 8 2:2.2.0-7.el8_5
almalinux advisories ALSA-2021:4622
- freerdp Rocky Linux 8 2:2.2.0-7.el8_5
rocky linux advisories RLSA-2021:4622
- freerdp Alpine 3.24, Alpine 3.23, Alpine 3.22 +7 more 2.4.1-r0
- freerdp2 Alpine 3.24, Alpine 3.23, Alpine 3.22 2.4.1-r0
alpine advisories ALPINE-CVE-2021-41160
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- freerdp Arch Linux 2:2.4.1-1
arch linux advisories AVG-2488
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-41160 updated cvss 8.8
freerdp: improper region checks in all clients allow out of bound write to memory
-
Red Hat CodeReady Linux Builder (v. 8) freerdp-devel 2.2.0-7.el8_5, freerdp-debuginfo 2.2.0-7.el8_5, libwinpr-debuginfo 2.2.0-7.el8_5, freerdp-debugsource 2.2.0-7.el8_5, freerdp-libs-debuginfo 2.2.0-7.el8_5fixed: vendor fix RHSA-2021:4622
-
Red Hat CodeReady Linux Builder EUS (v. 8.1) freerdp-devel 2.0.0-46.rc4.el8_1.5, freerdp-debuginfo 2.0.0-46.rc4.el8_1.5, libwinpr-debuginfo 2.0.0-46.rc4.el8_1.5, freerdp-debugsource 2.0.0-46.rc4.el8_1.5, freerdp-libs-debuginfo 2.0.0-46.rc4.el8_1.5fixed: vendor fix RHSA-2021:4620
-
Red Hat CodeReady Linux Builder EUS (v. 8.2) freerdp-devel 2.0.0-46.rc4.el8_2.5, freerdp-debuginfo 2.0.0-46.rc4.el8_2.5, libwinpr-debuginfo 2.0.0-46.rc4.el8_2.5, freerdp-debugsource 2.0.0-46.rc4.el8_2.5, freerdp-libs-debuginfo 2.0.0-46.rc4.el8_2.5fixed: vendor fix RHSA-2021:4621
-
Red Hat Enterprise Linux AppStream (v. 8) freerdp 2.2.0-7.el8_5, libwinpr 2.2.0-7.el8_5, freerdp-libs 2.2.0-7.el8_5fixed: vendor fix RHSA-2021:4622
-
Red Hat Enterprise Linux AppStream EUS (v. 8.1) freerdp 2.0.0-46.rc4.el8_1.5, libwinpr 2.0.0-46.rc4.el8_1.5, freerdp-libs 2.0.0-46.rc4.el8_1.5fixed: vendor fix RHSA-2021:4620
-
Red Hat Enterprise Linux AppStream EUS (v. 8.2) freerdp 2.0.0-46.rc4.el8_2.5, libwinpr 2.0.0-46.rc4.el8_2.5, freerdp-libs 2.0.0-46.rc4.el8_2.5fixed: vendor fix RHSA-2021:4621
-
Red Hat Enterprise Linux AppStream EUS (v.8.4) freerdp 2.2.0-6.el8_4, libwinpr 2.2.0-6.el8_4, freerdp-libs 2.2.0-6.el8_4fixed: vendor fix RHSA-2021:4623
-
Red Hat Enterprise Linux Client (v. 7) freerdp 2.1.1-5.el7_9, libwinpr 2.1.1-5.el7_9, freerdp-libs 2.1.1-5.el7_9 Red Hat Enterprise Linux Client Optional (v. 7) freerdp-devel 2.1.1-5.el7_9, libwinpr-devel 2.1.1-5.el7_9, freerdp-debuginfo 2.1.1-5.el7_9fixed: vendor fix RHSA-2021:4619
show 3 moreshow fewer
-
Red Hat Enterprise Linux CRB EUS (v.8.4) freerdp-devel 2.2.0-6.el8_4, freerdp-debuginfo 2.2.0-6.el8_4, libwinpr-debuginfo 2.2.0-6.el8_4, freerdp-debugsource 2.2.0-6.el8_4, freerdp-libs-debuginfo 2.2.0-6.el8_4fixed: vendor fix RHSA-2021:4623
-
Red Hat Enterprise Linux Server (v. 7) freerdp 2.1.1-5.el7_9, libwinpr 2.1.1-5.el7_9, freerdp-libs 2.1.1-5.el7_9 Red Hat Enterprise Linux Server Optional (v. 7) freerdp-devel 2.1.1-5.el7_9, libwinpr-devel 2.1.1-5.el7_9, freerdp-debuginfo 2.1.1-5.el7_9 Red Hat Enterprise Linux Workstation (v. 7) freerdp 2.1.1-5.el7_9, libwinpr 2.1.1-5.el7_9, freerdp-libs 2.1.1-5.el7_9 Red Hat Enterprise Linux Workstation Optional (v. 7) freerdp-devel 2.1.1-5.el7_9, libwinpr-devel 2.1.1-5.el7_9, freerdp-debuginfo 2.1.1-5.el7_9fixed: vendor fix RHSA-2021:4619
-
Red Hat Enterprise Linux 6 freerdp, freerdp-libs, freerdp-plugins Red Hat Enterprise Linux 9 freerdp, libwinpr, freerdp-libsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.66% chance of exploitation in the next 30 days, higher than 76% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.3 | CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:N/I:H/A:N |
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected products
- FreeRDP FreeRDP
Classification
- Weakness
-
- CWE-787 Out-of-bounds Write
References
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/DWJXQOWKNR7O5HM2HFJOM4GBUFPTE3RG/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/ZXCR73EDVPLI6TRWRAWJCJ7OBYDKBB74/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/WIZUPVRGCWUDAPDOQVUGUIYUO7UWKMXX/
vendor-advisory
-
security.gentoo.org
/glsa/202210-24
vendor-advisory, third-party-advisory
-
github.com
/FreeRDP/FreeRDP/security/advisories/GHSA-7c9r-6r2q-93qg
third-party-advisory
-
lists.debian.org
/debian-lts-announce/2023/11/msg00010.html
mailing-list
- lists.debian.org /debian-lts-announce/2025/02/msg00016.html
Sources
- CVE List CVE-2021-41160
- NVD CVE-2021-41160
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.