{"id":"CVE-2026-31883","aliases":["CVE-2026-31883"],"related":[],"kind":"vulnerability","state":"published","title":"FreeRDP has a `size_t` underflow in ADPCM decoder leads to heap-buffer-overflow write","summary":"FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to 3.24.0, a size_t underflow in the IMA-ADPCM and MS-ADPCM audio decoders leads to heap-buffer-overflow write via the RDPSND audio channel. In libfreerdp/codec/dsp.c, the IMA-ADPCM and MS-ADPCM decoders subtract block header sizes from a size_t variable without checking for underflow. When nBlockAlign (received from the server) is set such that size % block_size == 0 triggers the header parsing at a point where size is smaller than the header (4 or 8 bytes), the subtraction wraps size to ~SIZE_MAX. The while (size > 0) loop then continues for an astronomical number of iterations. This vulnerability is fixed in 3.24.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to 3.24.0, a size_t underflow in the IMA-ADPCM and MS-ADPCM audio decoders leads to heap-buffer-overflow write via the RDPSND audio channel. In libfreerdp/codec/dsp.c, the IMA-ADPCM and MS-ADPCM decoders subtract block header sizes from a size_t variable without checking for underflow. When nBlockAlign (received from the server) is set such that size % block_size == 0 triggers the header parsing at a point where size is smaller than the header (4 or 8 bytes), the subtraction wraps size to ~SIZE_MAX. The while (size > 0) loop then continues for an astronomical number of iterations. This vulnerability is fixed in 3.24.0.","source":"cvelist"},{"lang":"es","text":"FreeRDP es una implementación gratuita del Protocolo de Escritorio Remoto. Anterior a la 3.24.0, un subdesbordamiento de size_t en los decodificadores de audio IMA-ADPCM y MS-ADPCM conduce a una escritura de desbordamiento de búfer de pila a través del canal de audio RDPSND. En libfreerdp/codec/dsp.c, los decodificadores IMA-ADPCM y MS-ADPCM restan tamaños de encabezado de bloque de una variable size_t sin comprobar si hay subdesbordamiento. Cuando nBlockAlign (recibido del servidor) se establece de tal manera que size % block_size == 0 activa el análisis del encabezado en un punto donde size es menor que el encabezado (4 u 8 bytes), la resta envuelve size a ~SIZE_MAX. El bucle while (size &gt; 0) entonces continúa por un número astronómico de iteraciones. Esta vulnerabilidad se corrige en la 3.24.0.","source":"nvd"}],"published":"2026-03-13T17:35:17.411Z","modified":"2026-06-17T10:34:41.517Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-122","CWE-191"],"affected":[{"ranges":[{"version":"< 3.24.0","status":"affected"}],"vendor":"FreeRDP","product":"FreeRDP","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"3.24.0"}],"vendor":"freerdp","product":"freerdp","cpe":"cpe:2.3:a:freerdp:freerdp:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-85x9-4xxp-xhm5","tags":["exploit","patch","vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/FreeRDP/FreeRDP/commit/16df2300e1e3f5a51f68fb1626429e58b531b7c8","tags":["patch","x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-03-16T17:02:49.465Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31883","url":"https://www.cve.org/CVERecord?id=CVE-2026-31883","licence":"CVE Terms of Use","modified":"2026-03-16T17:02:52.737Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31883","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31883","licence":"Public domain","modified":"2026-06-17T10:34:41.517Z"}],"updatedAt":"2026-11-25T22:59:15.884Z","epss":{"score":0.0036,"percentile":0.31805,"date":"2026-12-01T12:00:22.000Z"}}