CVE-2021-20204 Use after free in getdata

Critical 9.8 Published Updated

A use-after-free vulnerability in libgetdata allows attackers to execute arbitrary code or escalate privileges via malicious dirfile databases.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-20204?

CVE-2021-20204 is a critical use after free vulnerability in Debian Debian Linux, published on 6 May 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A heap memory corruption problem (use after free) can be triggered in libgetdata v0.10.0 when processing maliciously crafted dirfile databases. This degrades the confidentiality, integrity and availability of third-party software that uses libgetdata as a library. This vulnerability may lead to arbitrary code execution or privilege escalation depending on input/skills of attacker.

Weakness: CWE-416, CWE-119

Which versions are affected by CVE-2021-20204?

It affects 3 products.

Linux distribution packages (1)
getdata openSUSE:Leap 15.2All versions0.11.0-lp152.4.3.1

Products include Debian Debian Linux, Fedoraproject Fedora, Getdata Project Getdata.

How do I fix CVE-2021-20204?

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-2021-20204 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-20204, DLA-2660-1, GHSA-mjc7-82x6-3544, UBUNTU-CVE-2021-20204, openSUSE-SU-2021:1645-1.

Is CVE-2021-20204 in your software?

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

Check your SBOMs for free