FreeRDP
FreeRDP: Double-free of `client_formats` in the rdpsnd server channel on a malformed Client Audio Formats PDU
FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to 3.28.0, rdpsnd_server_recv_formats in channels/rdpsnd/server/rdpsnd_main.c frees context->client_formats on a malformed Client Audio Formats PDU without clearing the owning pointer or num_client_formats. An authenticated RDP client can trigger an error such as a cbSize larger than the remaining record, leave the dangling pointer in the server context, and cause rdpsnd_server_context_free to free the same allocation again at session teardown. This reliably terminates the server and can create allocator-dependent heap corruption. This issue is fixed in version 3.28.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 3.28.0
Fixed in 3.28.0
Mitigation
Upgrade FreeRDP to 3.28.0 or later.
References
- Vendor advisory github.com/FreeRDP/FreeRDP/security/advisories…
- Patch github.com/FreeRDP/FreeRDP/pull/12993
- Patch github.com/FreeRDP/FreeRDP/commit/caf653c0ba1c…
1 more
- Release notes github.com/FreeRDP/FreeRDP/releases/tag/3.28.0
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.