CVE-2026-22851: FreeRDP RDPGFX ResetGraphics race leads to use-after-free in SDL client (sdl->primary)

Published Jan 14, 2026
·
Updated

FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to 3.20.1, a race condition between the RDPGFX dynamic virtual channel thread and the SDL render thread leads to a heap use-after-free. Specifically, an escaped pointer to sdl->primary (SDLSurface) is accessed after it has been freed during RDPGFX ResetGraphics handling. This vulnerability is fixed in 3.20.1.

Affected Software

16 affected componentsFixes available
FreeRDP freerdp<3.20.1
FreeRDP freerdp<3.20.1
alpine/freerdp<3.22.0-r0
3.22.0-r0
ubuntu/freerdp*
ubuntu/freerdp2*
ubuntu/freerdp*
ubuntu/freerdp2*
ubuntu/freerdp2*
ubuntu/freerdp3<3.5.1+dfsg1-0ubuntu1.4
3.5.1+dfsg1-0ubuntu1.4
ubuntu/freerdp2*
ubuntu/freerdp3<3.16.0+dfsg-2ubuntu0.3
3.16.0+dfsg-2ubuntu0.3
ubuntu/freerdp3<3.20.2+dfsg-1
3.20.2+dfsg-1
debian/freerdp3<3.15.0+dfsg-2.1+deb13u1
3.15.0+dfsg-2.1+deb13u1
debian/freerdp3<3.20.2+dfsg-1
3.20.2+dfsg-1
debian/freerdp2
debian/freerdp3
3.15.0+dfsg-2.1+deb13u13.20.2+dfsg-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade alpine/freerdp to a version that resolves this vulnerability.

    Fixed in 3.22.0-r0
  2. Upgrade

    Upgrade ubuntu/freerdp3 to a version that resolves this vulnerability.

    Fixed in 3.5.1+dfsg1-0ubuntu1.4
  3. Upgrade

    Upgrade ubuntu/freerdp3 to a version that resolves this vulnerability.

    Fixed in 3.16.0+dfsg-2ubuntu0.3
  4. Upgrade

    Upgrade ubuntu/freerdp3 to a version that resolves this vulnerability.

    Fixed in 3.20.2+dfsg-1
  5. Upgrade

    Upgrade debian/freerdp3 to a version that resolves this vulnerability.

    Fixed in 3.15.0+dfsg-2.1+deb13u1
  6. Upgrade

    Upgrade debian/freerdp3 to a version that resolves this vulnerability.

    Fixed in 3.20.2+dfsg-1
  7. Upgrade

    Upgrade debian/freerdp3 to a version that resolves this vulnerability.

    Fixed in 3.15.0+dfsg-2.1+deb13u1Fixed in 3.20.2+dfsg-1
  8. Upgrade

    Upgrade FreeRDP to a version that resolves this vulnerability.

    Fixed in 3.20.1

Event History

Jan 14, 2026
CVE Published
via MITRE·05:43 PM
Data Sourced
via MITRE·05:43 PM
DescriptionWeakness
Data Sourced
via OSV·06:16 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·06:16 PM
DescriptionSeverityWeakness
Jan 20, 2026
Data Sourced
via NVD·06:43 PM
Affected Software
Updated
via NVD·06:43 PM
Severity
Jan 21, 2026
Event
via FIRST·12:00 AM

Frequently Asked Questions

1

What is the severity of CVE-2026-22851?

CVE-2026-22851 has been classified as a critical vulnerability due to the potential for a use-after-free condition leading to arbitrary code execution.

2

How do I fix CVE-2026-22851?

To remediate CVE-2026-22851, upgrade FreeRDP to version 3.20.1 or later.

3

What versions of FreeRDP are affected by CVE-2026-22851?

FreeRDP versions prior to 3.20.1 are affected by CVE-2026-22851.

4

What impact does CVE-2026-22851 have on user systems?

CVE-2026-22851 may allow an attacker to execute arbitrary code on affected systems, potentially leading to a full system compromise.

5

Is CVE-2026-22851 specific to any operating systems?

CVE-2026-22851 is primarily a concern for systems using FreeRDP with SDL as the RDP client.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203