# CVE-2026-31884: FreeRDP has a division-by-zero in ADPCM decoders when `nBlockAlign` is 0

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 32% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-13T17:36:57.722Z
- Modified: 2026-06-17T10:34:41.630Z
- Weaknesses: CWE-369
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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 % block_size where block_size = 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.

(As written by CVE List.)

## Affected

- FreeRDP FreeRDP: < 3.24.0; before 3.24.0

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-jp7m-94ww-p56r> (exploit, patch, vendor-advisory)
- <https://github.com/FreeRDP/FreeRDP/commit/03b48b3601d867afccac1cdc6081de7a275edce7> (patch)
- <https://github.com/FreeRDP/FreeRDP/commit/16df2300e1e3f5a51f68fb1626429e58b531b7c8> (patch)

## Sources

- CVE List: [CVE-2026-31884](https://www.cve.org/CVERecord?id=CVE-2026-31884), CVE Terms of Use, modified 2026-03-16
- NVD: [CVE-2026-31884](https://nvd.nist.gov/vuln/detail/CVE-2026-31884), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-31884 · Whole record: https://cve.day/CVE-2026-31884.json · Rebuilt by cve.day 2026-11-25T22:59:15.884Z
