Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix possible memory corruption. #1331

Closed
wants to merge 1 commit into from
Closed

Conversation

krizhanovsky
Copy link
Contributor

TlsHandshake->tmp_sha256 resides in the same union with ecdh_ctx, so
ttls_write_server_key_exchange() -> ttls_ecp_group_load() may find
dirty memory in tls->hs->ecdh_ctx.grp and ttls_ecp_group_free() calls
kfree on bad pointers.

Fix for current 0.7 will be done in context of #1064.

TlsHandshake->tmp_sha256 resides in the same union with ecdh_ctx, so
ttls_write_server_key_exchange() -> ttls_ecp_group_load() may find
dirty memory in tls->hs->ecdh_ctx.grp and ttls_ecp_group_free() calls
kfree on bad pointers.
Copy link
Contributor

@i-rinat i-rinat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@krizhanovsky
Copy link
Contributor Author

ttls_ecdh_init() initializes the context, so we're good and there is no need for the patch.

@krizhanovsky krizhanovsky deleted the ak-grp-corrupt branch August 9, 2019 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants