[openssl/openssl] 856d4c: cleanse stack variable in kdf_pbkdf1_do_derive

Neil Horman noreply at github.com
Fri Jan 5 19:43:00 UTC 2024


  Branch: refs/heads/openssl-3.1
  Home:   https://github.com/openssl/openssl
  Commit: 856d4c6ebc1aec2a714ce497af9c3e48c50e689d
      https://github.com/openssl/openssl/commit/856d4c6ebc1aec2a714ce497af9c3e48c50e689d
  Author: Neil Horman <nhorman at openssl.org>
  Date:   2024-01-05 (Fri, 05 Jan 2024)

  Changed paths:
    M providers/implementations/kdfs/pbkdf1.c

  Log Message:
  -----------
  cleanse stack variable in kdf_pbkdf1_do_derive

kdf_pbkdf1_do_derive stores key derivation information in a stack
variable, which is left uncleansed prior to returning.  Ensure that the
stack information is zeroed prior to return to avoid potential leaks of
key information

Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Matt Caswell <matt at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23194)

(cherry picked from commit 5963aa8c196d7c5a940a979299a07418527932af)




More information about the openssl-commits mailing list