Skip to content

openssl: Use proper error propagation when X509_dup() fails in openssl_x509_read()#21953

Open
ndossche wants to merge 1 commit into
php:PHP-8.4from
ndossche:clesss-34
Open

openssl: Use proper error propagation when X509_dup() fails in openssl_x509_read()#21953
ndossche wants to merge 1 commit into
php:PHP-8.4from
ndossche:clesss-34

Conversation

@ndossche

@ndossche ndossche commented May 5, 2026

Copy link
Copy Markdown
Member

Otherwise x509 field is NULL and can cause a NULL deref which is UB (and causes a SEGV).

Disclaimer: this was found by an experimental static-dynamic hybrid analyser I'm working on.

…l_x509_read()

Otherwise x509 field is NULL and can cause a NULL deref which is UB (and
causes a SEGV).
@ndossche ndossche requested a review from bukka as a code owner May 5, 2026 15:22
@ndossche ndossche requested review from Girgias and devnexen June 12, 2026 12:24
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