CVE-2026-22857 FreeRDP has a heap-use-after-free in irp_thread_func

Medium 6.8 Published Updated

A heap use-after-free in FreeRDP's irp_thread_func allows attackers to potentially execute code or cause denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-22857?

CVE-2026-22857 is a medium-severity use after free vulnerability in Freerdp Freerdp, published on 14 Jan 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

FreeRDP is a free implementation of the Remote Desktop Protocol. Prior to 3.20.1, a heap use-after-free occurs in irp_thread_func because the IRP is freed by irp->Complete() and then accessed again on the error path. This vulnerability is fixed in 3.20.1.

Weakness: CWE-416

Which versions are affected by CVE-2026-22857?

It affects 1 product.

Products include Freerdp Freerdp.

How do I fix CVE-2026-22857?

Upgrade to a fixed version.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2026-22857 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-22857 exists.

All Freerdp Freerdp vulnerabilities

Sources

Also known as DEBIAN-CVE-2026-22857, GHSA-4gxq-jhq6-4cr8, MINI-74gw-7jfp-chpj, UBUNTU-CVE-2026-22857.

Is CVE-2026-22857 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free