Bug 2545935

Summary: CVE-2026-19445 python3.12: Use-after-free of a server-side SSLContext when sni_callback switches contexts [fedora-all]
Product: [Fedora] Fedora Reporter: Srikanth Balasubramanian <sbalasub>
Component: python3.12Assignee: Python Maintainers <python-maint>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: rawhideCC: cstratak, mhroncok, python-maint, python-packagers-sig, thrnciar, vstinner
Target Milestone: ---Keywords: Security, SecurityTracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: {"flaws": ["5337ec1f-6905-4942-a83c-22a9673b156c"]}
Fixed In Version: python3.12-3.12.15-1.fc43 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-10-06 01:05:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2544138    

Description Srikanth Balasubramanian 2026-10-05 15:14:45 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

A remote, unauthenticated TLS client can make a server crash or call
through a freed pointer if its sni_callback assigns a different context to
SSLSocket.context (the documented way to select a certificate per server
name) and nothing else keeps the original ssl.SSLContext alive. Typical
cases are servers that create an SSLContext per connection or replace it
while connections are open; servers that wrap their listening socket with
it are not affected.


Mitigation: keep a reference to every SSLContext that sets sni_callback for
the lifetime of the server. TLS clients are not affected.

Comment 1 Fedora Update System 2026-10-05 16:10:21 UTC
FEDORA-2026-ac7121c8b2 (python3.12-3.12.15-1.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-ac7121c8b2

Comment 2 Fedora Update System 2026-10-05 16:10:24 UTC
FEDORA-2026-f30cb310f9 (python3.12-3.12.15-1.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-f30cb310f9

Comment 3 Fedora Update System 2026-10-06 01:05:45 UTC
FEDORA-2026-f30cb310f9 (python3.12-3.12.15-1.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.