Read the docs

Reachable assertion in FreeRDP URBDRC isochronous transfer

Priority LOW 39CWE-617Published · Updated

Key facts

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

Attack profile from CVSS 3.1 · GHSA-9qqc-m43j-g4r2. Fix status from GitHub. Impact type from CWE-617.

Summary

FreeRDP up to and including 3.32.0 has a reachable assertion in its URBDRC USB redirection channel. The isochronous transfer path reads an OutputBufferSize value from the RDP server and validates it only for OUT transfers, so a value above INT32_MAX reaches an integer cast that fails an assertion (CWE-617). A malicious RDP server can send such a transfer and terminate the FreeRDP client process, causing denial of service without user interaction beyond connecting to the server.

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

Description from the GitHub advisory

### Summary `urb_isoch_transfer()` in `channels/urbdrc/client/data_transfer.c` reads `OutputBufferSize` from the network stream (controlled by the RDP server) but validates it only for OUT-direction transfers. For IN-direction, the value flows unchecked into `libusb_udev_isoch_transfer()`, where `WINPR_ASSERTING_INT_CAST(int, BufferSize)` fires a reachable assertion when `BufferSize > INT32_MAX`, terminating the FreeRDP client process. Same class as CVE-2026-91961 (control_transfer path), different function. ### Details **File 1:** `channels/urbdrc/client/data_transfer.c` ~line 994 **File 2:** `channels/urbdrc/client/libusb/libusb_udevice.c` ~line 1421 **Tested on commit:** `7c3b4bd` **CWE:** CWE-617 (Reachable Assertion) **Vulnerable code — missing IN-direction check:** ```c Stream_Read_UINT32(s, OutputBufferSize); if (transferDir == USBD_TRANSFER_DIRECTION_OUT) { if (!Stream_CheckAndLogRequiredLength(TAG, s, OutputBufferSize)) return ERROR_INVALID_DATA; } // IN direction: OutputBufferSize is never range-checked before use ``` **Assertion fires in libusb backend:** ```c libusb_fill_iso_transfer( iso_transfer, pdev->libusb_handle, WINPR_ASSERTING_INT_CAST(uint8_t, EndpointAddress), Stream_Pointer(user_data->data), WINPR_ASSERTING_INT_CAST(int, BufferSize), // ← assert fires if BufferSize > INT32_MAX WINPR_ASSERTING_INT_CAST(int, NumberOfPackets), func_iso_callback, user_data, Timeout); ``` When `BufferSize = 0x80000001`: cast to `int` flips sign positive→negative, `WINPR_ASSERTING_INT_CAST` sign-check assert fires → `winpr_int_assert()` (WINPR_NORETURN) → **process terminated**. **Contrast — patched `libusb_udev_control_transfer` has the guard (line ~1456):** ```c if (*BufferSize > UINT16_MAX) // ← explicit check present here { WLog_Print(...); return FALSE; } ``` `libusb_udev_isoch_transfer` has no equivalent check. ### PoC Malicious RDP server sends `TS_URB_ISOCH_TRANSFER` with: - `TransferDirection = USBD_TRANSFER_DIRECTION_IN` - `NumberOfPackets = 1` (valid, passes stream length check) - `OutputBufferSize = 0x80000001` Client reads `OutputBufferSize` without bounds check (IN path skips validation), passes it to `libusb_udev_isoch_transfer`, `WINPR_ASSERTING_INT_CAST(int, 0x80000001)` sign-check fails → assertion → client crashes. ### Impact A malicious or compromised RDP server can crash the FreeRDP client via the USB redirection channel (URBDRC). Denial of Service. No user interaction required beyond connecting to the server. ### Proposed Fix Add bounds check in `libusb_udev_isoch_transfer` before the cast: ```c if (BufferSize > (UINT32)INT32_MAX) { WLog_Print(urbdrc->log, WLOG_ERROR, "BufferSize %" PRIu32 " > INT32_MAX, rejecting isoch transfer", BufferSize); async_transfer_user_data_free(user_data); return -1; } ```

Why it matters now

Fix Fixed FreeRDP (c): 3.32.1

SSVC decision points

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

Affected products

VendorProductAffected versionsFixed inStatusSource
—FreeRDP (c)<= 3.32.03.32.1Patch availableGHSA-9qqc-m43j-g4r2
  • FreeRDP (c) Vendor— Affected <= 3.32.0 Fixed in 3.32.1 Patch available GHSA-9qqc-m43j-g4r2

Remediation

Upgrade FreeRDP to version 3.32.1, which fixes this issue.

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

  • Fix · GHSA-9qqc-m43j-g4r2 FreeRDP (c) Fixed in 3.32.1 Advisory →

Timeline

  1. 2026-11-12 Threatist record created from GHSA-9qqc-m43j-g4r2

References

Sources

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