FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.10] gh-156293: Use-after-free for server-side SSLContext with sni_callback (GH-158504) by gpshead · Pull Request #158524 · python/cpython · GitHub

Repository navigation

[3.10] gh-156293: Use-after-free for server-side SSLContext with sni_callback (GH-158504) - #158524

Merged
pablogsal merged 2 commits into
python:3.10from
gpshead:gh-156293-ssl-sni-callback-3.10
Oct 1, 2026
Merged

pablogsal merged 2 commits into
python:3.10from
gpshead:gh-156293-ssl-sni-callback-3.10

Conversation

gpshead commented Sep 30, 2026

Copy link
Copy Markdown
Member

…ugh a released SSLContext

The servername (SNI) callback located its SSLContext through a borrowed
pointer registered with OpenSSL, which can outlive the SSLContext object.
Look the context up from the SSL object instead, and unregister the
callback when the context is deallocated.

Backport of 87665c9,
adapted to this branch's servername callback code.
pablogsal merged commit ec44b5a into python:3.10 Oct 1, 2026
17 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL