[4054] in Kerberos-V5-bugs
[krbdev.mit.edu #1404] zapping sensitive data before freeing
daemon@ATHENA.MIT.EDU (Ken Raeburn via RT)
Tue Apr 1 20:16:48 2003
Date: Tue, 1 Apr 2003 20:16:36 -0500 (EST)
Message-Id: <rt-1404-5594.9.54313676319501@krbdev.mit.edu>
In-Reply-To: <rt-1404@krbdev.mit.edu>
From: "Ken Raeburn via RT" <rt-comment@krbdev.mit.edu>
To: krb5-prs@mit.edu
Reply-To: rt-comment@krbdev.mit.edu
Errors-To: krb5-bugs-bounces@mit.edu
See the thread "use of memset and optimization" in the krbdev list
archives, starting 7 November 2002, also reported on the RISKS,
cryptography and cypherpunks lists.
When freeing key data, we should first zap the contents, with
something better than memset since gcc can optimize that away in
certain cases. A memset call with a pointer to volatile should be
sufficient, though we probably don't want all key data to be volatile
everywhere.
Changing krb5_free_keyblock isn't enough; we should also zap key
schedules, ASN.1 buffers that hold key data, etc.
_______________________________________________
krb5-bugs mailing list
krb5-bugs@mit.edu
http://mailman.mit.edu/mailman/listinfo/krb5-bugs