mbedtls/ChangeLog.d/ssl-get-session-tls13-app-secrets.txt
Joachim Bauernberger f7223c3071 ssl: Clear TLS 1.3 secrets from the exported client session
mbedtls_ssl_get_session() copies the whole mbedtls_ssl_session struct,
including the TLS 1.3 app_secrets field. That field holds the connection's
client and server application traffic secrets, the exporter master secret
and the resumption master secret, so an exported session carried enough
material to decrypt the connection it came from.

None of these secrets is needed to resume the session: the resumption key
is derived and stored separately when the NewSessionTicket is processed,
session serialization does not include app_secrets, and keying-material
export reads the live session. Zeroize app_secrets in the exported copy,
at the export point only, so that mbedtls_ssl_session_copy() (also used by
mbedtls_ssl_set_session()) is left unchanged.

Fixes #10916.

Signed-off-by: Joachim Bauernberger <joachim.bauernberger@protonmail.com>
2026-10-25 19:03:42 +01:00

7 lines
310 B
Plaintext

Security
* Clear the TLS 1.3 application traffic secrets, exporter master secret and
resumption master secret from the session exported by
mbedtls_ssl_get_session(). These secrets are not needed to resume the
session and previously remained in the exported session object. Fixes
#10916.