CVE-2019-20795 Use after free in n/a

Medium 4.4 Published Updated

A use-after-free in iproute2 allows local attackers to potentially execute code or escalate privileges if setuid is enabled.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2019-20795?

CVE-2019-20795 is a medium-severity use after free vulnerability in Canonical Ubuntu Linux, published on 9 May 2020. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

iproute2 before 5.1.0 has a use-after-free in get_netnsid_from_name in ip/ipnetns.c. NOTE: security relevance may be limited to certain uses of setuid that, although not a default, are sometimes a configuration option offered to end users. Even when setuid is used, other factors (such as C library configuration) may block exploitability.

Weakness: CWE-416

Which versions are affected by CVE-2019-20795?

It affects 2 products.

Linux distribution packages (3)
iproute2 SUSE:Linux Enterprise Server 12 SP5All versions4.12-16.6.1
iproute2 SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions4.12-16.6.1
iproute2 SUSE:Linux Enterprise Software Development Kit 12 SP5All versions4.12-16.6.1

Products include Canonical Ubuntu Linux, Iproute2 Project Iproute2.

How do I fix CVE-2019-20795?

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-2019-20795 being exploited?

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

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2019-20795, DEBIAN-CVE-2019-20795, GHSA-7x5p-w7r4-hq6m, SUSE-SU-2021:3452-1, UBUNTU-CVE-2019-20795, USN-4357-1.

Is CVE-2019-20795 in your software?

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

Check your SBOMs for free