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...
- 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
| Product | Affected versions | Fixed 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
| Product | Affected versions | Fixed 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
- Debian Security Tracker CVE-2022-42919 vendor-advisory
- github.com third-party-advisory
- FEDORA-2022-1166a1df1e vendor-advisory
- FEDORA-2022-028c09eaa7 vendor-advisory
- FEDORA-2022-b17bf30e88 vendor-advisory
- FEDORA-2022-462f39dd2f vendor-advisory
- FEDORA-2022-a7cad6bd22 vendor-advisory
- FEDORA-2022-f44dd1bec2 vendor-advisory
- security.netapp.com third-party-advisory
- FEDORA-2023-af5206f71d vendor-advisory
- FEDORA-2023-097dd40685 vendor-advisory
- github.com release-notes
- github.com release-notes
- GLSA-202305-02 vendor-advisory
- lists.debian.org
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-5713-1 vendor-advisory
- USN-5888-1 vendor-advisory
- USN-6891-1 vendor-advisory
- www.cve.org issue-tracking
- security.alpinelinux.org vendor-advisory
- python-security.readthedocs.io issue-tracking