UBUNTU-CVE-2024-12254

Source
https://ubuntu.com/security/CVE-2024-12254
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-12254.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2024-12254
Related
Published
2024-12-06T16:15:00Z
Modified
2025-01-13T10:24:48Z
Summary
[none]
Details

Starting in Python 3.12.0, the asyncio._SelectorSocketTransport.writelines() method would not "pause" writing and signal to the Protocol to drain the buffer to the wire once the write buffer reached the "high-water mark". Because of this, Protocols would not periodically drain the write buffer potentially leading to memory exhaustion. This vulnerability likely impacts a small number of users, you must be using Python 3.12.0 or later, on macOS or Linux, using the asyncio module with protocols, and using .writelines() method which had new zero-copy-on-write behavior in Python 3.12.0 and later. If not all of these factors are true then your usage of Python is unaffected.

References

Affected packages

Ubuntu:24.10 / python3.12

Package

Name
python3.12
Purl
pkg:deb/ubuntu/python3.12@3.12.7-1ubuntu1?arch=source&distro=oracular

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*

3.12.3-1
3.12.4-1
3.12.4-1ubuntu1
3.12.5-1
3.12.5-4
3.12.6-1
3.12.7-0ubuntu1
3.12.7-1
3.12.7-1ubuntu1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:24.10 / python3.13

Package

Name
python3.13
Purl
pkg:deb/ubuntu/python3.13@3.13.0-1?arch=source&distro=oracular

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*

3.13.0~b4-1
3.13.0~rc1-1
3.13.0~rc1-4
3.13.0~rc2-1
3.13.0~rc3-0ubuntu1
3.13.0~rc3-1
3.13.0-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:24.04:LTS / python3.12

Package

Name
python3.12
Purl
pkg:deb/ubuntu/python3.12@3.12.3-1ubuntu0.3?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*

3.12.0-1
3.12.0-5
3.12.0-6
3.12.0-7
3.12.1-2
3.12.2-1
3.12.2-4build3
3.12.2-4build4
3.12.2-5ubuntu3
3.12.3-1
3.12.3-1ubuntu0.1
3.12.3-1ubuntu0.2
3.12.3-1ubuntu0.3

Ecosystem specific

{
    "ubuntu_priority": "medium"
}