Skip to content

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

Merged
artl93 merged 1 commit into
release/11.0from
backport/pr-132351-to-release/11.0
Aug 26, 2026
Merged

artl93 merged 1 commit into
release/11.0from
backport/pr-132351-to-release/11.0

Conversation

@github-actions

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

Copy link
Copy Markdown
Contributor

Backport of #132351 to release/11.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.

@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.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/ncl, @bartonjs, @vcsjones
See info in area-owners.md if you want to be subscribed.

@rzikm rzikm added this to the 11.0.0 milestone Aug 25, 2026
@bartonjs
bartonjs requested a review from artl93 August 25, 2026 21:14

@artl93 artl93 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regression, albeit from 7. Still, memory leak. Customer reported. Approved.

@dotnet-milestone-bot dotnet-milestone-bot Bot modified the milestones: 11.0.0, 11.0-rc2 Aug 26, 2026
@artl93 artl93 added Servicing-consider Issue for next servicing release review Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Aug 26, 2026
@artl93
artl93 merged commit 5ac8903 into release/11.0 Aug 26, 2026
97 of 99 checks passed
@artl93
artl93 deleted the backport/pr-132351-to-release/11.0 branch August 26, 2026 23:35
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants