[openssl/openssl] 6d45fd: Segmentation fault in parent rng cleanup

afshinpir noreply at github.com
Tue Mar 14 21:31:44 UTC 2023


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 6d45fd47f4849c8dc55b8dd5fa1e1b8a158774a0
      https://github.com/openssl/openssl/commit/6d45fd47f4849c8dc55b8dd5fa1e1b8a158774a0
  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)




More information about the openssl-commits mailing list