Zap data when freeing krb5_spake_factor
This commit is contained in:
parent
09f9308fd8
commit
091dcbf794
29
Zap-data-when-freeing-krb5_spake_factor.patch
Normal file
29
Zap-data-when-freeing-krb5_spake_factor.patch
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
From 19ed715d39bdf8415f69156d6cef19225cf6355a Mon Sep 17 00:00:00 2001
|
||||||
|
From: Greg Hudson <ghudson@mit.edu>
|
||||||
|
Date: Tue, 27 Mar 2018 15:42:28 -0400
|
||||||
|
Subject: [PATCH] Zap data when freeing krb5_spake_factor
|
||||||
|
|
||||||
|
krb5_spake_factor structures will sometimes hold sensitive data when
|
||||||
|
second-factor SPAKE is implemented, so should be zapped when freed.
|
||||||
|
|
||||||
|
ticket: 8647
|
||||||
|
(cherry picked from commit 9cc94a3f1ce06a4430f684300a747ec079102403)
|
||||||
|
---
|
||||||
|
src/lib/krb5/krb/kfree.c | 4 +++-
|
||||||
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/lib/krb5/krb/kfree.c b/src/lib/krb5/krb/kfree.c
|
||||||
|
index e1ea1494a..71e7fcad0 100644
|
||||||
|
--- a/src/lib/krb5/krb/kfree.c
|
||||||
|
+++ b/src/lib/krb5/krb/kfree.c
|
||||||
|
@@ -897,7 +897,9 @@ k5_free_spake_factor(krb5_context context, krb5_spake_factor *val)
|
||||||
|
{
|
||||||
|
if (val == NULL)
|
||||||
|
return;
|
||||||
|
- krb5_free_data(context, val->data);
|
||||||
|
+ if (val->data != NULL)
|
||||||
|
+ zapfree(val->data->data, val->data->length);
|
||||||
|
+ free(val->data);
|
||||||
|
free(val);
|
||||||
|
}
|
||||||
|
|
@ -18,7 +18,7 @@ Summary: The Kerberos network authentication system
|
|||||||
Name: krb5
|
Name: krb5
|
||||||
Version: 1.16
|
Version: 1.16
|
||||||
# for prerelease, should be e.g., 0.% {prerelease}.1% { ?dist } (without spaces)
|
# for prerelease, should be e.g., 0.% {prerelease}.1% { ?dist } (without spaces)
|
||||||
Release: 18%{?dist}
|
Release: 19%{?dist}
|
||||||
|
|
||||||
# lookaside-cached sources; two downloads and a build artifact
|
# lookaside-cached sources; two downloads and a build artifact
|
||||||
Source0: https://web.mit.edu/kerberos/dist/krb5/1.16/krb5-%{version}%{prerelease}.tar.gz
|
Source0: https://web.mit.edu/kerberos/dist/krb5/1.16/krb5-%{version}%{prerelease}.tar.gz
|
||||||
@ -87,6 +87,7 @@ Patch60: Add-SPAKE-preauth-support.patch
|
|||||||
Patch61: Add-doc-index-entries-for-SPAKE-constants.patch
|
Patch61: Add-doc-index-entries-for-SPAKE-constants.patch
|
||||||
Patch62: Fix-SPAKE-memory-leak.patch
|
Patch62: Fix-SPAKE-memory-leak.patch
|
||||||
Patch63: Continue-after-KRB5_CC_END-in-KCM-cache-iteration.patch
|
Patch63: Continue-after-KRB5_CC_END-in-KCM-cache-iteration.patch
|
||||||
|
Patch64: Zap-data-when-freeing-krb5_spake_factor.patch
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://web.mit.edu/kerberos/www/
|
URL: http://web.mit.edu/kerberos/www/
|
||||||
@ -737,6 +738,9 @@ exit 0
|
|||||||
%{_libdir}/libkadm5srv_mit.so.*
|
%{_libdir}/libkadm5srv_mit.so.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Apr 02 2018 Robbie Harwood <rharwood@redhat.com> - 1.16-19
|
||||||
|
- Zap data when freeing krb5_spake_factor
|
||||||
|
|
||||||
* Thu Mar 29 2018 Robbie Harwood <rharwood@redhat.com> - 1.16-18
|
* Thu Mar 29 2018 Robbie Harwood <rharwood@redhat.com> - 1.16-18
|
||||||
- Continue after KRB5_CC_END in KCM cache iteration
|
- Continue after KRB5_CC_END in KCM cache iteration
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user