CVE-2026-22852: Freerdp Audin Formats Realloc Without Reset

Reassignment of an AUDIO_FORMAT array via audio_formats_new() without first freeing the previous array (audio_formats_free) and resetting the associated formats_count counter to zero. Repeated execution (for example, multiple MSG_SNDIN_FORMATS PDUs from a remote server) causes the stale counter to drive writes past the end of the newly allocated array (CVE-2

Provally CuratedPublic repositoryHighHigh confidenceVerifiedApache-2.0C
greprules fetch cve-2026-22852-freerdp-audin-formats-realloc-without-reset --engine opengrep

Description

Reassignment of an AUDIO_FORMAT array via audio_formats_new() without first freeing the previous array (audio_formats_free) and resetting the associated formats_count counter to zero. Repeated execution (for example, multiple MSG_SNDIN_FORMATS PDUs from a remote server) causes the stale counter to drive writes past the end of the newly allocated array (CVE-2