CVE-2026-25955

FreeRDP has heap-use-after-free in xf_AppUpdateWindowFromSurface (stale XImage)

Published Feb 25, 2026 CVSS 4.0 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to version 3.23.0, `xf_AppUpdateWindowFromSurface` reuses a cached `XImage` whose `data` pointer references a freed RDPGFX surface buffer, because `gdi_DeleteSurface` frees `surface->data` without invalidating the `appWindow->image` that aliases it. Version 3.23.0 fixes the issue.

Analysis

AI-generated

Technical impact

The flaw is a heap‑use‑after‑free in the FreeRDP client’s window update routine. A cached XImage continues to reference a surface buffer that has already been freed because the surface delete routine does not clear the aliasing pointer. If an attacker can control RDP graphics data, the client may read or write to unintended memory, leading to crashes, memory corruption, or even arbitrary code execution in rare circumstances.

Affected Systems

The vulnerability is present in the FreeRDP client implementation. All releases older than 3.23.0 are affected and may run into the stale XImage reference bug. The affected product is FreeRDP:FreeRDP, and users deploying any version prior to 3.23.0 could be impacted.

Risk and Exploitability

The CVSS score of 5.5 indicates moderate severity, and the EPSS score of less than 1% suggests exploitation is unlikely. The vulnerability is not listed in the CISA KEV catalog. Exploitation would likely occur through a remote RDP client that sends crafted graphics updates, triggering the use‑after‑free and causing a crash or memory corruption. Denial of service is the most probable outcome, with a small risk of more severe memory corruption if the attacker has sufficient control over the graphics buffer.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update FreeRDP to version 3.23.0 or later, which removes the stale XImage reference.
  • Restrict RDP access to trusted users and enforce strong authentication methods to reduce exposure to untrusted clients.
  • Monitor client logs for segmentation faults or crashes and isolate affected sessions promptly.

Generated by OpenCVE AI on April 17, 2026 at 14:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8105-1 FreeRDP vulnerabilities
History
Type Values Removed Values Added
CPEs cpe:2.3:a:freerdp:freerdp:*:*:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L'}

cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Freerdp
Freerdp freerdp
Vendors & Products Freerdp
Freerdp freerdp
Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L'}

threat_severity

Moderate

Type Values Removed Values Added
Description FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to version 3.23.0, `xf_AppUpdateWindowFromSurface` reuses a cached `XImage` whose `data` pointer references a freed RDPGFX surface buffer, because `gdi_DeleteSurface` frees `surface->data` without invalidating the `appWindow->image` that aliases it. Version 3.23.0 fixes the issue.
Title FreeRDP has heap-use-after-free in xf_AppUpdateWindowFromSurface (stale XImage)
Weaknesses CWE-416
References
Metrics cvssV4_0

{'score': 5.5, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Feb 26, 2026, 3:54 PM
Reserved
Feb 9, 2026, 5:13 PM
Status
Analyzed
Published
Feb 25, 2026, 9:16 PM
Modified
Jun 17, 2026, 10:25 AM
Severity
Moderate
Public date
Feb 25, 2026, 8:32 PM