CVE-2026-31884: FreeRDP has a division-by-zero in ADPCM decoders when `nBlockAlign` is 0
FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to 3.24.0, division by zero in MS-ADPCM and IMA-ADPCM decoders when nBlockAlign is 0, leading to a crash. In libfreerdp/codec/dsp.c, both ADPCM decoders use size % blocksize where blocksize = context->common.format.nBlockAlign. The nBlockAlign value comes from the Server Audio Formats PDU on the RDPSND channel. The value 0 is not validated anywhere before reaching the decoder. When nBlockAlign = 0, the modulo operation causes a SIGFPE (floating point exception) crash. This vulnerability is fixed in 3.24.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/freerdp3to a version that resolves this vulnerability.Fixed in 3.30.0+dfsg-0ubuntu0.24.04.1 - Upgrade
Upgrade
alpine/freerdpto a version that resolves this vulnerability.Fixed in 3.24.0-r0 - Upgrade
Upgrade
debian/freerdp2to a version that resolves this vulnerability.Fixed in 2.11.7+dfsg1-6~deb12u2 - Upgrade
Upgrade
debian/freerdp3to a version that resolves this vulnerability.Fixed in 3.15.0+dfsg-2.1+deb13u2 - Upgrade
Upgrade
debian/freerdp3to a version that resolves this vulnerability.Fixed in 3.24.0+dfsg-1 - Upgrade
Upgrade
debian/freerdp3to a version that resolves this vulnerability.Fixed in 3.15.0+dfsg-2.1+deb13u2Fixed in 3.24.0+dfsg-1 - Upgrade
Upgrade
FreeRDPto a version that resolves this vulnerability.Fixed in 3.24.0
Event History
Frequently Asked Questions
What is the severity of CVE-2026-31884?
CVE-2026-31884 is classified as a high severity vulnerability due to the potential for application crashes.
How do I fix CVE-2026-31884?
To fix CVE-2026-31884, update your FreeRDP software to version 3.24.0 or later.
What software is affected by CVE-2026-31884?
CVE-2026-31884 affects FreeRDP versions prior to 3.24.0.
What is the nature of the issue in CVE-2026-31884?
CVE-2026-31884 involves a division-by-zero error in ADPCM decoders when nBlockAlign is set to 0.
Can CVE-2026-31884 cause denial of service?
Yes, CVE-2026-31884 can lead to a denial of service by crashing the application.