Ubuntu CVE Tracker
UBUNTU-CVE-2024-0397
Details
A defect was discovered in the Python “ssl” module where there is a memory race condition with the ssl.SSLContext methods “cert_store_stats()” and “get_ca_certs()”. The race condition can be triggered if the methods are called at the same time as certificates are loaded into the SSLContext, such as during the TLS handshake with a certificate directory configured. This issue is fixed in CPython 3.10.14, 3.11.9, 3.12.3, and 3.13.0a5.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:Pro:14.04:LTS | python2.7 | All versions, no fix listed |
| Ubuntu:Pro:14.04:LTS | python3.4 | All versions, no fix listed |
| Ubuntu:Pro:16.04:LTS | python2.7 | All versions, no fix listed |
| Ubuntu:Pro:18.04:LTS | python2.7 | All versions, no fix listed |
| Ubuntu:Pro:18.04:LTS | python3.6 | All versions, no fix listed |
| Ubuntu:Pro:18.04:LTS | python3.7 | All versions, no fix listed |
| Ubuntu:Pro:18.04:LTS | python3.8 | All versions, no fix listed |
| Ubuntu:20.04:LTS | python3.8 | All versions before 3.8.10-0ubuntu1~20.04.11 (fixed in 3.8.10-0ubuntu1~20.04.11) |
| Ubuntu:Pro:20.04:LTS | python2.7 | All versions, no fix listed |
| Ubuntu:Pro:20.04:LTS | python3.9 | All versions, no fix listed |
| Ubuntu:22.04:LTS | python3.10 | All versions before 3.10.12-1~22.04.5 (fixed in 3.10.12-1~22.04.5) |
| Ubuntu:Pro:22.04:LTS | python2.7 | All versions, no fix listed |
| Ubuntu:Pro:22.04:LTS | python3.11 | All versions, no fix listed |
References
- https://ubuntu.com/security/CVE-2024-0397
- https://www.cve.org/CVERecord?id=CVE-2024-0397
- https://github.com/python/cpython/pull/114573
- https://mail.python.org/archives/list/[email protected]/thread/BMAK5BCGKYWNJOACVUSLUF6SFGBIM4VP/
- https://github.com/python/cpython/commit/bce693111bff906ccf9281c22371331aaff766ab
- http://www.openwall.com/lists/oss-security/2024/06/17/2
- https://ubuntu.com/security/notices/USN-6928-1