---
title: "CVE-2014-2667\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2014-2667?format=md
keywords: index, follow
---

# CVE-2014-2667

Publication date 16 November 2014

Last updated 24 July 2024

---

Ubuntu priority

**Low**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

Toggle side navigation

## Description

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.

[Read the notes from the security team](https://ubuntu.com/security/CVE-2014-2667?format=md#notes)

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| python2.7 | 18.10 cosmic | Not affected |
| 18.04 LTS bionic | Not affected |
| 17.10 artful | Not affected |
| 17.04 zesty | Not affected |
| 16.10 yakkety | Not affected |
| 16.04 LTS xenial | Not affected |
| 15.10 wily | Not affected |
| 15.04 vivid | Not affected |
| 14.10 utopic | Not affected |
| 14.04 LTS trusty | Not affected |
| 13.10 saucy | Not affected |
| 12.10 quantal | Not affected |
| 12.04 LTS precise | Not affected |
| 10.04 LTS lucid | Not in release |
| python3.2 | 18.10 cosmic | Not in release |
| 18.04 LTS bionic | Not in release |
| 17.10 artful | Not in release |
| 17.04 zesty | Not in release |
| 16.10 yakkety | Not in release |
| 16.04 LTS xenial | Not in release |
| 15.10 wily | Not in release |
| 15.04 vivid | Not in release |
| 14.10 utopic | Not in release |
| 14.04 LTS trusty | Not in release |
| 13.10 saucy | Not in release |
| 12.10 quantal | Ignored end of life |
| 12.04 LTS precise | Ignored end of life |
| 10.04 LTS lucid | Not in release |
| python3.4 | 18.10 cosmic | Not in release |
| 18.04 LTS bionic | Not in release |
| 17.10 artful | Not in release |
| 17.04 zesty | Not in release |
| 16.10 yakkety | Not in release |
| 16.04 LTS xenial | Not in release |
| 15.10 wily | Not affected |
| 15.04 vivid | Not affected |
| 14.10 utopic | Not affected |
| 14.04 LTS trusty | Fixed 3.4.3-1ubuntu1~14.04 |
| 13.10 saucy | Not in release |
| 12.10 quantal | Not in release |
| 12.04 LTS precise | Not in release |
| 10.04 LTS lucid | Not in release |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)
* [Patch details](https://ubuntu.com/security/CVE-2014-2667?format=md#patch-details)

## Notes

---

### [seth-arnold](https://launchpad.net/~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](https://launchpad.net/~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

For informational purposes only. We recommend not to cherry-pick updates. [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)

| Package | Patch details |
| --- | --- |
| python3.2 | * Upstream:   <http://hg.python.org/cpython/rev/9186f4a18584e> |
| python3.4 | * Upstream:   <http://hg.python.org/cpython/rev/c24dd53ab4b9> |

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-2667)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2014-2667)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2014-2667)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2014-2667)

### Other references

* <http://seclists.org/oss-sec/2014/q1/687>
* <https://www.cve.org/CVERecord?id=CVE-2014-2667>
