CVE-2026-22857

FreeRDP has a heap-use-after-free in irp_thread_func

Published Jan 14, 2026 CVSS 4.0 · 6.8 Medium EPSS < 1% KEV · Not listed
Description
FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to 3.20.1, a heap use-after-free occurs in irp_thread_func because the IRP is freed by irp->Complete() and then accessed again on the error path. This vulnerability is fixed in 3.20.1.

Analysis

AI-generated

Technical impact

A heap use‑after‑free occurs in FreeRDP’s irp_thread_func when an IRP object is freed and then accessed again along an error path. This flaw can potentially lead to memory corruption if the error path is triggered. The weakness is identified as CWE‑416.

Affected Systems

All installations of FreeRDP older than release 3.20.1 are affected.

Risk and Exploitability

The CVSS score of 6.8 indicates moderate severity, while the EPSS score of less than 1 % indicates a very low exploitation probability at present. The vulnerability is not listed in the CISA KEV catalog. Based on the description, exploiting the flaw would require an attacker to trigger the error path after the IRP has been freed, which would need access to the RDP service.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade FreeRDP to version 3.20.1 or later to apply the fix for the heap use‑after‑free flaw.
  • If an upgrade cannot be performed immediately, restrict RDP traffic to trusted networks or disable the RDP service from untrusted networks to reduce exposure.
  • Monitor system logs for anomalous RDP activity that may indicate an attempt to exploit the flaw.

Generated by OpenCVE AI on April 18, 2026 at 19:13 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': 5.6, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/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
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Freerdp
Freerdp freerdp
Vendors & Products Freerdp
Freerdp freerdp
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to 3.20.1, a heap use-after-free occurs in irp_thread_func because the IRP is freed by irp->Complete() and then accessed again on the error path. This vulnerability is fixed in 3.20.1.
Title FreeRDP has a heap-use-after-free in irp_thread_func
Weaknesses CWE-416
References
Metrics cvssV4_0

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

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Feb 26, 2026, 3:04 PM
Reserved
Jan 12, 2026, 4:20 PM
Status
Analyzed
Published
Jan 14, 2026, 6:16 PM
Modified
Jun 17, 2026, 10:20 AM
Severity
Moderate
Public date
Jan 14, 2026, 5:53 PM