Skip to content

[release/10.0] Fix X509 reference leak in SslStream extra chain certificates on Unix - #132760

Open
github-actions[bot] wants to merge 1 commit into
release/10.0from
backport/pr-132351-to-release/10.0
Open

[release/10.0] Fix X509 reference leak in SslStream extra chain certificates on Unix#132760
github-actions[bot] wants to merge 1 commit into
release/10.0from
backport/pr-132351-to-release/10.0

Conversation

@github-actions

@github-actions github-actions Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Backport of #132351 to release/10.0

/cc @bartonjs @glima

Customer Impact

  • Customer reported
  • Found internally

With the OpenSSL backend, TLS Client Certificates chosen with the LocalCertificateSelectionCallback get up-referenced more than down-referenced, and thus never get freed.

Regression

  • Yes
  • No

2022 / .NET 7

8fef95b

Testing

The correctness was verified by walking through a state transition diagram. A lack of failures from existing tests adds confidence that we are not over-freeing.

A specific test to ensure balance was not added, though there's discussion of how to add one in the future.

Risk

Medium-low: The risk is higher than "low" because we don't have a definite test to point to to say everything is working as expected/desired. Existing tests show that the scenario is not compromised.

Co-authored-by: Gustavo Lima Chaves <gulimach@microsoft.com>
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
13 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants