Your submission was sent successfully! Close

You have successfully unsubscribed! Close

Thank you for signing up for our newsletter!
In these regular emails you will find the latest updates about Ubuntu and upcoming events where you can meet our team.Close

CVE-2018-1000030

Publication date 8 February 2018

Last updated 24 July 2024


Ubuntu priority

Cvss 3 Severity Score

3.6 · Low

Score breakdown

Python 2.7.14 is vulnerable to a Heap-Buffer-Overflow as well as a Heap-Use-After-Free. Python versions prior to 2.7.14 may also be vulnerable and it appears that Python 2.7.17 and prior may also be vulnerable however this has not been confirmed. The vulnerability lies when multiply threads are handling large amounts of data. In both cases there is essentially a race condition that occurs. For the Heap-Buffer-Overflow, Thread 2 is creating the size for a buffer, but Thread1 is already writing to the buffer without knowing how much to write. So when a large amount of data is being processed, it is very easy to cause memory corruption using a Heap-Buffer-Overflow. As for the Use-After-Free, Thread3->Malloc->Thread1->Free's->Thread2-Re-uses-Free'd Memory. The PSRT has stated that this is not a security vulnerability due to the fact that the attacker must be able to run code, however in some situations, such as function as a service, this vulnerability can potentially be used by an attacker to violate a trust boundary, as such the DWF feels this issue deserves a CVE.

Read the notes from the security team

Status

Package Ubuntu Release Status
python2.6 18.10 cosmic Not in release
18.04 LTS bionic Not in release
17.10 artful Not in release
16.04 LTS xenial Not in release
14.04 LTS trusty Not in release
python2.7 18.10 cosmic
Not affected
18.04 LTS bionic
Not affected
17.10 artful Ignored
16.04 LTS xenial
Fixed 2.7.12-1ubuntu0~16.04.4
14.04 LTS trusty
Fixed 2.7.6-8ubuntu0.5
python3.2 18.10 cosmic Not in release
18.04 LTS bionic Not in release
17.10 artful Not in release
16.04 LTS xenial Not in release
14.04 LTS trusty Not in release
python3.4 18.10 cosmic Not in release
18.04 LTS bionic Not in release
17.10 artful Not in release
16.04 LTS xenial Not in release
14.04 LTS trusty
Not affected
python3.5 18.10 cosmic Not in release
18.04 LTS bionic Not in release
17.10 artful Not in release
16.04 LTS xenial
Not affected
14.04 LTS trusty
Not affected
python3.6 18.10 cosmic
Not affected
18.04 LTS bionic
Not affected
17.10 artful
Not affected
16.04 LTS xenial Not in release
14.04 LTS trusty Not in release
python3.7 18.10 cosmic
Not affected
18.04 LTS bionic
Not affected
17.10 artful
Not affected
16.04 LTS xenial Not in release
14.04 LTS trusty Not in release

Notes


mdeslaur

original fix caused a regression, see second commit

Patch details

For informational purposes only. We recommend not to cherry-pick updates. How can I get the fixes?

Package Patch details
python2.7

Severity score breakdown

Parameter Value
Base score 3.6 · Low
Attack vector Local
Attack complexity High
Privileges required Low
User interaction None
Scope Unchanged
Confidentiality Low
Integrity impact None
Availability impact Low
Vector CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:L

References

Related Ubuntu Security Notices (USN)

    • USN-3817-1
    • Python vulnerabilities
    • 13 November 2018
    • USN-3817-2
    • Python vulnerabilities
    • 15 November 2018

Other references