procps-ng before version 3.3.15 is vulnerable to a local privilege escalation in top. If a user runs top with HOME unset in an attacker-controlled directory, the attacker could achieve privilege escalation by exploiting one of several vulnerabilities in the config_file() function.
https://www.exploit-db.com/exploits/44806/
https://www.debian.org/security/2018/dsa-4208
https://usn.ubuntu.com/3658-3/
https://usn.ubuntu.com/3658-1/
https://security.gentoo.org/glsa/201805-14
https://lists.debian.org/debian-lts-announce/2018/05/msg00021.html
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-1122
https://access.redhat.com/errata/RHSA-2020:0595
https://access.redhat.com/errata/RHSA-2019:2189
http://www.securityfocus.com/bid/104214
http://seclists.org/oss-sec/2018/q2/122
http://lists.opensuse.org/opensuse-security-announce/2019-10/msg00059.html
http://lists.opensuse.org/opensuse-security-announce/2019-10/msg00058.html