Skip Menu |
 

From: ghudson@mit.edu
Subject: git commit

Fix possible double-free during KDB creation

In krb5_dbe_def_encrypt_key_data(), when we free
key_data->key_data_contents[0], reset it to null so the caller doesn't
free it as well.

Since commit a06945b4ec267e8b80e5e8c95edd89930ff12103 this bug
manifests as a double-free during KDB creation if master key
encryption fails.

[ghudson@mit.edu: edited commit message]

https://github.com/krb5/krb5/commit/fddd419fc4112a118d8091e296cc2bfa8d8f777b
Author: Julien Rische <jrische@redhat.com>
Committer: Greg Hudson <ghudson@mit.edu>
Commit: fddd419fc4112a118d8091e296cc2bfa8d8f777b
Branch: master
src/lib/kdb/encrypt_key.c | 2 ++
1 file changed, 2 insertions(+)
Subject: git commit
From: ghudson@mit.edu

Fix possible double-free during KDB creation

In krb5_dbe_def_encrypt_key_data(), when we free
key_data->key_data_contents[0], reset it to null so the caller doesn't
free it as well.

Since commit a06945b4ec267e8b80e5e8c95edd89930ff12103 this bug
manifests as a double-free during KDB creation if master key
encryption fails.

[ghudson@mit.edu: edited commit message]

(cherry picked from commit fddd419fc4112a118d8091e296cc2bfa8d8f777b)

https://github.com/krb5/krb5/commit/81a226597d5d92c0c96a063da53a586a7cdd9bb7
Author: Julien Rische <jrische@redhat.com>
Committer: Greg Hudson <ghudson@mit.edu>
Commit: 81a226597d5d92c0c96a063da53a586a7cdd9bb7
Branch: krb5-1.20
src/lib/kdb/encrypt_key.c | 2 ++
1 file changed, 2 insertions(+)