CVE-2026-121402: 
NixOS Analyse et atténuation de la vulnérabilité

Aperçu

CVE-2026-121402 is a NULL pointer dereference vulnerability in FreeRDP that allows a malicious RDP server to crash xfreerdp clients by sending a zero-width RDPGFX ResetGraphics PDU. All FreeRDP versions before 3.32.2 are affected; version 3.32.2 contains the fix. The vulnerability was published on November 3, 2026, with the patch available in the same release. It carries a CVSS v3.1 score of 6.5 (Medium) and a CVSS v4.0 score of 7.1 (High) (GitHub Advisory, FreeRDP Advisory).

Détails techniques

The root cause is improper input validation (CWE-20) combined with a NULL pointer dereference (CWE-476) in FreeRDP's GDI and RDPGFX handling code. The RDPGFX client parser in channels/rdpgfx/client/rdpgfx_main.c rejects dimensions above MAX_SURFACE_SIZE but does not reject zero-width values. When a zero-width RDPGFX_RESET_GRAPHICS_PDU is received, gdi_ResetGraphics commits the zero dimensions and calls gdi_resize_ex(0, h), which frees and nulls gdi->primary before attempting to allocate a replacement; the zero-width allocation via gdi_CreateCompatibleBitmap fails (returning NULL from calloc(0, h)), leaving gdi->primary as NULL without terminating the session. A subsequent ordinary bitmap update reaching gdi_Bitmap_Paint dereferences context->gdi->primary->hdc, causing a SIGSEGV crash (FreeRDP Advisory).

Impact

Successful exploitation results in a denial-of-service condition limited to the xfreerdp client process — the client crashes with a SIGSEGV (exit code 139), terminating the user's RDP session. There is no demonstrated impact on confidentiality or integrity, and no attacker-controlled write or code execution has been shown. The scope is confined to the vulnerable client; no lateral movement or data exfiltration capability has been identified (FreeRDP Advisory, GitHub Advisory).

Exploitabilité

No public proof-of-concept exploit code has been released, and there is no evidence of in-the-wild exploitation at this time. The EPSS score is 0.0, reflecting a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires user interaction — a victim must connect to a malicious RDP server — but no attacker privileges are required on the server side (GitHub Advisory, FreeRDP Advisory).

Étapes d’exploitation

  1. Set up a malicious RDP server: The attacker deploys a custom or modified RDP server capable of sending arbitrary RDPGFX PDUs, using FreeRDP's server-side API or a custom implementation after completing TLS/NLA capability exchange with the client.
  2. Lure the victim to connect: The attacker tricks a Linux user running xfreerdp into connecting to the malicious server (e.g., via phishing, a malicious link, or a compromised RDP gateway).
  3. Complete capability exchange: Allow the normal RDP handshake and RDPGFX capability negotiation to complete so the client enters the graphics pipeline state.
  4. Send zero-width ResetGraphics PDU: Transmit an RDPGFX_CMDID_RESETGRAPHICS PDU with width=0 (and any non-zero height, e.g., 768) and monitorCount=0. This causes gdi_resize_ex to free and null gdi->primary without successfully recreating it.
  5. Send a normal bitmap update: Transmit a valid bitmap update (e.g., a 1×1 pixel BITMAP_UPDATE). The client's gdi_Bitmap_Paint function dereferences the now-NULL gdi->primary->hdc, triggering a SIGSEGV and crashing the xfreerdp client process (FreeRDP Advisory).

Indicateurs de compromis

  • Logs: FreeRDP client logs showing reset error 1359 or similar RDPGFX ResetGraphics error codes immediately before a crash; log entries referencing gdi->primary=(nil) or primary_buffer=(nil) after a resize operation.
  • Process: xfreerdp process terminating with exit code 139 (SIGSEGV); crash stack trace resolving to gdi_Bitmap_Paint in a backtrace or core dump.
  • Network: RDP traffic from an unexpected or untrusted server IP containing an RDPGFX ResetGraphics PDU with zero-width dimensions followed immediately by a bitmap update PDU (FreeRDP Advisory).

Atténuation et solutions de contournement

Update FreeRDP to version 3.32.2 or later, which rejects zero desktop dimensions before invoking the graphics reset callback. As a workaround until patching is possible, avoid connecting xfreerdp clients to untrusted or unknown RDP servers, and restrict RDP connections to known, trusted servers only. The suggested code-level remediation is to reject zero-width/height values in the RDPGFX handler and to preserve the old primary display until a replacement is successfully created, or to close the session if the display state cannot be restored (FreeRDP Advisory, GitHub Advisory).

Ressources supplémentaires

État de correction de la distribution Linux

Corrigez la disponibilité entre les grandes distributions Linux et leurs versions.

Debian

Affecté

bookworm

freerdp2

Affecté

sid

freerdp3: 3.32.2+dfsg-1

Fixé

trixie

freerdp3

Affecté

Ubuntu

Inconnu

bionic (esm-apps)

freerdp

Inconnu

bionic (esm-infra)

freerdp2

Inconnu

devel

freerdp3

Inconnu

focal (esm-infra)

freerdp2

Inconnu

jammy

freerdp2

Inconnu

noble

freerdp2

Inconnu

noble (esm-apps)

freerdp2

Inconnu

resolute

freerdp3

Inconnu

RHEL / CentOS

Fixé

RHEL 8

freerdp.src

Affecté

RHEL 9

freerdp.src

Affecté

RHEL 10

freerdp-2:3.32.2-1.el10_2.src

Fixé

Source: Ce rapport a été généré à l’aide de l’IA

Connexe NixOS Vulnérabilités :

CVE ID

Gravité

Partition

Technologies

Nom du composant

Exploit CISA KEV

A corrigé

Date de publication

CVE-2026-121964HIGH8.7
  • NixOS logoNixOS
  • freerdp
NonOuiNov 04, 2026
CVE-2026-120757MEDIUM6.9
  • NixOS logoNixOS
  • hdf5
NonOuiNov 03, 2026
CVE-2026-120758MEDIUM5.4
  • NixOS logoNixOS
  • hdf5
NonOuiNov 03, 2026
CVE-2026-120755MEDIUM4.7
  • NixOS logoNixOS
  • hdf5
NonOuiNov 03, 2026
CVE-2026-120756LOW1.9
  • NixOS logoNixOS
  • cpe:2.3:a:hdfgroup:hdf5
NonOuiNov 03, 2026

Évaluation gratuite des vulnérabilités

Évaluez votre posture de sécurité cloud

Évaluez vos pratiques de sécurité cloud dans 9 domaines de sécurité afin d’évaluer votre niveau de risque et d’identifier les lacunes dans vos défenses.

Évaluation de la demande

Ressources Wiz supplémentaires

Obtenez une démo personnalisée

Prêt(e) à voir Wiz en action ?

"La meilleure expérience utilisateur que j’ai jamais vue, offre une visibilité totale sur les workloads cloud."
David EstlickRSSI
"Wiz fournit une interface unique pour voir ce qui se passe dans nos environnements cloud."
Adam FletcherChef du service de sécurité
"Nous savons que si Wiz identifie quelque chose comme critique, c’est qu’il l’est réellement."
Greg PoniatowskiResponsable de la gestion des menaces et des vulnérabilités