Release date:
2026-10-16 11:58:16 UTC
Description:
* SECURITY UPDATE: use-after-free of a server-side SSLContext when an
sni_callback switches the connection to another context.
_servername_callback() in Modules/_ssl.c reached the Python SSLContext
through the borrowed pointer stored with
SSL_CTX_set_tlsext_servername_arg() and held no reference to it. When
the callback assigned a different context to SSLSocket.context and
nothing else kept the original alive, the C code then used freed memory:
in PyErr_WriteUnraisable() after a raising callback, and when OpenSSL
re-entered the callback through the connection's session_ctx on a second
ClientHello (e.g. after a TLS 1.3 HelloRetryRequest). Remote,
unauthenticated, before the handshake completes.
- debian/patches/CVE-2026-19445.patch: backport of cpython
46133cd57d309652139ada74014aca7665ac552b (gh-156293), which takes the
context from the socket and holds strong references to it and to its
sni_callback while the callback runs, no longer registers the borrowed
servername arg, and clears the servername callback in
context_dealloc(). Py_NewRef()/Py_XNewRef() are spelled as
Py_INCREF()/Py_XINCREF() and the get_state_ctx() type assert as
PySSLSocket_Check(), since 3.9 has neither. Includes upstream's
regression tests in Lib/test/test_ssl.py.
- CVE-2026-19445
* SECURITY UPDATE: SSLContext.wrap_bio() did not require server_hostname
when check_hostname was True (CWE-295). SSLObject._create() in
Lib/ssl.py skipped the parameter checks wrap_socket() performs, so a
memory-BIO SSLObject - and asyncio loop.start_tls() /
create_connection(sock=...) through asyncio/sslproto.py - created with no
server_hostname verified the certificate chain but silently skipped
hostname verification.
- debian/patches/CVE-2026-19553.patch: backport of cpython
966bf426d0b6c31c1b0a255ff14a17143a466ced (gh-156793), which adds
_check_sslobject_params() and calls it from both SSLObject._create()
and SSLSocket._create(), so wrap_bio() now raises ValueError like
wrap_socket(). Includes upstream's tests in Lib/test/test_ssl.py; the
asyncio tests are adapted to 3.9's _SSLPipe-based sslproto.
- CVE-2026-19553
Updated packages:
-
alt-python39_3.9.23-33_amd64.deb
sha:0d98eb5d4d50bfc760c0918debb79dbfd20bbc51
-
alt-python39-debug_3.9.23-33_amd64.deb
sha:5240da0040ad75f7728087a38beadd68829e4ec0
-
alt-python39-devel_3.9.23-33_amd64.deb
sha:ebef40df61f36321ce4b7e7bd38470e005d5a442
-
alt-python39-idle_3.9.23-33_amd64.deb
sha:bb44abf647609cb6edf978ba24439e5f22606665
-
alt-python39-libs_3.9.23-33_amd64.deb
sha:bf4eefb396fb5ee512d5c366cad8e7eef546fbd1
-
alt-python39-test_3.9.23-33_amd64.deb
sha:988b4d7b3c186253b04a2b47141d36380bf8fc07
-
alt-python39-tkinter_3.9.23-33_amd64.deb
sha:2848d8799836174ae99f2f2b76cf1291df6967a0
Notes:
This page is generated automatically and has not been checked for errors. For clarification or
corrections please contact the
CloudLinux Packaging Team.