Read the docs

Reachable assertion in FreeRDP RemoteFX tile handling aborts client

Priority MEDIUM 44CWE-617Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Fixed

Attack profile from CVSS 3.1 · GHSA-f6v9-vx5q-vjpf. Fix status from GitHub. Impact type from CWE-617.

Summary

FreeRDP versions up to and including 3.33.0 are affected. A missing check on the RemoteFX tile x-coordinate lets an out-of-range value reach an assertion (CWE-617), which the client treats as a fatal error. A malicious RDP server can abort a FreeRDP client by sending a crafted RemoteFX tile, even when the client did not request RemoteFX.

Written with Claude Haiku 5.5 from the sources below · 2026-11-17

Description from the GitHub advisory

## Summary A malicious RDP server can terminate a FreeRDP 3.33.0 client by sending a RemoteFX tile whose x-coordinate exceeds the 16-bit limit after the destination offset is added. The default graphics pipeline accepts the command even when the client did not request RemoteFX. A build with `WITH_VERBOSE_WINPR_ASSERT=ON` (the CMake default) aborts. ## Details [`rfx_process_message_tileset()`](https://github.com/FreeRDP/FreeRDP/blob/3.33.0/libfreerdp/codec/rfx.c#L1045-L1075) reads server-controlled `xIdx` and sets `tile->x = xIdx * 64` without checking it against the destination. Later [`rfx_process_message()`](https://github.com/FreeRDP/FreeRDP/blob/3.33.0/libfreerdp/codec/rfx.c#L1367-L1380) asserts `left + tile->x <= UINT16_MAX`. With `xIdx=1023`, `tile->x=65472`; a `WireToSurface1` destination `left=100` makes the sum 65572 and aborts the client. The region coordinates remain valid. [`checkSurfaceCommand()`](https://github.com/FreeRDP/FreeRDP/blob/3.33.0/channels/rdpgfx/client/rdpgfx_main.c#L1523-L1540) accepts CAVIDEO without checking the client's advertised codec preference. The `rfx.c` file is unchanged on `master` at `52aac4e` (checked November 4, 2026). ## Proof of concept On Linux with Xvfb, CMake, Ninja, a C compiler, and FreeRDP build dependencies, the attached patch changes only the local shadow test server. It embeds a 158-byte RemoteFX message and sends a GFX `WireToSurface1` CAVIDEO command. `FREERDP_RFX_VALID=1` changes only `xIdx` to zero for the control. Run from a disposable directory containing `poc.zip`: ```sh unzip poc.zip -d poc git clone --depth 1 --branch 3.33.0 https://github.com/FreeRDP/FreeRDP.git freerdp-3.33.0 cd freerdp-3.33.0 git apply ../poc/rfx_tile_shadow_injection.patch cmake -S . -B build-poc -G Ninja -DCMAKE_BUILD_TYPE=Release \ -DWITH_CLIENT=ON -DWITH_X11=ON -DWITH_CLIENT_SDL=OFF \ -DWITH_SERVER=ON -DWITH_SHADOW=ON -DWITH_CHANNELS=ON \ -DWITH_WINPR_TOOLS=ON -DWITH_KRB5=OFF -DWITH_FUSE=OFF \ -DWITH_CUPS=OFF -DWITH_PCSC=OFF -DWITH_WAYLAND=OFF \ -DWITH_FFMPEG=OFF -DWITH_GFX_H264=OFF -DWITH_GFX_AV1=OFF \ -DWITH_VERBOSE_WINPR_ASSERT=ON cmake --build build-poc --target xfreerdp freerdp-shadow-cli -j 4 Xvfb :99 -screen 0 1024x768x24 -nolisten tcp & ``` Open the next terminals in the directory where `freerdp-3.33.0` was cloned. In a second terminal, start a fresh test server for each run: ```sh cd freerdp-3.33.0 DISPLAY=:99 build-poc/server/shadow/cli/freerdp-shadow-cli \ /bind-address:127.0.0.1 /port:38414 /sec:tls -auth \ -gfx-avc420 -gfx-avc444 -gfx-planar +gfx-rfx -gfx-progressive ``` In a third terminal, connect the client: ```sh cd freerdp-3.33.0 DISPLAY=:99 timeout 10 build-poc/client/X11/xfreerdp \ /v:127.0.0.1:38414 /u:test /p:test /sec:tls /cert:ignore ``` The unmodified v3.33.0 Release client aborted at `rfx.c:rfx_process_message:1373` (SIGABRT; shell status **134**) without a `/gfx` option. For the control, restart the server with `FREERDP_RFX_VALID=1` prefixed to the same command; the client stayed connected until timeout (**124**). `/cert:ignore` applies only to the disposable local server. ## Impact Availability for clients whose graphics pipeline is open and whose build has verbose WinPR assertions enabled. A client need not request RemoteFX explicitly. One malformed CAVIDEO tile from a malicious or compromised server terminates the connecting client process.

Why it matters now

Fix Fixed FreeRDP: 3.33.1

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—FreeRDP<= 3.33.03.33.1Patch availableGHSA-f6v9-vx5q-vjpf
  • FreeRDP Vendor— Affected <= 3.33.0 Fixed in 3.33.1 Patch available GHSA-f6v9-vx5q-vjpf

Remediation

Upgrade FreeRDP to version 3.33.1, which fixes this flaw.

Written with Claude Haiku 5.5 from the sources below · 2026-11-17

  • Fix · GHSA-f6v9-vx5q-vjpf FreeRDP Fixed in 3.33.1 Advisory →

Timeline

  1. 2026-11-17 Threatist record created from GHSA-f6v9-vx5q-vjpf

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences