Red Hat VEX
RHVEX-CVE-2026-19445
python: Use-after-free of a server-side SSLContext when sni_callback switches contexts
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
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:7 | python3 | All versions, no fix yet |
| Red Hat:enterprise_linux:7 | python3-debug | All versions, no fix yet |
| Red Hat:enterprise_linux:7 | python3-devel | All versions, no fix yet |
| Red Hat:enterprise_linux:7 | python3-idle | All versions, no fix yet |
| Red Hat:enterprise_linux:7 | python3-libs | All versions, no fix yet |
| Red Hat:enterprise_linux:7 | python3-test | All versions, no fix yet |
| Red Hat:enterprise_linux:7 | python3-tkinter | All versions, no fix yet |
| Red Hat:enterprise_linux:8 | python3.11 | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | python3.11-debug | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | python3.11-devel | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | python3.11-idle | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | python3.11-libs | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | python3.11-rpm-macros | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | python3.11-test | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | python3.11-tkinter | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:9 | python3.11 | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:9 | python3.11-debug | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:9 | python3.11-devel | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:9 | python3.11-idle | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:9 | python3.11-libs | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:9 | python3.11-test | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:9 | python3.11-tkinter | All versions, no fix (out of support scope) |
References
- https://access.redhat.com/security/cve/CVE-2026-19445
- https://bugzilla.redhat.com/show_bug.cgi?id=2544138
- https://www.cve.org/CVERecord?id=CVE-2026-19445
- https://nvd.nist.gov/vuln/detail/CVE-2026-19445
- https://github.com/python/cpython/issues/156293
- https://github.com/python/cpython/pull/158504
- https://mail.python.org/archives/list/[email protected]/thread/QMQIUQB6WGGC3MI7I3WKQXOYOBDSPPS3/