[openssl/openssl] a226dc: Avoid NULL dereference if RSA_PSS_PARAMS_dup() fai...

"'CarloTUM' via openssl-commits" <[email protected]>
Newsgroups gmane.comp.encryption.openssl.cvs
Message-ID <openssl/openssl/push/refs/heads/master/[email protected]>
  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: a226dc352037f98d579c506b2815f9191324af27
      https://github.com/openssl/openssl/commit/a226dc352037f98d579c506b2815f9191324af27
  Author: Carlo Deutschmann <[email protected]>
  Date:   2026-06-23 (Tue, 23 Jun 2026)

  Changed paths:
    M crypto/rsa/rsa_backend.c

  Log Message:
  -----------
  Avoid NULL dereference if RSA_PSS_PARAMS_dup() fails in ossl_rsa_dup()

RSA_PSS_PARAMS_dup() can return NULL on failure (e.g. memory
allocation failure). The subsequent code dereferenced dupkey->pss
unconditionally when checking dupkey->pss->maskGenAlgorithm, which
would result in a NULL pointer dereference.

Check the return value and jump to the error handling instead, which
properly frees the partially constructed key.

Reviewed-by: Shane Lontis <[email protected]>
Reviewed-by: Daniel Kubec <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
MergeDate: Tue Jun 23 16:32:24 2026
(Merged from https://github.com/openssl/openssl/pull/31619)



To unsubscribe from these emails, change your notification settings at https://github.com/openssl/openssl/settings/notifications

-- 
You received this message because you are subscribed to the Google Groups "openssl-commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/a/openssl.org/d/msgid/openssl-commits/openssl/openssl/push/refs/heads/master/67bddd-a226dc%40github.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.