CVE-2026-24684: Freerdp Rdpsnd Missing Thread Terminate

Resources are freed via StreamPool_Return or audio_formats_free without prior termination of the plugin/context thread. This causes a use-after-free if the background thread accesses these resources. Ensure thread synchronization (e.g., WaitForSingleObject, or a helper termination function) occurs before freeing context fields.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0C
greprules fetch cve-2026-24684-freerdp-rdpsnd-missing-thread-terminate --engine opengrep

Description

Resources are freed via StreamPool_Return or audio_formats_free without prior termination of the plugin/context thread. This causes a use-after-free if the background thread accesses these resources. Ensure thread synchronization (e.g., WaitForSingleObject, or a helper termination function) occurs before freeing context fields.