CVE-2026-121955

FreeRDP before 3.32.2 Use-After-Free in Smartcard Emulation ReleaseContext

Published Nov 4, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
FreeRDP before 3.32.2 contains a use-after-free vulnerability in Emulate_SCardReleaseContext that frees the emulated SCardContext before its worker thread is cancelled and joined. A malicious server can send ESTABLISHCONTEXT, a long-timeout GETSTATUSCHANGE, then RELEASECONTEXT smartcard IRPs to corrupt heap memory or crash clients using smartcard emulation.

Analysis

AI-generated

Technical impact

FreeRDP versions before 3.32.2 contain a use-after-free flaw in the Smartcard Emulation implementation. The bug occurs in the Emulate_SCardReleaseContext routine, which frees the emulated SCardContext before its worker thread is cancelled and joined. A malicious RDP server can therefore send a sequence of smart card IRPs—ESTABLISHCONTEXT, a long-timeout GETSTATUSCHANGE, and then RELEASECONTEXT—to corrupt heap memory or crash the client application.

Affected Systems

The vulnerability affects the FreeRDP client, specifically all releases earlier than 3.32.2. Users running those versions of the FreeRDP software are exposed to the described memory corruption risks.

Risk and Exploitability

The CVSS score of 8.7 indicates a high severity impact. The EPSS score of < 1% indicates a very low exploitation probability, and the vulnerability is not listed in CISA's KEV catalog. The attack requires a malicious RDP server and the ability to communicate with a FreeRDP client. When the attacker can drive the client to execute the described sequence of smart card requests, the use‑after‑free can lead to arbitrary memory corruption and potentially remote code execution. Based on the description, it is inferred that arbitrary code execution may be possible if the memory corruption is exploited. Given the high CVSS and the remote attack surface, the risk to affected clients is substantial.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade FreeRDP to version 3.32.2 or later to apply the vendor patch for the use‑after‑free flaw.
  • If an immediate upgrade is not feasible, disable smartcard emulation in the client configuration to eliminate the vulnerable code path.
  • Restrict or block smartcard IRP traffic between clients and servers using network firewall rules or security group policies to prevent malicious servers from sending ESTABLISHCONTEXT, GETSTATUSCHANGE, or RELEASECONTEXT commands.

Generated by OpenCVE AI on November 6, 2026 at 15:58 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description FreeRDP before 3.32.2 contains a use-after-free vulnerability in Emulate_SCardReleaseContext that frees the emulated SCardContext before its worker thread is cancelled and joined. A malicious server can send ESTABLISHCONTEXT, a long-timeout GETSTATUSCHANGE, then RELEASECONTEXT smartcard IRPs to corrupt heap memory or crash clients using smartcard emulation.
Title FreeRDP before 3.32.2 Use-After-Free in Smartcard Emulation ReleaseContext
First Time appeared Freerdp
Freerdp freerdp
Weaknesses CWE-416
CPEs cpe:2.3:a:freerdp:freerdp:*:*:*:*:*:*:*:*
Vendors & Products Freerdp
Freerdp freerdp
References
Metrics cvssV3_1

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

cvssV4_0

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

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 4, 2026, 6:26 PM
Reserved
Nov 4, 2026, 12:46 PM
Status
Analyzed
Published
Nov 4, 2026, 4:17 PM
Modified
Nov 5, 2026, 7:31 PM
Severity
Important
Public date
Nov 4, 2026, 3:33 PM