CVE-2026-26965
JSON

8.8high

FreeRDP has Out-of-bounds Write

Severity
8.8high CVSS:3.1 by GitHub_M
Exploit likelihood
0.98% (higher than 61% of CVEs)
Published
Last changed
Assigned by
GitHub_M

Description

FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to version 3.23.0, in the RLE planar decode path, `planar_decompress_plane_rle()` writes into `pDstData` at `((nYDst+y) * nDstStep) + (4*nXDst) + nChannel` without verifying that `(nYDst+nSrcHeight)` fits in the destination height or that `(nXDst+nSrcWidth)` fits in the destination stride. When `TempFormat != DstFormat`, `pDstData` becomes `planar->pTempData` (sized for the desktop), while `nYDst` is only validated against the **surface** by `is_within_surface()`. A malicious RDP server can exploit this to perform a heap out-of-bounds write with attacker-controlled offset and pixel data on any connecting FreeRDP client. The OOB write reaches up to 132,096 bytes past the temp buffer end, and on the brk heap (desktop ≤ 128×128), an adjacent `NSC_CONTEXT` struct's `decode` function pointer is overwritten with attacker-controlled pixel data — control-flow–relevant corruption (function pointer overwritten) demonstrated under deterministic heap layout (`nsc->decode = 0xFF414141FF414141`). Version 3.23.0 fixes the vulnerability.

Affected

Product or packageVersionsReported by
FreeRDP FreeRDP< 3.23.0, before 3.23.0CVE List, NVD
freerdpNot specified
Not affected: from 2:3.10.3-12.el10_2.2 before *, from 2:3.10.3-5.el10_1.3 before *, from 2:3.10.3-3.el10_0.3 before *, from 0:2.1.1-5.el7_9.5 before *, from 2:2.11.7-4.el8_10 before *, from 2:2.0.0-46.rc4.el8_2.8 before *
CVE List

All scores

GitHub_M8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
redhat-SADP8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Classification

CWE-787

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to version 3.23.0, in the RLE planar decode path, `planar_decompress_plane_rle()` writes into `pDstData` at `((nYDst+y) * nDstStep) + (4*nXDst) + nChannel` without verifying that `(nYDst+nSrcHeight)` fits in the destination height or that `(nXDst+nSrcWidth)` fits in the destination stride. When `TempFormat != DstFormat`, `pDstData` becomes `planar->pTempData` (sized for the desktop), while `nYDst` is only validated against the **surface** by `is_within_surface()`. A malicious RDP server can exploit this to perform a heap out-of-bounds write with attacker-controlled offset and pixel data on any connecting FreeRDP client. The OOB write reaches up to 132,096 bytes past the temp buffer end, and on the brk heap (desktop ≤ 128×128), an adjacent `NSC_CONTEXT` struct's `decode` function pointer is overwritten with attacker-controlled pixel data — control-flow–relevant corruption (function pointer overwritten) demonstrated under deterministic heap layout (`nsc->decode = 0xFF414141FF414141`). Version 3.23.0 fixes the vulnerability.

NVD (es)

FreeRDP es una implementación gratuita del Protocolo de Escritorio Remoto. Antes de la versión 3.23.0, en la ruta de decodificación planar RLE, planar_decompress_plane_rle() escribe en pDstData en ((nYDst+y) * nDstStep) + (4*nXDst) + nChannel sin verificar que (nYDst+nSrcHeight) encaje en la altura de destino o que (nXDst+nSrcWidth) encaje en el paso de destino. Cuando TempFormat != DstFormat, pDstData se convierte en planar-&gt;pTempData (dimensionado para el escritorio), mientras que nYDst solo se valida contra la superficie mediante is_within_surface(). Un servidor RDP malicioso puede explotar esto para realizar una escritura fuera de límites en el heap con un desplazamiento y datos de píxeles controlados por el atacante en cualquier cliente FreeRDP que se conecte. La escritura OOB alcanza hasta 132.096 bytes más allá del final del búfer temporal, y en el heap brk (escritorio ? 128×128), el puntero de función decode de una estructura NSC_CONTEXT adyacente se sobrescribe con datos de píxeles controlados por el atacante — corrupción relevante para el flujo de control (puntero de función sobrescrito) demostrada bajo un diseño de heap determinista (nsc-&gt;decode = 0xFF414141FF414141). La versión 3.23.0 corrige la vulnerabilidad.

References

https://github.com/FreeRDP/FreeRDP/security/advisories/GHSA-5vgf-mw4f-r33hexploit, mitigation, patch, vendor-advisory
https://github.com/FreeRDP/FreeRDP/commit/a0be5cb87d760bb1c803ad1bb835aa1e73e62abcpatch
https://access.redhat.com/security/cve/CVE-2026-26965vdb-entry
https://bugzilla.redhat.com/show_bug.cgi?id=2442959issue-tracking
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-26965.json
https://access.redhat.com/errata/RHSA-2026:7292vendor-advisory
https://access.redhat.com/errata/RHSA-2026:5936vendor-advisory
https://access.redhat.com/errata/RHSA-2026:5939vendor-advisory
https://access.redhat.com/errata/RHSA-2026:19033vendor-advisory
https://access.redhat.com/errata/RHSA-2026:6005vendor-advisory
https://access.redhat.com/errata/RHSA-2026:6712vendor-advisory
https://access.redhat.com/errata/RHSA-2026:6616vendor-advisory

Sources

SourceRecordLicence
CVE ListCVE-2026-26965 changed 2026-07-15CVE Terms of Use
NVDCVE-2026-26965 changed 2026-07-15Public domain