[openssl/openssl] d4f812: Segmentation fault in parent rng cleanup

afshinpir noreply at github.com
Tue Mar 14 21:33:15 UTC 2023


  Branch: refs/heads/openssl-3.0
  Home:   https://github.com/openssl/openssl
  Commit: d4f812219244412078f05a523eef3ea548875e43
      https://github.com/openssl/openssl/commit/d4f812219244412078f05a523eef3ea548875e43
  Author: afshinpir <afshinpir at users.noreply.github.com>
  Date:   2023-03-15 (Wed, 15 Mar 2023)

  Changed paths:
    M providers/implementations/rands/drbg.c

  Log Message:
  -----------
  Segmentation fault in parent rng cleanup

CLA: trivial
When `cleanup_entropy()` is called to cleanup parent by calling
provided `OSSL_FUNC_rand_clear_seed_fn` method, incorrect random
context is passed to the method. So accessing that context creates
a segmentation fault. Parent context should be passed rather than
DRBG's own context.

Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre at ncp-e.com>
Reviewed-by: Paul Dale <pauli at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20454)

(cherry picked from commit 6d45fd47f4849c8dc55b8dd5fa1e1b8a158774a0)




More information about the openssl-commits mailing list