Attention is currently required from: Arne Schwabe, Gert Doering, Steffan 
Karger.

Hansaem Wi has posted comments on this change by Hansaem Wi. ( 
https://gerrit.openvpn.net/c/openvpn/+/2076?usp=email )

Change subject: auth_token: Wipe the server secret key after loading it
......................................................................


Patch Set 1:

(1 comment)

File src/openvpn/auth_token.c:

https://gerrit.openvpn.net/c/openvpn/+/2076/comment/613b8e50_88b46a66?usp=email 
:
PS1, Line 176:     buf_clear(&server_secret_key);
> @[email protected] oh indeed, sorry for not looking more closely. […]
Done in patch set 2, thanks.

The same struct key_parameters copy is left on the stack in init_key_ctx_bi() 
(data channel keys when epoch keys are not used, tls-auth, tls-crypt and static 
keys) and in tls_crypt_v2_init_server_key(). crypto_epoch.c already clears its 
copies, so I wiped those two in https://gerrit.openvpn.net/c/openvpn/+/2078. 
Scanning the stack right after init_key_ctx_bi() in test_crypto found the 
cipher and HMAC keys twice each before that change and not after it.



--
To view, visit https://gerrit.openvpn.net/c/openvpn/+/2076?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ib5eb24b156acb5a99c614050fb1bd64fe46d8b52
Gerrit-Change-Number: 2076
Gerrit-PatchSet: 1
Gerrit-Owner: Hansaem Wi <[email protected]>
Gerrit-Reviewer: Arne Schwabe <[email protected]>
Gerrit-Reviewer: Gert Doering <[email protected]>
Gerrit-Reviewer: Steffan Karger <[email protected]>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: Steffan Karger <[email protected]>
Gerrit-Attention: Arne Schwabe <[email protected]>
Gerrit-Attention: Gert Doering <[email protected]>
Gerrit-Comment-Date: Mon, 02 Nov 2026 00:46:30 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Hansaem Wi <[email protected]>
Comment-In-Reply-To: Steffan Karger <[email protected]>
Comment-In-Reply-To: Gert Doering <[email protected]>
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to