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

Memory leak in X509_verify_cert OpenSSL 1.1.1w #24420

Open
bhatja1 opened this issue May 16, 2024 · 0 comments
Open

Memory leak in X509_verify_cert OpenSSL 1.1.1w #24420

bhatja1 opened this issue May 16, 2024 · 0 comments

Comments

@bhatja1
Copy link

bhatja1 commented May 16, 2024

Hi every one,

I am seeing a memory leak in TLS handshake while using OpenSSL 1.1.1w. Calls stack is

(CRYPTO_malloc + 0xa0)[ \openssl\crypto\mem.c:222 ]
(CRYPTO_realloc + 0x7c)[ \openssl\crypto\mem.c:246 ]
(ASN1_STRING_set + 0xe0)[ \openssl\crypto\asn1\asn1_lib.c:299 ]
(asn1_ex_c2i + 0x410)[ \openssl\crypto\asn1\tasn_dec.c:906 ]
(asn1_d2i_ex_primitive + 0x504)[ \openssl\crypto\asn1\tasn_dec.c:780 ]
(asn1_item_embed_d2i + 0x1e8)[ \openssl\crypto\asn1\tasn_dec.c:182 ]
(ASN1_item_ex_d2i + 0x48)[ \openssl\crypto\asn1\tasn_dec.c:124 ]
(ASN1_item_d2i + 0x64)[ \openssl\crypto\asn1\tasn_dec.c:114 ]
(X509V3_EXT_d2i + 0xa4)[ \openssl\crypto\x509v3\v3_lib.c:142 ]
(X509V3_get_d2i + 0x1a8)[ \openssl\crypto\x509v3\v3_lib.c:201 ]
(X509_get_ext_d2i + 0x28)[ \openssl\crypto\x509\x509_ext.c:104 ]
(x509v3_cache_extensions + 0x80c)[ \openssl\crypto\x509v3\v3_purp.c:511 ]
(x509_likely_issued + 0x54)[ \openssl\crypto\x509v3\v3_purp.c:862 ]
(check_issued + 0x18)[ \openssl\crypto\x509\x509_vfy.c:421 ]
(get_issuer + 0x4c)[ \openssl\crypto\x509\x509_vfy.c:3015 ]
(build_chain + 0x3cc)[ \openssl\crypto\x509\x509_vfy.c:3164 ]
(verify_chain + 0x24)[ \openssl\crypto\x509\x509_vfy.c:230 ]
(X509_verify_cert + 0x2d4)[ \openssl\crypto\x509\x509_vfy.c:372 ]
(ssl_verify_cert_chain + 0x2d4)[ \openssl\ssl\ssl_cert.c:427 ]
(tls_process_server_certificate + 0x494)[ \openssl\ssl\statem\statem_clnt.c:1903 ]
(ossl_statem_client_process_message + 0x130)[ \openssl\ssl\statem\statem_clnt.c:1040 ]
(read_state_machine + 0x3e4)[ \openssl\ssl\statem\statem.c:636 ]
(state_machine + 0x570)[ \openssl\ssl\statem\statem.c:434 ]
(ossl_statem_connect + 0x18)[ \openssl\ssl\statem\statem.c:250 ]
(SSL_do_handshake + 0x128)[ \openssl\ssl\ssl_lib.c:3770 ]
(SSL_connect + 0x30)[ \openssl\ssl\ssl_lib.c:1698 ]

Let me know if you have any inputs. Thanks in advance.

Regards.
Jaya

@bhatja1 bhatja1 changed the title Memory leak in OpenSSL 1.1.1w Memory leak in X509_verify_cert OpenSSL 1.1.1w May 16, 2024
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

No branches or pull requests

1 participant