CVE-2014-2667
Publication date 16 November 2014
Last updated 24 July 2024
Ubuntu priority
Race condition in the _get_masked_mode function in Lib/os.py in Python 3.2 through 3.5, when exist_ok is set to true and multiple threads are used, might allow local users to bypass intended file permissions by leveraging a separate application vulnerability before the umask has been set to the expected value.
Status
Package | Ubuntu Release | Status |
---|---|---|
python2.7 | ||
18.04 LTS bionic |
Not affected
|
|
16.04 LTS xenial |
Not affected
|
|
14.04 LTS trusty |
Not affected
|
|
python3.2 | ||
18.04 LTS bionic | Not in release | |
16.04 LTS xenial | Not in release | |
14.04 LTS trusty | Not in release | |
python3.4 | ||
18.04 LTS bionic | Not in release | |
16.04 LTS xenial | Not in release | |
14.04 LTS trusty |
Fixed 3.4.3-1ubuntu1~14.04
|
|
Notes
seth-arnold
The upstream patch uses umask(0022) instead of umask(0) -- which seems as bad as the original behaviour. We should see if there is an updated patch when we prepare our packages that replaces the bad code.
mdeslaur
introduced by the fix for http://bugs.python.org/issue9299 upstream commited a better fix than the proposed one in the bug but it now changes behavour
Patch details
Package | Patch details |
---|---|
python3.2 | |
python3.4 |