ADVISORIES

Red Hat VEX

RHVEX-CVE-2026-19445

python: Use-after-free of a server-side SSLContext when sni_callback switches contexts

Important No fix available CVE-2026-19445

Details

A flaw was found in Python. A remote, unauthenticated TLS client can cause a use-after-free in a server that uses SSLContext.sni_callback to assign a different SSLSocket.context when selecting a certificate per server name, if nothing else keeps the original SSLContext alive. This can crash the server process or result in a call through a freed pointer. Servers that wrap their listening socket with a long-lived SSLContext are not affected. TLS clients are not affected.

Affected packages

EcosystemPackageAffected versions
Red Hat:enterprise_linux:7python3
All versions, no fix yet
Red Hat:enterprise_linux:7python3-debug
All versions, no fix yet
Red Hat:enterprise_linux:7python3-devel
All versions, no fix yet
Red Hat:enterprise_linux:7python3-idle
All versions, no fix yet
Red Hat:enterprise_linux:7python3-libs
All versions, no fix yet
Red Hat:enterprise_linux:7python3-test
All versions, no fix yet
Red Hat:enterprise_linux:7python3-tkinter
All versions, no fix yet
Red Hat:enterprise_linux:8python3.11
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:8python3.11-debug
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:8python3.11-devel
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:8python3.11-idle
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:8python3.11-libs
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:8python3.11-rpm-macros
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:8python3.11-test
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:8python3.11-tkinter
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:9python3.11
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:9python3.11-debug
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:9python3.11-devel
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:9python3.11-idle
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:9python3.11-libs
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:9python3.11-test
All versions, no fix (out of support scope)
Red Hat:enterprise_linux:9python3.11-tkinter
All versions, no fix (out of support scope)

References