ubuntu-cve-2023-40187
Vulnerability from osv_ubuntu
Published
2023-08-31 22:15
Modified
2025-07-16 05:09
Summary
Details
FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. Affected versions of the 3.x beta branch are subject to a Use-After-Free issue in the avc420_ensure_buffer and avc444_ensure_buffer functions. If the value of piDstSize[x] is 0, ppYUVDstData[x] will be freed. However, in this case ppYUVDstData[x] will not have been updated which leads to a Use-After-Free vulnerability. This issue has been addressed in version 3.0.0-beta3. Users of the 3.x beta releases are advised to upgrade. There are no known workarounds for this vulnerability.
Severity
9.8 (Critical)
7.3 (High)
N/A (UNKNOWN)
References
{
"affected": [
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "freerdp2-dev",
"binary_version": "2.2.0+dfsg1-0ubuntu0.20.04.4"
},
{
"binary_name": "freerdp2-shadow-x11",
"binary_version": "2.2.0+dfsg1-0ubuntu0.20.04.4"
},
{
"binary_name": "freerdp2-wayland",
"binary_version": "2.2.0+dfsg1-0ubuntu0.20.04.4"
},
{
"binary_name": "freerdp2-x11",
"binary_version": "2.2.0+dfsg1-0ubuntu0.20.04.4"
},
{
"binary_name": "libfreerdp-client2-2",
"binary_version": "2.2.0+dfsg1-0ubuntu0.20.04.4"
},
{
"binary_name": "libfreerdp-server2-2",
"binary_version": "2.2.0+dfsg1-0ubuntu0.20.04.4"
},
{
"binary_name": "libfreerdp-shadow-subsystem2-2",
"binary_version": "2.2.0+dfsg1-0ubuntu0.20.04.4"
},
{
"binary_name": "libfreerdp-shadow2-2",
"binary_version": "2.2.0+dfsg1-0ubuntu0.20.04.4"
},
{
"binary_name": "libfreerdp2-2",
"binary_version": "2.2.0+dfsg1-0ubuntu0.20.04.4"
},
{
"binary_name": "libuwac0-0",
"binary_version": "2.2.0+dfsg1-0ubuntu0.20.04.4"
},
{
"binary_name": "libuwac0-dev",
"binary_version": "2.2.0+dfsg1-0ubuntu0.20.04.4"
},
{
"binary_name": "libwinpr-tools2-2",
"binary_version": "2.2.0+dfsg1-0ubuntu0.20.04.4"
},
{
"binary_name": "libwinpr2-2",
"binary_version": "2.2.0+dfsg1-0ubuntu0.20.04.4"
},
{
"binary_name": "libwinpr2-dev",
"binary_version": "2.2.0+dfsg1-0ubuntu0.20.04.4"
},
{
"binary_name": "winpr-utils",
"binary_version": "2.2.0+dfsg1-0ubuntu0.20.04.4"
}
]
},
"package": {
"ecosystem": "Ubuntu:20.04:LTS",
"name": "freerdp2",
"purl": "pkg:deb/ubuntu/freerdp2@2.2.0+dfsg1-0ubuntu0.20.04.4?arch=source\u0026distro=focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "2.2.0+dfsg1-0ubuntu0.20.04.4"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.0.0~git20190204.1.2693389a+dfsg1-1",
"2.0.0~git20190204.1.2693389a+dfsg1-2",
"2.0.0~git20190204.1.2693389a+dfsg1-2build1",
"2.0.0~git20190204.1.2693389a+dfsg1-2build2",
"2.1.1+dfsg1-0ubuntu0.20.04.1",
"2.2.0+dfsg1-0ubuntu0.20.04.1",
"2.2.0+dfsg1-0ubuntu0.20.04.2",
"2.2.0+dfsg1-0ubuntu0.20.04.3"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "freerdp2-dev",
"binary_version": "2.6.1+dfsg1-3ubuntu2.3"
},
{
"binary_name": "freerdp2-shadow-x11",
"binary_version": "2.6.1+dfsg1-3ubuntu2.3"
},
{
"binary_name": "freerdp2-shadow-x11-dbgsym",
"binary_version": "2.6.1+dfsg1-3ubuntu2.3"
},
{
"binary_name": "freerdp2-wayland",
"binary_version": "2.6.1+dfsg1-3ubuntu2.3"
},
{
"binary_name": "freerdp2-wayland-dbgsym",
"binary_version": "2.6.1+dfsg1-3ubuntu2.3"
},
{
"binary_name": "freerdp2-x11",
"binary_version": "2.6.1+dfsg1-3ubuntu2.3"
},
{
"binary_name": "freerdp2-x11-dbgsym",
"binary_version": "2.6.1+dfsg1-3ubuntu2.3"
},
{
"binary_name": "libfreerdp-client2-2",
"binary_version": "2.6.1+dfsg1-3ubuntu2.3"
},
{
"binary_name": "libfreerdp-client2-2-dbgsym",
"binary_version": "2.6.1+dfsg1-3ubuntu2.3"
},
{
"binary_name": "libfreerdp-server2-2",
"binary_version": "2.6.1+dfsg1-3ubuntu2.3"
},
{
"binary_name": "libfreerdp-server2-2-dbgsym",
"binary_version": "2.6.1+dfsg1-3ubuntu2.3"
},
{
"binary_name": "libfreerdp-shadow-subsystem2-2",
"binary_version": "2.6.1+dfsg1-3ubuntu2.3"
},
{
"binary_name": "libfreerdp-shadow-subsystem2-2-dbgsym",
"binary_version": "2.6.1+dfsg1-3ubuntu2.3"
},
{
"binary_name": "libfreerdp-shadow2-2",
"binary_version": "2.6.1+dfsg1-3ubuntu2.3"
},
{
"binary_name": "libfreerdp-shadow2-2-dbgsym",
"binary_version": "2.6.1+dfsg1-3ubuntu2.3"
},
{
"binary_name": "libfreerdp2-2",
"binary_version": "2.6.1+dfsg1-3ubuntu2.3"
},
{
"binary_name": "libfreerdp2-2-dbgsym",
"binary_version": "2.6.1+dfsg1-3ubuntu2.3"
},
{
"binary_name": "libuwac0-0",
"binary_version": "2.6.1+dfsg1-3ubuntu2.3"
},
{
"binary_name": "libuwac0-0-dbgsym",
"binary_version": "2.6.1+dfsg1-3ubuntu2.3"
},
{
"binary_name": "libuwac0-dev",
"binary_version": "2.6.1+dfsg1-3ubuntu2.3"
},
{
"binary_name": "libwinpr-tools2-2",
"binary_version": "2.6.1+dfsg1-3ubuntu2.3"
},
{
"binary_name": "libwinpr-tools2-2-dbgsym",
"binary_version": "2.6.1+dfsg1-3ubuntu2.3"
},
{
"binary_name": "libwinpr2-2",
"binary_version": "2.6.1+dfsg1-3ubuntu2.3"
},
{
"binary_name": "libwinpr2-2-dbgsym",
"binary_version": "2.6.1+dfsg1-3ubuntu2.3"
},
{
"binary_name": "libwinpr2-dev",
"binary_version": "2.6.1+dfsg1-3ubuntu2.3"
},
{
"binary_name": "winpr-utils",
"binary_version": "2.6.1+dfsg1-3ubuntu2.3"
},
{
"binary_name": "winpr-utils-dbgsym",
"binary_version": "2.6.1+dfsg1-3ubuntu2.3"
}
]
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "freerdp2",
"purl": "pkg:deb/ubuntu/freerdp2@2.6.1+dfsg1-3ubuntu2.3?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "2.6.1+dfsg1-3ubuntu2.3"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.3.0+dfsg1-2build1",
"2.3.0+dfsg1-2ubuntu1",
"2.3.0+dfsg1-2ubuntu2",
"2.4.1+dfsg1-1",
"2.4.1+dfsg1-1ubuntu1",
"2.4.1+dfsg1-1ubuntu2",
"2.5.0+dfsg1-1",
"2.6.0+dfsg1-1",
"2.6.1+dfsg1-1",
"2.6.1+dfsg1-3",
"2.6.1+dfsg1-3ubuntu1",
"2.6.1+dfsg1-3ubuntu2",
"2.6.1+dfsg1-3ubuntu2.1",
"2.6.1+dfsg1-3ubuntu2.2"
]
}
],
"aliases": [],
"details": "FreeRDP is a free implementation of the Remote Desktop Protocol (RDP), released under the Apache license. Affected versions of the 3.x beta branch are subject to a Use-After-Free issue in the `avc420_ensure_buffer` and `avc444_ensure_buffer` functions. If the value of `piDstSize[x]` is 0, `ppYUVDstData[x]` will be freed. However, in this case `ppYUVDstData[x]` will not have been updated which leads to a Use-After-Free vulnerability. This issue has been addressed in version 3.0.0-beta3. Users of the 3.x beta releases are advised to upgrade. There are no known workarounds for this vulnerability.",
"id": "UBUNTU-CVE-2023-40187",
"modified": "2025-07-16T05:09:36Z",
"published": "2023-08-31T22:15:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2023-40187"
},
{
"type": "REPORT",
"url": "https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-pwf9-v5p9-ch4f"
},
{
"type": "REPORT",
"url": "https://github.com/FreeRDP/FreeRDP/blob/5be5553e0da72178a4b94cc1ffbdace9ceb153e5/libfreerdp/codec/h264.c#L413-L427"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2023-40187"
}
],
"related": [],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
},
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L",
"type": "CVSS_V3"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2023-40187"
],
"withdrawn": "2025-07-18T16:54:37Z"
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…