---
title: "CVE-2023-40186"
canonical_url: "https://pkgseek.com/security/CVE-2023-40186"
locale: "zh-CN"
source: "pkgseek"
entity_type: "cve"
severity: "critical"
---

# CVE-2023-40186

FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. Affected versions are subject to an IntegerOverflow leading to Out-Of-Bound Write Vulnerability in the \`gdi_CreateSurface\` function. This issue affects FreeRDP based clients only. FreeRDP proxies are not affected as image decoding is not done by a proxy. This issue has been addressed in versions 2.11.0 and 3.0.0-beta3. Users are advised to upgrade. There are no known workarounds for this issue.

CVE-2023-40186 严重级别为 CRITICAL (9.8)，共索引 30 条受影响软件包构建记录，涉及 3 个发行版。

- **级别 / 评分**: CRITICAL (9.8)
- **受影响构建数**: 30
- **涉及发行版**: 3
- **已标明修复版本发行版**: Oracle Linux, Red Hat Enterprise Linux, Ubuntu

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Oracle Linux | 9 | freerdp | 2:2.4.1-5.el9 | 2:2.11.2-1.el9 |
| Oracle Linux | 9 | freerdp-libs | 2:2.4.1-5.el9 | 2:2.11.2-1.el9 |
| Oracle Linux | 9 | libwinpr | 2:2.4.1-5.el9 | 2:2.11.2-1.el9 |
| Red Hat Enterprise Linux | 9.8 | freerdp | 2:2.4.1-5.el9 | 2:2.11.2-1.el9 |
| Red Hat Enterprise Linux | 9.8 | freerdp-libs | 2:2.4.1-5.el9 | 2:2.11.2-1.el9 |
| Red Hat Enterprise Linux | 9.8 | libwinpr | 2:2.4.1-5.el9 | 2:2.11.2-1.el9 |
| Ubuntu | focal | freerdp2-dev | 2.0.0~git20190204.1.2693389a+dfsg1-2build2 | 2.2.0+dfsg1-0ubuntu0.20.04.5 |
| Ubuntu | focal | libfreerdp2-2 | 2.0.0~git20190204.1.2693389a+dfsg1-2build2 | 2.2.0+dfsg1-0ubuntu0.20.04.5 |
| Ubuntu | focal | libfreerdp-client2-2 | 2.0.0~git20190204.1.2693389a+dfsg1-2build2 | 2.2.0+dfsg1-0ubuntu0.20.04.5 |
| Ubuntu | focal | libfreerdp-server2-2 | 2.0.0~git20190204.1.2693389a+dfsg1-2build2 | 2.2.0+dfsg1-0ubuntu0.20.04.5 |
| Ubuntu | focal | libfreerdp-shadow2-2 | 2.0.0~git20190204.1.2693389a+dfsg1-2build2 | 2.2.0+dfsg1-0ubuntu0.20.04.5 |
| Ubuntu | focal | libfreerdp-shadow-subsystem2-2 | 2.0.0~git20190204.1.2693389a+dfsg1-2build2 | 2.2.0+dfsg1-0ubuntu0.20.04.5 |
| Ubuntu | focal | libuwac0-0 | 2.0.0~git20190204.1.2693389a+dfsg1-2build2 | 2.2.0+dfsg1-0ubuntu0.20.04.5 |
| Ubuntu | focal | libuwac0-dev | 2.0.0~git20190204.1.2693389a+dfsg1-2build2 | 2.2.0+dfsg1-0ubuntu0.20.04.5 |
| Ubuntu | focal | libwinpr2-2 | 2.0.0~git20190204.1.2693389a+dfsg1-2build2 | 2.2.0+dfsg1-0ubuntu0.20.04.5 |
| Ubuntu | focal | libwinpr2-dev | 2.0.0~git20190204.1.2693389a+dfsg1-2build2 | 2.2.0+dfsg1-0ubuntu0.20.04.5 |
| Ubuntu | focal | libwinpr-tools2-2 | 2.0.0~git20190204.1.2693389a+dfsg1-2build2 | 2.2.0+dfsg1-0ubuntu0.20.04.5 |
| Ubuntu | focal | winpr-utils | 2.0.0~git20190204.1.2693389a+dfsg1-2build2 | 2.2.0+dfsg1-0ubuntu0.20.04.5 |
| Ubuntu | jammy | freerdp2-dev | 2.6.1+dfsg1-3ubuntu1 | 2.6.1+dfsg1-3ubuntu2.4 |
| Ubuntu | jammy | libfreerdp2-2 | 2.6.1+dfsg1-3ubuntu1 | 2.6.1+dfsg1-3ubuntu2.4 |
| Ubuntu | jammy | libfreerdp-client2-2 | 2.6.1+dfsg1-3ubuntu1 | 2.6.1+dfsg1-3ubuntu2.4 |
| Ubuntu | jammy | libfreerdp-server2-2 | 2.6.1+dfsg1-3ubuntu1 | 2.6.1+dfsg1-3ubuntu2.4 |
| Ubuntu | jammy | libfreerdp-shadow2-2 | 2.6.1+dfsg1-3ubuntu1 | 2.6.1+dfsg1-3ubuntu2.4 |
| Ubuntu | jammy | libfreerdp-shadow-subsystem2-2 | 2.6.1+dfsg1-3ubuntu1 | 2.6.1+dfsg1-3ubuntu2.4 |
| Ubuntu | jammy | libuwac0-0 | 2.6.1+dfsg1-3ubuntu1 | 2.6.1+dfsg1-3ubuntu2.4 |
| Ubuntu | jammy | libuwac0-dev | 2.6.1+dfsg1-3ubuntu1 | 2.6.1+dfsg1-3ubuntu2.4 |
| Ubuntu | jammy | libwinpr2-2 | 2.6.1+dfsg1-3ubuntu1 | 2.6.1+dfsg1-3ubuntu2.4 |
| Ubuntu | jammy | libwinpr2-dev | 2.6.1+dfsg1-3ubuntu1 | 2.6.1+dfsg1-3ubuntu2.4 |
| Ubuntu | jammy | libwinpr-tools2-2 | 2.6.1+dfsg1-3ubuntu1 | 2.6.1+dfsg1-3ubuntu2.4 |
| Ubuntu | jammy | winpr-utils | 2.6.1+dfsg1-3ubuntu1 | 2.6.1+dfsg1-3ubuntu2.4 |
