Skip to content

CVE-2022-42919 Python 3.9.x before 3.9.16 and 3.10.x before 3.10.9 on Linux allows local privilege escalation in a non-default configuration. The Python multiprocessing library, when used with the forkserver start m...

HighCVSS 7.8 EPSS 0.80%
Published
Updated
Exploit status
No public exploit known
Technology
UbuntuDebian

Description

Python 3.9.x before 3.9.16 and 3.10.x before 3.10.9 on Linux allows local privilege escalation in a non-default configuration. The Python multiprocessing library, when used with the forkserver start method on Linux, allows pickles to be deserialized from any user in the same machine local network namespace, which in many system configurations means any user on the same machine. Pickles can execute arbitrary code. Thus, this allows for local user privilege escalation to the user that any forkserver process is running as. Setting multiprocessing.util.abstract_sockets_supported to False is a workaround. The forkserver start method for multiprocessing is not the default start method. This issue is Linux specific because only Linux supports abstract namespace sockets. CPython before 3.9 does not make use of Linux abstract namespace sockets by default. Support for users manually specifying an abstract namespace socket was added as a bugfix in 3.7.8 and 3.8.3, but users would need to make specific uncommon API calls in order to do that in CPython before 3.9.

Affected products

ProductAffected versionsFixed in
ubuntu/python3.10(Ubuntu:22.04) < 3.10.6-1~22.04.1 3.10.6-1~22.04.1
ubuntu/python3.11(Ubuntu:22.04) < 3.11.0~rc1-1~22.04.1~esm1 3.11.0~rc1-1~22.04.1~esm1
python >= 3.7.3, <= 3.7.15 No fix listed
python >= 3.8.3, <= 3.8.15 No fix listed
python >= 3.9.0, < 3.9.16 3.9.16
python >= 3.10.0, < 3.10.9 3.10.9
fedoraproject fedora = 35 No fix listed
fedoraproject fedora = 36 No fix listed
fedoraproject fedora = 37 No fix listed
debian/pypy3(Debian:12) < 7.3.11+dfsg-1 7.3.11+dfsg-1
debian/pypy3(Debian:14) < 7.3.11+dfsg-1 7.3.11+dfsg-1
debian/pypy3(Debian:13) < 7.3.11+dfsg-1 7.3.11+dfsg-1
debian/python3.11(Debian:12) < 3.11.0-2 3.11.0-2
ubuntu/python3.9(Ubuntu:Pro:20.04) < 3.9.5-3ubuntu0~20.04.1+esm1 3.9.5-3ubuntu0~20.04.1+esm1
ubuntu/python3.9(Ubuntu:Pro:20.04) = 3.9.0~rc1-1~20.04 No fix listed
ubuntu/python3.9(Ubuntu:Pro:20.04) = 3.9.0-5~20.04 No fix listed
ubuntu/python3.9(Ubuntu:Pro:20.04) = 3.9.5-3~20.04.1 No fix listed
ubuntu/python3.9(Ubuntu:Pro:20.04) = 3.9.5-3ubuntu0~20.04.1 No fix listed
ubuntu/python3.10(Ubuntu:22.04) = 3.10.0-2 No fix listed
ubuntu/python3.10(Ubuntu:22.04) = 3.10.0-3 No fix listed
ubuntu/python3.10(Ubuntu:22.04) = 3.10.0-4 No fix listed
ubuntu/python3.10(Ubuntu:22.04) = 3.10.0-5 No fix listed
ubuntu/python3.10(Ubuntu:22.04) = 3.10.0-5build1 No fix listed
ubuntu/python3.10(Ubuntu:22.04) = 3.10.1-1 No fix listed
ubuntu/python3.10(Ubuntu:22.04) = 3.10.1-2 No fix listed
Show 11 more
ProductAffected versionsFixed in
ubuntu/python3.10(Ubuntu:22.04) = 3.10.2-1 No fix listed
ubuntu/python3.10(Ubuntu:22.04) = 3.10.2-5 No fix listed
ubuntu/python3.10(Ubuntu:22.04) = 3.10.2-7 No fix listed
ubuntu/python3.10(Ubuntu:22.04) = 3.10.3-1 No fix listed
ubuntu/python3.10(Ubuntu:22.04) = 3.10.4-3 No fix listed
ubuntu/python3.10(Ubuntu:22.04) = 3.10.4-3ubuntu0.1 No fix listed
ubuntu/python3.10(Ubuntu:22.04) = 3.10.6-1~22.04 No fix listed
ubuntu/python3.11(Ubuntu:Pro:22.04) < 3.11.0~rc1-1~22.04.1~esm1 3.11.0~rc1-1~22.04.1~esm1
ubuntu/python3.11(Ubuntu:Pro:22.04) = 3.11.0~rc1-1~22.04 No fix listed
alpine/python3(Alpine:v3.16) < 3.10.9-r0 3.10.9-r0
alpine/python3(Alpine:v3.17) < 3.10.9-r0 3.10.9-r0

References