Skip to content

Conversation

@vcsjones
Copy link
Member

@vcsjones vcsjones commented Oct 22, 2025

The SHA-3 light-up for portable builds against OpenSSL was missing an API_EXISTS check. This would result in a null-deref since it assumed the function pointer is non-NULL.

This only affects OpenSSL 1.0 and 1.1.0. 1.1.1 and 3 are not impacted.

Copilot AI review requested due to automatic review settings October 22, 2025 21:29
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a null pointer dereference in the portable build of the cryptography native library when running on OpenSSL 1.0. The issue occurred during SHA-3 algorithm light-up when the code attempted to call a function pointer without first verifying its existence.

Key Changes:

  • Added an API_EXISTS check before calling the function pointer in the EVP_MD macro to prevent null dereference on older OpenSSL versions.

@dotnet-policy-service
Copy link
Contributor

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

@vcsjones vcsjones changed the title Fix portable startup on OpenSSL 1.0 Fix portable startup on OpenSSL 1.0 and 1.1.0 Oct 24, 2025
@bartonjs
Copy link
Member

Based on data gathering and discussion, we don't think 1.0.x or 1.1.0 are relevant to main, so let's close this in favor of the alternative PR.

@bartonjs bartonjs closed this Oct 24, 2025
@vcsjones vcsjones deleted the fix-openssl-10-portable branch October 24, 2025 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants