Use-after-free in iproute2 - CVE-2019-20795

 

Use-after-free in iproute2 - CVE-2019-20795

Published: May 14, 2020


Vulnerability identifier: #VU27904
CSH Severity: Medium
CVSS v4: 7.5 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2019-20795
CWE-ID: CWE-416
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to compromise vulnerable system.

The vulnerability exists due to a use-after-free error within the get_netnsid_from_name() function in ip/ipnetns.c. A remote attacker can send specially crafted data to the application, trigger use-after-free error and execute arbitrary code on the target system.

Successful exploitation of the vulnerability may allow an attacker to compromise vulnerable system.


Affected software

iproute2
Gentoo Linux
SUSE Linux Enterprise Software Development Kit
SUSE Linux Enterprise Server
iproute2 (Alpine package)
iproute2 (Ubuntu package)
iproute2-debuginfo
iproute2-debugsource
libnetlink-devel
iproute2

How to mitigate CVE-2019-20795

Install updates from vendor's website.

iproute2 (Alpine package) - addressed in versions 4.19.0-r1, 4.20.0-r2
iproute2 (Ubuntu package) - update to 4.15.0-2ubuntu1.1
iproute2-debuginfo - update to 4.12-16.6.1
iproute2-debugsource - update to 4.12-16.6.1
libnetlink-devel - update to 4.12-16.6.1
iproute2 - update to 4.12-16.6.1

External References

Related Security Bulletins