Read the docs

Out-of-bounds read and use after free in FreeRDP location channel

Priority LOW 39CWE-125Published · Updated

Key facts

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

Attack profile from CVSS 3.1 · GHSA-x863-43r4-f7c2. Fix status from GitHub.

Summary

FreeRDP up to and including 3.33.0 reads the location channel's client version from the wrong static table in location_send, reading past the end of that table (CWE-125). The channel also uses memory after it has been freed when LocationSend is called after the channel closes. A network attacker without privileges and without user interaction can affect availability with low impact.

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

Description from the GitHub advisory

FreeRDP 3.32.2 (and master as of 2026-10-29, 61ad26c1), `channels/location/client/location_main.c`. `location_send()` casts `loc->baseDynPlugin.channel_callbacks` (the static `location_callbacks` table, 32 bytes) to `LOCATION_CALLBACK*` and reads `clientVersion` 28 bytes past its end, so positions with 7 values go as version 1 or 2 at random (ASan: global-buffer-overflow at location_main.c:377). Fix: use `cb->channel_callback`. Also, `location_on_close` frees the channel callback without clearing `listener_callback->channel_callback` or `->channel`, so a `LocationSend` after the close uses freed memory. The patch we apply on 3.32.2: ```diff diff --git a/channels/location/client/location_main.c b/channels/location/client/location_main.c index 6c6fb95..cdda2cc 100644 --- a/channels/location/client/location_main.c +++ b/channels/location/client/location_main.c @@ -348,8 +348,9 @@ static UINT location_send(LocationClientContext* context, LOCATION_PDUTYPE type, IWTSVirtualChannel* channel = cb->channel; WINPR_ASSERT(channel); - const LOCATION_CALLBACK* callback = - (const LOCATION_CALLBACK*)loc->baseDynPlugin.channel_callbacks; + /* The callback of the open channel holds the version agreed with the server: channel_callbacks is + * the table of the functions of the plugin, not a LOCATION_CALLBACK. */ + const LOCATION_CALLBACK* callback = (const LOCATION_CALLBACK*)cb->channel_callback; WINPR_ASSERT(callback); UINT32 res = ERROR_INTERNAL_ERROR; ```

Why it matters now

Fix Fixed FreeRDP (c): 3.33.1

SSVC decision points

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

Affected products

VendorProductAffected versionsFixed inStatusSource
—FreeRDP (c)<= 3.33.03.33.1Patch availableGHSA-x863-43r4-f7c2
  • FreeRDP (c) Vendor— Affected <= 3.33.0 Fixed in 3.33.1 Patch available GHSA-x863-43r4-f7c2

Remediation

Upgrade FreeRDP to version 3.33.1, which fixes the flaw.

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

  • Fix · GHSA-x863-43r4-f7c2 FreeRDP (c) Fixed in 3.33.1 Advisory →

Timeline

  1. 2026-11-17 Threatist record created from GHSA-x863-43r4-f7c2

References

Sources

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