CVE-2019-18874: Double Free
A double free issue has been discovered in python-psutil because of the mishandling of refcounts while converting system data into Python objects in functions like psutildiskpartitions(), psutilusers(), psutilnetifaddrs(), and others. In particular cases, a local attacker may be able to get code execution by manipulating system resources that python-psutil then tries to convert.
Other sources
psutil (aka python-psutil) through 5.6.5 can have a double free. This occurs because of refcount mishandling within a while or for loop that converts system data into a Python object.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/python-psutilto a version that resolves this vulnerability.Fixed in 0:5.4.3-11.el8 - Upgrade
Upgrade
redhat/python-psutilto a version that resolves this vulnerability.Fixed in 0:5.6.6-1.el7a - Upgrade
Upgrade
redhat/python-psutilto a version that resolves this vulnerability.Fixed in 0:5.7.2-2.el7 - Upgrade
Upgrade
redhat/rh-python38-pythonto a version that resolves this vulnerability.Fixed in 0:3.8.6-1.el7 - Upgrade
Upgrade
redhat/rh-python38-python-psutilto a version that resolves this vulnerability.Fixed in 0:5.6.4-5.el7 - Upgrade
Upgrade
redhat/rh-python38-python-urllib3to a version that resolves this vulnerability.Fixed in 0:1.25.7-6.el7 - Upgrade
Upgrade
redhat/python-psutilto a version that resolves this vulnerability.Fixed in 5.6.6 - Upgrade
Upgrade
pip/psutilto a version that resolves this vulnerability.Fixed in 5.6.6 - Upgrade
Upgrade
debian/python-psutilto a version that resolves this vulnerability.Fixed in 5.8.0-1Fixed in 5.9.4-1Fixed in 7.0.0-2Fixed in 7.1.0-1 - Upgrade
Upgrade
alpine/py-psutilto a version that resolves this vulnerability.Fixed in 5.6.3-r1 - Upgrade
Upgrade
alpine/py-psutilto a version that resolves this vulnerability.Fixed in 5.4.6-r1 - Upgrade
Upgrade
alpine/py-psutilto a version that resolves this vulnerability.Fixed in 5.5.0-r1 - Upgrade
Upgrade
alpine/py3-psutilto a version that resolves this vulnerability.Fixed in 5.6.7-r0
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is the severity of CVE-2019-18874?
CVE-2019-18874 has been classified as a medium severity vulnerability.
How do I fix CVE-2019-18874?
To fix CVE-2019-18874, upgrade to python-psutil version 5.6.6 or newer as specified by the vendor.
What software is affected by CVE-2019-18874?
CVE-2019-18874 affects the python-psutil package across several versions including 5.4.3-11.el8 and earlier.
What type of vulnerability is CVE-2019-18874?
CVE-2019-18874 is a double free vulnerability due to mishandling of reference counts.
Who can exploit CVE-2019-18874?
CVE-2019-18874 can potentially be exploited by local attackers.