---
id: CVE-2026-121955
title: FreeRDP before 3.32.2 Use-After-Free in Smartcard Emulation ReleaseContext
summary: >-
  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-time…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cvssSource: cna
cwe:
  - CWE-416
vendor: FreeRDP
product: FreeRDP
affected:
  - FreeRDP < 3.32.2
ssvc:
  exploitation: poc
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-11-04T18:25:56.418577Z'
exploitAvailable: true
published: '2026-11-04'
updated: '2026-11-04'
sourceUpdated: '2026-11-04T18:26:28.042Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-121955'
references:
  - url: 'https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-983v-jp34-f3fm'
    label: GitHub Security Advisory (GHSA-983v-jp34-f3fm)
  - url: >-
      https://www.vulncheck.com/advisories/freerdp-before-3.32.2-use-after-free-in-smartcard-emulation-releasecontext
    label: >-
      VulnCheck Advisory: FreeRDP before 3.32.2 Use-After-Free in Smartcard
      Emulation ReleaseContext
tags:
  - cve.org
  - exploit-available
ingestedAt: '2026-11-05T21:36:00.488Z'
---

## Overview

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.

## Affected

- `FreeRDP < 3.32.2`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
