Vulnerability · Published Oct 21, 2021 · Assigned by GitHub_M
CVE-2021-41160Improper region checks in FreeRDP allow out of bound write to memory
Medium 5.3
In plain English
A medium-severity out-of-bounds write in FreeRDP from FreeRDP. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.7% (higher than 77% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | freerdp | 2:2.2.0-7.el8_5 | ALSA-2021:4622 |
| AlmaLinux:8 | freerdp-devel | 2:2.2.0-7.el8_5 | ALSA-2021:4622 |
| AlmaLinux:8 | freerdp-libs | 2:2.2.0-7.el8_5 | ALSA-2021:4622 |
| AlmaLinux:8 | libwinpr | 2:2.2.0-7.el8_5 | ALSA-2021:4622 |
| AlmaLinux:8 | libwinpr-devel | 2:2.2.0-7.el8_5 | ALSA-2021:4622 |
| Alpine:v3.20 | freerdp | 2.4.1-r0 | ALPINE-CVE-2021-41160 |
| Alpine:v3.21 | freerdp | 2.4.1-r0 | ALPINE-CVE-2021-41160 |
| Alpine:v3.22 | freerdp | 2.4.1-r0 | ALPINE-CVE-2021-41160 |
| Alpine:v3.23 | freerdp | 2.4.1-r0 | ALPINE-CVE-2021-41160 |
| Alpine:v3.24 | freerdp | 2.4.1-r0 | ALPINE-CVE-2021-41160 |
| Alpine:v3.22 | freerdp2 | 2.4.1-r0 | ALPINE-CVE-2021-41160 |
| Alpine:v3.23 | freerdp2 | 2.4.1-r0 | ALPINE-CVE-2021-41160 |
| Alpine:v3.24 | freerdp2 | 2.4.1-r0 | ALPINE-CVE-2021-41160 |
| Debian:12 | freerdp2 | 2.4.1+dfsg1-1 | DEBIAN-CVE-2021-41160 |
| Rocky Linux:8 | freerdp | 2:2.2.0-7.el8_5 | RLSA-2021:4622 |
| Ubuntu:22.04:LTS | freerdp2 | 2.3.0+dfsg1-2ubuntu2 | UBUNTU-CVE-2021-41160 |
Affected products (as reported)
Weakness: CWE-787 · Vector: CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:N/I:H/A:N
References
- https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-7c9r-6r2q-93qg
- FEDORA-2021-2c25f03d0b vendor-advisory
- FEDORA-2021-5d227916bc vendor-advisory
- FEDORA-2021-ac23d9e47f vendor-advisory
- GLSA-202210-24 vendor-advisory
- [debian-lts-announce] 20231117 [SECURITY] [DLA 3654-1] freerdp2 security update mailing-list
- https://lists.debian.org/debian-lts-announce/2025/02/msg00016.html