ALAS-2025-2766


Amazon Linux 2 Security Advisory: ALAS-2025-2766
Advisory Release Date: 2025-02-12 23:17 Pacific
Advisory Updated Date: 2025-02-25 10:30 Pacific
Severity: Medium

Issue Overview:

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. (CVE-2024-0397)


Affected Packages:

python3


Note:

This advisory is applicable to Amazon Linux 2 (AL2) Core repository. Visit this FAQ section for the difference between AL2 Core and AL2 Extras advisories.


Issue Correction:
Run yum update python3 to update your system.

New Packages:
aarch64:
    python3-3.7.16-1.amzn2.0.13.aarch64
    python3-libs-3.7.16-1.amzn2.0.13.aarch64
    python3-devel-3.7.16-1.amzn2.0.13.aarch64
    python3-tools-3.7.16-1.amzn2.0.13.aarch64
    python3-tkinter-3.7.16-1.amzn2.0.13.aarch64
    python3-test-3.7.16-1.amzn2.0.13.aarch64
    python3-debug-3.7.16-1.amzn2.0.13.aarch64
    python3-debuginfo-3.7.16-1.amzn2.0.13.aarch64

i686:
    python3-3.7.16-1.amzn2.0.13.i686
    python3-libs-3.7.16-1.amzn2.0.13.i686
    python3-devel-3.7.16-1.amzn2.0.13.i686
    python3-tools-3.7.16-1.amzn2.0.13.i686
    python3-tkinter-3.7.16-1.amzn2.0.13.i686
    python3-test-3.7.16-1.amzn2.0.13.i686
    python3-debug-3.7.16-1.amzn2.0.13.i686
    python3-debuginfo-3.7.16-1.amzn2.0.13.i686

src:
    python3-3.7.16-1.amzn2.0.13.src

x86_64:
    python3-3.7.16-1.amzn2.0.13.x86_64
    python3-libs-3.7.16-1.amzn2.0.13.x86_64
    python3-devel-3.7.16-1.amzn2.0.13.x86_64
    python3-tools-3.7.16-1.amzn2.0.13.x86_64
    python3-tkinter-3.7.16-1.amzn2.0.13.x86_64
    python3-test-3.7.16-1.amzn2.0.13.x86_64
    python3-debug-3.7.16-1.amzn2.0.13.x86_64
    python3-debuginfo-3.7.16-1.amzn2.0.13.x86_64