CVE-2020-4031 Use-After-Free in gdi_SelectObject in FreeRDP

Low 3.5 Published Updated

A use-after-free in FreeRDP allows attackers to execute code or cause denial of service when clients use compatibility mode with relaxed order checks.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2020-4031?

CVE-2020-4031 is a low-severity use after free vulnerability in Canonical Ubuntu Linux, published on 22 Jun 2020. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

In FreeRDP before version 2.1.2, there is a use-after-free in gdi_SelectObject. All FreeRDP clients using compatibility mode with /relax-order-checks are affected. This is fixed in version 2.1.2.

Weakness: CWE-416

Which versions are affected by CVE-2020-4031?

It affects 5 products.

Products include Canonical Ubuntu Linux, Debian Debian Linux, Fedoraproject Fedora, Freerdp Freerdp, Opensuse Leap.

How do I fix CVE-2020-4031?

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-2020-4031 being exploited?

There is no known exploitation of CVE-2020-4031 in the wild and no public exploit code.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as CLEANSTART-2024-WK92856, DEBIAN-CVE-2020-4031, GHSA-gwcq-hpq2-m74g, UBUNTU-CVE-2020-4031.

Is CVE-2020-4031 in your software?

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

Check your SBOMs for free